How to run/debug a program with another dependence
Posted: Thu Nov 01, 2012 11:23 am
Im a new user of codelite.
I create a library project and then create another executable project which is the client of the first library project.
Here, the output directory of the first library project is not in LD_LIBRARY_PATH, so, if I run the executable program like
LD_LIBRARY_PATH=../Library/ ./testClient
this will be work.
However, I can't run or debug the executable program in codelite, which would complain my library can't be found, eventhough I set environment variables in codelite.
I want to know how to configure codelite and make it work.
And, I don't like to modify system-wide environment variables.
I create a library project and then create another executable project which is the client of the first library project.
Here, the output directory of the first library project is not in LD_LIBRARY_PATH, so, if I run the executable program like
LD_LIBRARY_PATH=../Library/ ./testClient
this will be work.
However, I can't run or debug the executable program in codelite, which would complain my library can't be found, eventhough I set environment variables in codelite.
I want to know how to configure codelite and make it work.
And, I don't like to modify system-wide environment variables.