Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » External Library Compile fine... but will not run?
External Library Compile fine... but will not run? [message #870071] Sun, 06 May 2012 02:04 Go to next message
aNew Hobby is currently offline aNew Hobby
Messages: 3
Registered: May 2012
Junior Member
I ma trying to use the SFML2 library, but while i cna get it to compil fine.. I can not get it to run...

The compile works no erorrs.. but when I try to use teh run command...
Quote:
error while loading shared libraries: libsfml-graphics.so.2: cannot open shared object file: No such file or directory


Any ideas what to do here?

http***www1.picturepush.com/photo/a/8196534/img/8196534.png
http***www3.picturepush.com/photo/a/8196536/img/8196536.png

(User level to low to post screen shots)
Re: External Library Compile fine... but will not run? [message #870203 is a reply to message #870071] Mon, 07 May 2012 05:15 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
Registered: July 2009
Senior Member
Your application needs the library libsfml-graphics.so.2 at runtime. You have to add the library path to the environment variable LD_LIBRARY_PATH (globally or in the Launch Config of Eclipse).

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Creating custom configuration from "Default Configuration" not created correctly
Next Topic:CDT - DWARF.java
Goto Forum:
  


Current Time: Wed Jul 30 07:23:00 EDT 2014

Powered by FUDForum. Page generated in 0.12219 seconds