You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a port of Sonic Robo Blast 2 2.1.25, I attemtped to build it with the OpenGL Renderer on since this version seemed old enough for GL 1.1, but noticed that the linker fails
From the output it seems that these 2 missing functions are the culprits:
glCopyTexSubImage2D
glCopyTexImage2D
I feel it'd make sense to either, implement them, stub them, or temporarily comment them out of the GL headers so it's easier to catch they're missing.
Linker Output:
Linking srb2wii.elf...
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: ../objs/Wii/SDL/Release/r_opengl.o: in function `StartScreenWipe':
/home/paulo/SRB2Wii/src/hardware/r_opengl/r_opengl.c:2235:(.text.StartScreenWipe+0x6c): undefined reference to `glCopyTexSubImage2D'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /home/paulo/SRB2Wii/src/hardware/r_opengl/r_opengl.c:2230:(.text.StartScreenWipe+0x130): undefined reference to `glCopyTexImage2D'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: ../objs/Wii/SDL/Release/r_opengl.o: in function `EndScreenWipe':
/home/paulo/SRB2Wii/src/hardware/r_opengl/r_opengl.c:2275:(.text.EndScreenWipe+0x6c): undefined reference to `glCopyTexSubImage2D'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /home/paulo/SRB2Wii/src/hardware/r_opengl/r_opengl.c:2270:(.text.EndScreenWipe+0x130): undefined reference to `glCopyTexImage2D'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: ../objs/Wii/SDL/Release/r_opengl.o: in function `MakeScreenTexture':
/home/paulo/SRB2Wii/src/hardware/r_opengl/r_opengl.c:2479:(.text.MakeScreenTexture+0x6c): undefined reference to `glCopyTexSubImage2D'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /home/paulo/SRB2Wii/src/hardware/r_opengl/r_opengl.c:2474:(.text.MakeScreenTexture+0x130): undefined reference to `glCopyTexImage2D'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: ../objs/Wii/SDL/Release/r_opengl.o: in function `MakeScreenFinalTexture':
/home/paulo/SRB2Wii/src/hardware/r_opengl/r_opengl.c:2518:(.text.MakeScreenFinalTexture+0x6c): undefined reference to `glCopyTexSubImage2D'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /home/paulo/SRB2Wii/src/hardware/r_opengl/r_opengl.c:2513:(.text.MakeScreenFinalTexture+0x130): undefined reference to `glCopyTexImage2D'
collect2: error: ld returned 1 exit status
make: *** [Makefile:635: ../bin/Wii/Release/srb2wii.elf] Error 1
How can the issue be reproduced?
Try to link an app using glCopyTexSubImage2D, or glCopyTexImage2D
For example /~https://github.com/Fancy2209/SRB2Wii
(to build cd to the src dir and run make WII=1)
Environment?
endeavourOS, I do use a unnoficial wii-curl package but it is not related to the issue here
Additional context?
[N/A]
The text was updated successfully, but these errors were encountered:
Oh, it turns out I was not subscribed to this project's issues, so thanks @WinterMute for mentioning me :-)
@Fancy2209, indeed, the functions are not implemented yet, but I believe that it shouldn't be too hard to come up with a quick implementation using glReadPixels+glTex(Sub)Image2D. You could give it a try, if you don't want to wait for me :-)
Oh, it turns out I was not subscribed to this project's issues, so thanks @WinterMute for mentioning me :-)
@Fancy2209, indeed, the functions are not implemented yet, but I believe that it shouldn't be too hard to come up with a quick implementation using glReadPixels+glTex(Sub)Image2D. You could give it a try, if you don't want to wait for me :-)
And it seems github never notified me of your reply!
yeah that seems simple enough, will try and post results
Bug Report
What's the issue you encountered?
I am working on a port of Sonic Robo Blast 2 2.1.25, I attemtped to build it with the OpenGL Renderer on since this version seemed old enough for GL 1.1, but noticed that the linker fails
From the output it seems that these 2 missing functions are the culprits:
I feel it'd make sense to either, implement them, stub them, or temporarily comment them out of the GL headers so it's easier to catch they're missing.
Linker Output:
How can the issue be reproduced?
Try to link an app using glCopyTexSubImage2D, or glCopyTexImage2D
For example /~https://github.com/Fancy2209/SRB2Wii
(to build cd to the src dir and run make WII=1)
Environment?
endeavourOS, I do use a unnoficial wii-curl package but it is not related to the issue here
Additional context?
[N/A]
The text was updated successfully, but these errors were encountered: