devmiyax / yabause

Yabause is a Sega Saturn emulator and took over as Yaba Sanshiro
http://www.uoyabause.org
GNU General Public License v2.0
207 stars 34 forks source link

Libretro Android64 build failing #906

Open eberhab opened 1 year ago

eberhab commented 1 year ago

Hi all,

I just tried to build a libretro core for Android64 and I am getting some errors related to the more recent OpenGL updates. Has anyone else tried this or know a fix? Any hint would be greatly appreciated :)

The command I am using to build the core: /android-sdk-linux/ndk/22.0.7026061/ndk-build --no-print-directory -j1 -C yabause/src/libretro/jni APP_ABI=arm64-v8a

Running in the LibRetro Android build container: https://git.libretro.com/libretro-infrastructure/libretro-build-android/-/blob/master/Dockerfile

The errors I get:

root@2bc729113a0e:~/yabause# $NDK_ROOT/ndk-build --no-print-directory -j$NUMPROC -C $JNI_PATH/jni $PLATFORM_ARGS
[arm64-v8a] Compile++      : retro <= ygl_texture.cpp
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:1206:19: error: use of undeclared identifier 'GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS'
    glGetIntegerv(GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS, &maxInvocations);
                  ^
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:1207:21: error: use of undeclared identifier 'GL_MAX_COMPUTE_WORK_GROUP_COUNT'
    glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 0, &workGroupCount[0]);
                    ^
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:1208:21: error: use of undeclared identifier 'GL_MAX_COMPUTE_WORK_GROUP_COUNT'
    glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 1, &workGroupCount[1]);
                    ^
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:1209:21: error: use of undeclared identifier 'GL_MAX_COMPUTE_WORK_GROUP_COUNT'
    glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 2, &workGroupCount[2]);
                    ^
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:1210:21: error: use of undeclared identifier 'GL_MAX_COMPUTE_WORK_GROUP_SIZE'
    glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_SIZE, 0, &workGroupSize[0]);
                    ^
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:1211:21: error: use of undeclared identifier 'GL_MAX_COMPUTE_WORK_GROUP_SIZE'
    glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_SIZE, 1, &workGroupSize[1]);
                    ^
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:1212:21: error: use of undeclared identifier 'GL_MAX_COMPUTE_WORK_GROUP_SIZE'
    glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_SIZE, 2, &workGroupSize[2]);
                    ^
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:2617:21: error: use of undeclared identifier 'GL_ALL_BARRIER_BITS'
    glMemoryBarrier(GL_ALL_BARRIER_BITS);
                    ^
/root/yabause/yabause/src/libretro/jni/../../ygl_texture.cpp:2626:21: error: use of undeclared identifier 'GL_ALL_BARRIER_BITS'
    glMemoryBarrier(GL_ALL_BARRIER_BITS);
                    ^
9 errors generated.
make: *** [/android-sdk-linux/ndk/22.0.7026061/build/core/build-binary.mk:478: /root/yabause/yabause/src/libretro/obj/local/arm64-v8a/objs/retro//root/yabause/yabause/src/libretro/jni/__/__/ygl_texture.o] Error 1

Any suggestions? Thanks :)