unrefined reference to gluPerspective with OpenGX
Not sure if this is the right place to ask, but I ran into this issue trying to implement OpenGX in a small GameCube project.
How should I go about fixing this? I'm not entirely sure what next steps for debugging are here.
The full error thrown when running make
is:
Code: Select all
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: CMakeFiles/GameCubeTemplate.dir/source/main.o: in function `SDL_main':
/Users/lily/projects/gamecube-template/source/main.cpp:81:(.text.SDL_main+0xe0): undefined reference to `gluPerspective'
glu.h
exists in the dkp
portlibs
directory, so I'm not sure why it's not getting picked up.
Code: Select all
$> grep -E "gluPerspective" ${DEVKITPRO}/portlibs/gamecube/include/GL/glu.h
GLAPI void GLAPIENTRY gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar);
Here's a link to the diff where I try and add OpenGX with the very beginnings of configuration.
https://github.com/gofastlily/gamecube- ... n...opengx
I'll admit I'm no C++ developer so I may be missing something simple here.
I installed opengx
following the instructions in its readme. I'm loosely following the copy of NeHe's Lesson 07 that's in that repo, for what it's worth.
Please let me know if there's any other information that would be useful here.
Thanks,
Lily