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

Author Topic: set up Eclipse CDT for CSFML, error while loading shared libraries  (Read 4388 times)

0 Members and 1 Guest are viewing this topic.

c-jay

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Hi,

I use Kubuntu 14.04, Eclipse CDT and like to include CSFML which generate this error:

/home/u123/Programme/TestProg/Debug/TestProg: error while loading shared libraries: libcsfml-graphics.so.2.2: cannot open shared object file: No such file or directory
 

My Eclipse settings:

Environment variable: LD_LIBRARY_PATH = /home/u123/Programme/TestpProg/sfmlStuff/SFML-2.2/lib
Compiler Symbols: CSFML_STATIC
Compiler Includes: /home/u123/Programme/TestpProg/sfmlStuff/SFML-2.2/include
                   /home/u123/Programme/TestpProg/sfmlStuff/CSFML-2.2/include
Linker libraries: csfml-audio
                  csfml-system
                  csfml-graphics
                  csfml-window
Linker search paths: /usr/local/lib
                     /home/u123/Programme/TestpProg/sfmlStuff/SFML-2.2/lib
                     /home/u123/Programme/TestpProg/sfmlStuff/CSFML-2.2/lib
 

output of ldd:
christian@PC-Ubuntu:~$ ldd /home/u123/Programme/TestpProg/Debug/TestpProg
        linux-vdso.so.1 =>  (0x00007ffc4999c000)
        libcsfml-graphics.so.2.2 => not found
        libcsfml-window.so.2.2 => not found
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f201ab19000)
        /lib64/ld-linux-x86-64.so.2 (0x000056380a1a0000)
 

Any ideas into where the problem lies? Thanks.
« Last Edit: April 28, 2016, 05:48:45 pm by c-jay »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: set up Eclipse CDT for CSFML, error while loading shared libraries
« Reply #1 on: April 26, 2016, 08:16:54 pm »
The library loader (ld) cannot find the SFML libraries because they are not in a standard path. You have to tell him where they are.
Laurent Gomila - SFML developer

c-jay

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: set up Eclipse CDT for CSFML, error while loading shared libraries
« Reply #2 on: April 27, 2016, 07:55:30 am »
Something like this below?

sudo nano /etc/ld.so.conf.d/myapp.conf

  GNU nano 2.2.6                         Datei: /etc/ld.so.conf.d/myapp.conf                                                        

/home/u123/Programme/TestpProg/sfmlStuff/SFML-2.2/lib
 

and after this ldconfig and reboot generate the same failure
« Last Edit: April 28, 2016, 05:49:09 pm by c-jay »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: set up Eclipse CDT for CSFML, error while loading shared libraries
« Reply #3 on: April 27, 2016, 08:03:01 am »
I have no idea, but I'm sure Google knows it ;)
Laurent Gomila - SFML developer

 

anything