userland icon indicating copy to clipboard operation
userland copied to clipboard

ARM64: EGL/GLES2 Libraries unable to compile

Open ghost opened this issue 9 years ago • 3 comments

I've tried compiling EGL/GLES2 for SDL but it won't compile. I mainly get errors relating to Khronos.

ghost avatar Jul 14 '17 21:07 ghost

hi! I tried compiling this library in arm64. But it seems not working. Followings are what I did:

  1. change cross-compiler in arm-linux-gnueabihf.cmake to `aarch64-linux-gcc/g++
  2. remove khrn_int_hash_asm.s in CMakelists.txt since it is written for arm32
  3. change sizeof (some pointers) in khrn_client_check_types.h from '4' to '8'
  4. change some pointers from 'int' to 'long' in .c sources
  5. some log print from '%u' to '%lu'. I think this should not so important, only for syntax

After many times trying, It is nearly successfully compiled except some warnings. EGL works, but audios may not work. I'm not sure if the problem comes from kernel or userland. The kernel I'm running is linux-rpi-4.11-y ......

yfang1644 avatar Aug 26 '17 11:08 yfang1644

Any idea what files and pointers to change? Or even a useful diff patch?

Also the sound works with a pimoroni PHAT DAC on kernel 4.11 or the onboard hdmi sound works on 4.13.

ghost avatar Sep 03 '17 02:09 ghost

We are not planning a 64 bit version of this stuff, its a lot of work and the new ARM side driver VC4 is now available, albeit not yet the default.

If other people are happy to do the work then we would certainly look at a PR.

Closing as wont fix.

JamesH65 avatar Dec 05 '17 14:12 JamesH65