I've already built Box2D and succesfully run HelloWorld. I'm using Box2D version 2.2.1 with premake 4.4 beta. I'm getting the following error when trying to compile:
I've found tons of things online about similar problems, but I haven't found a single one exactly like mine that provided a good solution. I imagine there's at least one out there, but I'm sorry I was unable to find it.
It seems the problem is with finding GLUT, which i'm guessing is specifically freeglut, but I actually don't know a whole lot about it. I tried installing a freeglut package from my package manager but that didn't solve it so I got rid of it. I also installed the packages that irresistable force suggested on his website (I love the Ron Paul videos btw!) and left them on just in case (I'm using Mint which uses Ubuntu repositories).
Finally, the last thing I tried was compiling the freeglut that came with the Box2D distribution. I successfully compiled a debug static library called libfreeglut_static.a.
I placed copies in /usr/local/lib/, ~/Documents/Box2D_v2.2.1/freeglut/, and ~/Documents/Box2D_v2.2.1/Build/gmake/, and the Testbed still gave the error whether I left the makefile's line as -lGLUT or -llibfreeglut_static.
Here is what that line that says -lGLUT looks like in Testbed.make:
Thanks to everyone in advance for their help, I really just want to build the Testbed so I can understand the physics a little before putting it into a game.
Code:
david@David-MintDesktop ~/Documents/Box2D_v2.2.1/Build/gmake $ sudo make config=debug
==== Building Box2D (debug) ====
==== Building GLUI (debug) ====
==== Building HelloWorld (debug) ====
==== Building Testbed (debug) ====
Linking Testbed
/usr/bin/ld: cannot find -lGLUT
collect2: ld returned 1 exit status
make[1]: *** [bin/Debug/Testbed] Error 1
make: *** [Testbed] Error 2
==== Building Box2D (debug) ====
==== Building GLUI (debug) ====
==== Building HelloWorld (debug) ====
==== Building Testbed (debug) ====
Linking Testbed
/usr/bin/ld: cannot find -lGLUT
collect2: ld returned 1 exit status
make[1]: *** [bin/Debug/Testbed] Error 1
make: *** [Testbed] Error 2
I've found tons of things online about similar problems, but I haven't found a single one exactly like mine that provided a good solution. I imagine there's at least one out there, but I'm sorry I was unable to find it.
It seems the problem is with finding GLUT, which i'm guessing is specifically freeglut, but I actually don't know a whole lot about it. I tried installing a freeglut package from my package manager but that didn't solve it so I got rid of it. I also installed the packages that irresistable force suggested on his website (I love the Ron Paul videos btw!) and left them on just in case (I'm using Mint which uses Ubuntu repositories).
Finally, the last thing I tried was compiling the freeglut that came with the Box2D distribution. I successfully compiled a debug static library called libfreeglut_static.a.
I placed copies in /usr/local/lib/, ~/Documents/Box2D_v2.2.1/freeglut/, and ~/Documents/Box2D_v2.2.1/Build/gmake/, and the Testbed still gave the error whether I left the makefile's line as -lGLUT or -llibfreeglut_static.
Here is what that line that says -lGLUT looks like in Testbed.make:
Code:
LIBS += bin/Debug/libBox2D.a bin/Debug/libGLUI.a -lX11 -lGL -lGLU -lGLUT
Thanks to everyone in advance for their help, I really just want to build the Testbed so I can understand the physics a little before putting it into a game.