1231
General / Re: I cannot figure out how to compile the sample SFML program in Linux
« on: August 04, 2013, 11:40:24 pm »
I tried a few other locations and for whatever reason g++ can find the libs when I put them in /lib/SFML and use -L/lib/SFML. Go figure.
But now I have a completely different set of errors! So here's what happened this time:
g++ main.cpp -I/home/Ixrec/code/SFML-2.1/include/SFML -L/lib/SFML -lsfml-system -lsfml-window -lsfml-graphics
/usr/bin/ld: warning: libGLEW.so.1.7, needed by /lib/SFML/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/lib/SFML/libsfml-graphics.so: undefined reference to '__glewUniform1fARB'
/lib/SFML/libsfml-graphics.so: undefined reference to '__GLEW_ARB_shader_objects'
...
There's a couple dozen of these undefined references to what I assume are glew functions or macros.
But now I have a completely different set of errors! So here's what happened this time:
g++ main.cpp -I/home/Ixrec/code/SFML-2.1/include/SFML -L/lib/SFML -lsfml-system -lsfml-window -lsfml-graphics
/usr/bin/ld: warning: libGLEW.so.1.7, needed by /lib/SFML/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/lib/SFML/libsfml-graphics.so: undefined reference to '__glewUniform1fARB'
/lib/SFML/libsfml-graphics.so: undefined reference to '__GLEW_ARB_shader_objects'
...
There's a couple dozen of these undefined references to what I assume are glew functions or macros.