How to execute complex project on RPi Linux
I have a complex project where sub portions of the project are done as .so files with the directory structure like this
MainDir build-dir MainProj sub1 sub2 sub3 ... ProjectDir MainProj sub1 sub2 sub3 ...
In the .pro file for the main project the .so's are included with:
INCLUDEPATH += $PWD/../sub1
DEPENDPATH += $PWD/../sub1
I can't figure out how to get the project to execute from the command line. If I change to the build directory for the main executable and try to run it there I get an error:
./MainProj: error while loading shared libraries: libSub1.so.1: cannot shared object file: No such file or directory
I've tried executing from the directory that MainProj is built in, I tried copying the MainProj executable and all of the .so's to a single directory an I get the same error.
Can anybody help me figure how to execute this project from the command line, it runs properly from inside Qt Creator.
I talked to some QT people at SigGraph and they suggested that I dump the environment variables which turned out to be a good suggestion. QtCreator builds a LD_LIBRARY_PATH variable that includes paths to all of the libraries for the sub projects.