SFML Runtime Error
I've installed SFML 1.6 (I think; that install should really give a more extensive report).
I've tried compiling the example they give at the turorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}
|
I get
this:
1 2 3 4 5
|
owner@NetBook-Ubuntu:~$ cd ~/c+*
owner@NetBook-Ubuntu:~/c++_code$ g++ -c SFML1.cpp
owner@NetBook-Ubuntu:~/c++_code$ g++ -o SFML{,1.o} -lsfml-system
owner@NetBook-Ubuntu:~/c++_code$ ./SFML
./SFML: error while loading shared libraries: libsfml-system.so.1.6: cannot open shared object file: No such file or directory
|
Any help would be appreciated.
For some reason, when I went
|
g++ -o SFML{,1.cpp} -lsfml-system
|
instead of
1 2
|
g++ -c SFML1.cpp
g++ -o SFML{,1.o} -lsfml-system
|
it worked.
F***ed up, or what?
Anyway, resolved.
Topic archived. No new replies allowed.