Closed gemist closed 3 years ago
What version of QBS are you using?
qbs --version
You should be able to cd
into cavewhere/release/install-root
and then
./CaveWhere
I need to look into this and try to reproduce the issue you're having. I usually build CaveWhere through QtCreator but the CI uses qbs directly on the command line.
$ qbs --version
1.17.0
cd
into cavewhere/release/install-root
$./CaveWhere
./CaveWhere: error while loading shared libraries: libcavewhere-lib.so: cannot open shared object file: No such file or directory
Not sure if it helps, but here I found directions for the path
src/cwGlobalDirectory.cpp: return QApplication::applicationDirPath() + "/../share/yourapplication/";
I built it inside linux and completely from command line following instructions (README.md
).
As far as I can tell, qbs run
basically prepends all directories in cavewhere/release/ to the LD_LIBRARY_PATH
, but quick testing suggests it's a tad more subtle than that (perhaps comparable to LD_PRELOAD).
I simply use qbs build --products CaveWhere
and qbs test --products CaveWhere
, without config:release
. Everything is installed under default
, and works predictably without work-arounds. This could be problematic with multiple projects using qbs, however.
I built it again without config:release
option. I am confirming, it works without work-arounds. Maybe you delete config:release
option from README.md
file.
Simple programming mistake it should work as intended now.
Also it's staged no the 191 branch, and will be merged once CI finishes building and running testcases.
This has been merged into the master.
Following your instructions CaveWhere was successfully built inside this directory cavewhere/release/install-root.
During qbs run using command:
I got the following error:
Temporal solution: I created directory cavewhere/release/share/yourapplication manually and copied everything from cavewhere/release/install-root to newly created directory. CaveWhere is now able to start.