I’ve tried to use flatpak-builder with cmake as buildsystem and try to link an external library. It build successfully with cmake directly, but with flatpak-builder it shows
the following error:
[ 97%] Linking CXX executable blink
/usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lqscintilla2_qt6: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/blink.dir/build.make:668: blink] Error 1
make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/blink.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Error: module blink: Child process exited with code 2
Thanks a lot for the suggestion! The QScintilla library can now be linked. But where can I find the output file? I’m not sure if it generate one. I’ve modified as follows:
[ 83%] Building CXX object CMakeFiles/blink.dir/Model/CFileItem.cpp.o
[ 86%] Building CXX object CMakeFiles/blink.dir/Model/CRunCommand.cpp.o
[ 89%] Building CXX object CMakeFiles/blink.dir/Model/CFindReplaceModel.cpp.o
[ 91%] Building CXX object CMakeFiles/blink.dir/Storage/CXmlStorageHandler.cpp.o
[ 94%] Building CXX object CMakeFiles/blink.dir/blink_autogen/S5YYZ2ZCNV/qrc_app.cpp.o
[ 97%] Linking CXX executable blink
[100%] Built target blink
[ 0%] Built target blink_autogen_timestamp_deps
[ 2%] Built target blink_autogen
[100%] Built target blink
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /opt/blinkApp/blink
-- Set non-toolchain portion of runtime path of "/opt/blinkApp/blink" to ""
Committing stage build-blink to cache
Cleaning up
Committing stage cleanup to cache
Finishing app
No executable found
Please review the exported files and the metadata
Committing stage finish to cache
Pruning cache
Get rid of /opt. It’s not a valid path in anyway. Amd it doesn’t belong anywhere in prepend-ld-library-path because that doesn’t exist inside the sandbox. Also I’m pretty this doesn’t do what you think it does.