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

Author Topic: -lsfml-system not found  (Read 6109 times)

0 Members and 1 Guest are viewing this topic.

markus_d

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://www.lostlabyrinth.com
-lsfml-system not found
« on: March 10, 2012, 01:15:19 am »
Hy everybody,

I successfully compiled and installed sfml 2.0.
I use kubuntu. Was an easy cmake, make and make install
Then I installed codeblocks and added the paths to the linker (libs) and compiler (headers).
But when I try to compile the created demo file I get:

Code: [Select]

cannot find -lsfml-graphic
cannot find -lsfml-network
cannot find -lsfml-system
cannot find -lsfml-window


What could I try to make this work?
Our game:
Lost Labyrinth
http://www.lostlabyrinth.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
-lsfml-system not found
« Reply #1 on: March 10, 2012, 05:21:43 pm »
Do you want to use SFML or CSFML?

Are you sure that the path where you installed the libraries is known by the linker?
Laurent Gomila - SFML developer

markus_d

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://www.lostlabyrinth.com
-lsfml-system not found
« Reply #2 on: March 12, 2012, 06:09:36 pm »
I guess I want to use sfml?
I downloaded the newest version from git.

just did:
cmake
make
sudo make install

then I added the following paths to codeblocks:
/usr/local/include (headers)
/usr/local/lib (libraries)

Now I get:
Code: [Select]
-------------- Build: Debug in lost labyrinth dx ---------------

Compiling: main.cpp
/home/markus/lost labyrinth dx/main.cpp: In function ‘int main()’:
/home/markus/lost labyrinth dx/main.cpp:11:19: error: ‘class sf::Texture’ has no member named ‘LoadFromFile’
/home/markus/lost labyrinth dx/main.cpp:17:16: error: ‘class sf::Font’ has no member named ‘LoadFromFile’
/home/markus/lost labyrinth dx/main.cpp:23:17: error: ‘class sf::Music’ has no member named ‘OpenFromFile’
/home/markus/lost labyrinth dx/main.cpp:27:12: error: ‘class sf::Music’ has no member named ‘Play’
/home/markus/lost labyrinth dx/main.cpp:30:20: error: ‘class sf::RenderWindow’ has no member named ‘IsOpen’
/home/markus/lost labyrinth dx/main.cpp:34:24: error: ‘class sf::RenderWindow’ has no member named ‘PollEvent’
/home/markus/lost labyrinth dx/main.cpp:37:24: error: ‘class sf::Event’ has no member named ‘Type’
/home/markus/lost labyrinth dx/main.cpp:38:25: error: ‘class sf::RenderWindow’ has no member named ‘Close’
/home/markus/lost labyrinth dx/main.cpp:42:17: error: ‘class sf::RenderWindow’ has no member named ‘Clear’
/home/markus/lost labyrinth dx/main.cpp:45:17: error: ‘class sf::RenderWindow’ has no member named ‘Draw’
/home/markus/lost labyrinth dx/main.cpp:48:17: error: ‘class sf::RenderWindow’ has no member named ‘Draw’
/home/markus/lost labyrinth dx/main.cpp:51:17: error: ‘class sf::RenderWindow’ has no member named ‘Display’
Process terminated with status 1 (0 minutes, 0 seconds)
12 errors, 0 warnings
Our game:
Lost Labyrinth
http://www.lostlabyrinth.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
-lsfml-system not found
« Reply #3 on: March 12, 2012, 06:17:12 pm »
Quote
I guess I want to use sfml?

So why did you post in the C forum?

Quote
I downloaded the newest version from git

I just changed the naming convention for all functions :D
Laurent Gomila - SFML developer

markus_d

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://www.lostlabyrinth.com
-lsfml-system not found
« Reply #4 on: March 12, 2012, 06:20:28 pm »
I checked the directories. This is how it looks like:

Code: [Select]
lrwxrwxrwx 1 root root       20 2012-03-12 12:18 libsfml-audio-d.so -> libsfml-audio-d.so.2
lrwxrwxrwx 1 root root       22 2012-03-12 12:18 libsfml-audio-d.so.2 -> libsfml-audio-d.so.2.0
-rw-r--r-- 1 root root   489336 2012-03-12 11:52 libsfml-audio-d.so.2.0
lrwxrwxrwx 1 root root       23 2012-03-12 12:18 libsfml-graphics-d.so -> libsfml-graphics-d.so.2
lrwxrwxrwx 1 root root       25 2012-03-12 12:18 libsfml-graphics-d.so.2 -> libsfml-graphics-d.so.2.0
-rw-r--r-- 1 root root  1728860 2012-03-12 11:52 libsfml-graphics-d.so.2.0
lrwxrwxrwx 1 root root       22 2012-03-12 12:18 libsfml-network-d.so -> libsfml-network-d.so.2
lrwxrwxrwx 1 root root       24 2012-03-12 12:18 libsfml-network-d.so.2 -> libsfml-network-d.so.2.0
-rw-r--r-- 1 root root   620477 2012-03-12 11:52 libsfml-network-d.so.2.0
lrwxrwxrwx 1 root root       21 2012-03-12 12:18 libsfml-system-d.so -> libsfml-system-d.so.2
lrwxrwxrwx 1 root root       23 2012-03-12 12:18 libsfml-system-d.so.2 -> libsfml-system-d.so.2.0
-rw-r--r-- 1 root root   246327 2012-03-12 11:52 libsfml-system-d.so.2.0
lrwxrwxrwx 1 root root       21 2012-03-12 12:18 libsfml-window-d.so -> libsfml-window-d.so.2
lrwxrwxrwx 1 root root       23 2012-03-12 12:18 libsfml-window-d.so.2 -> libsfml-window-d.so.2.0
-rw-r--r-- 1 root root   539525 2012-03-12 11:52 libsfml-window-d.so.2.0



Code: [Select]
markus@markus-AMILO-Pro-V3205:/usr/local/include/SFML$ ls -l
total 52
drwxr-xr-x 2 root root 4096 2012-03-12 12:18 Audio
-rw-r--r-- 1 root root 1811 2012-03-07 16:55 Audio.hpp
-rw-r--r-- 1 root root 5280 2012-03-07 16:55 Config.hpp
drwxr-xr-x 2 root root 4096 2012-03-12 12:18 Graphics
-rw-r--r-- 1 root root 2337 2012-03-07 16:55 Graphics.hpp
drwxr-xr-x 2 root root 4096 2012-03-12 12:18 Network
-rw-r--r-- 1 root root 1858 2012-03-07 16:55 Network.hpp
-rw-r--r-- 1 root root 2092 2012-03-07 16:55 OpenGL.hpp
drwxr-xr-x 2 root root 4096 2012-03-12 12:18 System
-rw-r--r-- 1 root root 2010 2012-03-07 16:55 System.hpp
drwxr-xr-x 2 root root 4096 2012-03-12 12:18 Window
-rw-r--r-- 1 root root 1898 2012-03-07 16:55 Window.hpp
Our game:
Lost Labyrinth
http://www.lostlabyrinth.com

markus_d

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://www.lostlabyrinth.com
-lsfml-system not found
« Reply #5 on: March 12, 2012, 06:21:34 pm »
So where is the C++ forum?  :lol:
Our game:
Lost Labyrinth
http://www.lostlabyrinth.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
-lsfml-system not found
« Reply #6 on: March 12, 2012, 08:22:21 pm »
Quote
So where is the C++ forum?

Not in "Bindings > C" :P
Everything not in "Bindings" is C++.
Laurent Gomila - SFML developer