New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error on Raspberry Pi 2 #71
Comments
What is the code surrounding line 49 in |
try disabling the -DGLchar=char option (in platform/YOURPLATFORM.mk) |
There is no platform for RPi 2. Maybe pandora ? But there is no -DGLchar=char in platform/pandora.mk... |
you probably have to create a new platform makefile, it can be set in config.mk (PLATFORM) |
I do not have the knowledge to create the platform.mk for the raspberry pi 2 but i can provide any info if needed to the developers. |
A specific build for the pi 2 would indeed be very cool |
@enen92 @diogomsantos check out https://github.com/krnlyng/apkenv/tree/beaglebone this should be also usable to build for the rpi 2 (BUT: it does not work yet) |
Sorry for the late response, have been some days out. |
sorry i was away too. you have an incorrect command line, it is supposed to be: PLATFORM=beaglebone make |
It passed the gles error but now I get this: ... Beaglebone is armv6 right? Raspberry Pi 2 is armv7 maybe thats the problem. |
please try my rpi2 branch: https://github.com/krnlyng/apkenv/tree/rpi2 |
-e CC accelerometer/accelerometer.o |
I tried to change platform/rpi2.mk to LDFLAGS += -lSDL_mixer but with the same error. Dont know if SDL2_mixer is really needed, it is not on Raspbian repos, but I have SDL_mixer installed and SDL_mixer.h by default is in /usr/include/SDL/SDL_mixer.h. I can try to compile SDL2 Mixer if it is really needed. |
@diogomsantos: can you install SDL2 and SDL2_mixer from the default repositories? also the devel packages. for beaglebone these were available so i figured it should work for the rpi2 too, if not we have to rewrite a little bit of the platform code, but not much |
I'll close this issue the next time I'll go through the list of open issues if there's no progress here. |
I am getting this error compiling apkenv on Raspberry Pi 2:
...
-e CC linker/strlcpy.o
-e CC linker/dlfcn.o
-e CC compat/gles2_wrappers.o
In file included from compat/gles2_wrappers.c:4:0:
/opt/vc/include/GLES2/gl2.h:49:26: error: two or more data types in declaration specifiers
/opt/vc/include/GLES2/gl2.h:49:1: warning: useless type name in empty declaration [enabled by default]
makefile:84: recipe for target 'compat/gles2_wrappers.o' failed
make: *** [compat/gles2_wrappers.o] Error 1
Any ideas ?
The text was updated successfully, but these errors were encountered: