1
General / libGLEW.so.1.7: cannot open shared object file
« on: September 10, 2013, 04:40:27 pm »
Hello,
I am trying to follow the tutorial for installing sfml 2.1 but when I execute I get this error:
/home/jessie/Project/sfml test/bin/Debug/sfml test: error while loading shared libraries: libGLEW.so.1.7: cannot open shared object file: No such file or directory
Here is the code:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
I am using linux Mint 14 and Code Block ( I have also tried with the command line but I get the same result ). Here is the compile script I use from the command line:
I have already ran: sudo apt-get remove libsfml-dev
Thanks
I am trying to follow the tutorial for installing sfml 2.1 but when I execute I get this error:
/home/jessie/Project/sfml test/bin/Debug/sfml test: error while loading shared libraries: libGLEW.so.1.7: cannot open shared object file: No such file or directory
Here is the code:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
g++ -c main.cpp -I/home/jessie/Libraries/SFML-2.1-32bits/include
g++ main.o -o sfml-app -L/home/jessie/Libraries/SFML-2.1-32bits/lib -lsfml-graphics -lsfml-window -lsfml-system
chmod +x ./sfml-app
export LD_LIBRARY_PATH=/home/jessie/Libraries/SFML-2.1-32bits/lib && ./sfml-app
g++ main.o -o sfml-app -L/home/jessie/Libraries/SFML-2.1-32bits/lib -lsfml-graphics -lsfml-window -lsfml-system
chmod +x ./sfml-app
export LD_LIBRARY_PATH=/home/jessie/Libraries/SFML-2.1-32bits/lib && ./sfml-app
I have already ran: sudo apt-get remove libsfml-dev
sudo apt-get remove libsfml-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libsfml-dev' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 220 not upgraded.
And here is a result when I search for files with 'sfml' in their name:Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libsfml-dev' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 220 not upgraded.
sudo find / -name '*sfml*'
/usr/share/codeblocks/templates/sfml.cbp
/usr/share/codeblocks/templates/sfml-main.cpp
/usr/share/codeblocks/templates/sfml.template
/usr/share/codeblocks/templates/sfml-cb.bmp
/usr/share/codeblocks/templates/sfml.png
/usr/share/codeblocks/templates/wizard/sfml
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-network.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-system.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-window.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-graphics.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-audio.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-all.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so
/home/jessie/Libraries/SFML-2.1-64bits/share/SFML/examples/shader/resources/sfml.png
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-network.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-system.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-window.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-graphics.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-audio.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-all.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so
/home/jessie/Libraries/SFML-2.1-32bits/share/SFML/examples/shader/resources/sfml.png
/home/jessie/Project/Zombieland/sfml-graphics-2.dll
/home/jessie/Project/Zombieland/sfml-graphics-d-2.dll
/home/jessie/Project/Zombieland/sfml-audio-2.dll
/home/jessie/Project/Zombieland/sfml-window-2.dll
/home/jessie/Project/Zombieland/sfml-network-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-graphics-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-graphics-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-audio-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-window-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-network-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-window-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-system-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-system-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-audio-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-network-2.dll
/home/jessie/Project/Zombieland/sfml-window-d-2.dll
/home/jessie/Project/Zombieland/sfml-system-2.dll
/home/jessie/Project/Zombieland/sfml-system-d-2.dll
/home/jessie/Project/Zombieland/sfml-audio-d-2.dll
/home/jessie/Project/Zombieland/sfml-network-2.dll
/home/jessie/Project/sfml test
/home/jessie/Project/sfml test/sfml test.layout
/home/jessie/Project/sfml test/bin/Debug/sfml test
/home/jessie/Project/sfml test/sfml test.cbp
/home/jessie/Project/sfml test/sfml-app
/home/jessie/Project/sfml test/sfml test.depend
/home/jessie/Project/2D-RTS-engine/sfml-graphics-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-graphics-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-audio-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-window-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-network-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-window-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-system-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-system-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-audio-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-network-2.dll
/usr/share/codeblocks/templates/sfml.cbp
/usr/share/codeblocks/templates/sfml-main.cpp
/usr/share/codeblocks/templates/sfml.template
/usr/share/codeblocks/templates/sfml-cb.bmp
/usr/share/codeblocks/templates/sfml.png
/usr/share/codeblocks/templates/wizard/sfml
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-network.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-system.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-window.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-graphics.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-audio.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-all.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so
/home/jessie/Libraries/SFML-2.1-64bits/share/SFML/examples/shader/resources/sfml.png
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-network.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-system.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-window.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-graphics.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-audio.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-all.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so
/home/jessie/Libraries/SFML-2.1-32bits/share/SFML/examples/shader/resources/sfml.png
/home/jessie/Project/Zombieland/sfml-graphics-2.dll
/home/jessie/Project/Zombieland/sfml-graphics-d-2.dll
/home/jessie/Project/Zombieland/sfml-audio-2.dll
/home/jessie/Project/Zombieland/sfml-window-2.dll
/home/jessie/Project/Zombieland/sfml-network-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-graphics-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-graphics-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-audio-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-window-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-network-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-window-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-system-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-system-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-audio-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-network-2.dll
/home/jessie/Project/Zombieland/sfml-window-d-2.dll
/home/jessie/Project/Zombieland/sfml-system-2.dll
/home/jessie/Project/Zombieland/sfml-system-d-2.dll
/home/jessie/Project/Zombieland/sfml-audio-d-2.dll
/home/jessie/Project/Zombieland/sfml-network-2.dll
/home/jessie/Project/sfml test
/home/jessie/Project/sfml test/sfml test.layout
/home/jessie/Project/sfml test/bin/Debug/sfml test
/home/jessie/Project/sfml test/sfml test.cbp
/home/jessie/Project/sfml test/sfml-app
/home/jessie/Project/sfml test/sfml test.depend
/home/jessie/Project/2D-RTS-engine/sfml-graphics-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-graphics-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-audio-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-window-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-network-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-window-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-system-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-system-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-audio-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-network-2.dll
Thanks