SFML community forums
Help => General => Topic started by: adamkwal on May 08, 2010, 09:20:55 pm
-
Hey guys, I recently installed linux mint and code blocks. I followed the steps to set up sfml with code blocks, and everything went well untill I tried to build/run the code. It said that it could not find system.dll, however I do not know where I can get that file. Inside of the sfml package for linux, the lib folder contained files that ended in .so, and when I tried to copy and paste them into my project folder, as other posts suggested, but it still did not work. Can someone help me out, am I doing something wronge? Thank you in advance.
-
It said that it could not find system.dll
Who is saying that ? And when ?
There is no "dll"under linux, so you must be wrong somewhere. I use Ubuntu and C::B without any problem.
-
Um, on the installation guide for code::blocks on the main site it said to drag the system.dll and all other dlls to the project/bin folder. If that is not what I am supposed to do can you please tell me how to set up my project so that sfml works with code::blocks?
-
These are the steps I took to make my project
1)open code::blocks
2)Settings->Compiler and Debugger->
2a)Search Directories->Compiler->Add my sfml include folder
2b)Search Directories->Linker->Add my sfml lib folder
3)Create a new console project
4)Settings->Compiler and Debugger->Linker Settings->Other Linker options->there I wrote -lsfml-system
5)Then I wrote the first tutorial code
#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;
}
6) Press f9 and it gives me an error
Error while loading shared libraries: libsfml-system.so.1.6: cannot open shared object file: no such file in directory
Is there any way to resolve this?
-
I think you should copy the builded libsfml* files into the /usr/lib directory. I had the same problem on Ubuntu. The Makefile copies the builded shared libraries into /usr/local/lib, but it is needed in /usr/lib.
-
I cant paste them there, because I dont have permision. Why is that I am the administrator?
-
While I could not get sfml vs 1.6, 1.7, or 2.0 to work, when I installed sfml 1.5 through the linux mint package manager it works just fine. Thank you for you help anyway.