Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Solved]Help with sfml on linux mint  (Read 6299 times)

0 Members and 1 Guest are viewing this topic.

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
[Solved]Help with sfml on linux mint
« 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.

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Re: Help with sfml on linux mint
« Reply #1 on: May 08, 2010, 09:26:14 pm »
Quote from: "adamkwal"
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.
Mindiell
----

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
[Solved]Help with sfml on linux mint
« Reply #2 on: May 08, 2010, 09:51:33 pm »
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?

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
[Solved]Help with sfml on linux mint
« Reply #3 on: May 08, 2010, 10:06:28 pm »
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

Code: [Select]

#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?

andreaszdw

  • Newbie
  • *
  • Posts: 26
    • View Profile
[Solved]Help with sfml on linux mint
« Reply #4 on: May 08, 2010, 10:51:46 pm »
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.

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
[Solved]Help with sfml on linux mint
« Reply #5 on: May 09, 2010, 12:48:37 am »
I cant paste them there, because I dont have permision. Why is that I am the administrator?

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
[Solved]Help with sfml on linux mint
« Reply #6 on: May 09, 2010, 04:50:24 am »
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.