![]() |
set LD_LIBRARY_PATH esbox
Dear All,
Kindly we need how to set our project LD_LIBRARY_PATH Our project is C++ application (Not QT) We tried right click >>properties>>c/c++ path and building >> symbols tab>> then we added LD_LIBRARY_PATH =/opt/appname/bin/ but it seems it has no effect Can you help please \ Regards Wael |
Re: set LD_LIBRARY_PATH esbox
As far as I know, LD_LIBRARY_PATH only affects the loader. That is, it is only interesting to set when you're running your application.
So: Code:
$ LD_LIBRARY_PATH=/opt/appname/bin app |
Re: set LD_LIBRARY_PATH esbox
I think waelfarouk0 means some IDE.
Which operating system? As Joorin said, try to start your IDE using $ LD_LIBRARY_PATH=/opt/appname/lib qtcreator If you want it to always do it, put export LD_LIBRARY_PATH=/opt/appname/lib into file .bashrc or .bash_profile (including the dot) in your home directory and relogin. But you said "not Qt", so which IDE? |
Re: set LD_LIBRARY_PATH esbox
right,
But also we needed to run application on device to run application from /opt/appname/ we found alternative solution is to compile the application with rpath option we do like this in ac configure file LDFLAGS='-Wl,-rpath,/opt/appname/lib:/usr/lib' hope it is useful to everyone Regards Wael Quote:
|
Re: set LD_LIBRARY_PATH esbox
Yes, or append the path to /etc/ld.so.conf
|
Re: set LD_LIBRARY_PATH esbox
Quote:
and rmember maemo is busybox may functions is disabled if you try access system |
Re: set LD_LIBRARY_PATH esbox
Quote:
|
Re: set LD_LIBRARY_PATH esbox
Quote:
To solve a similar problem with footify, I decided to use a wrapper script that sets LD_LIBRARY_PATH before starting the main application. That way it's at least possible to tinker with the wrapper script if the end user wants to move the .so file. Both solutions have their strengths and weaknesses. |
All times are GMT. The time now is 16:41. |
vBulletin® Version 3.8.8