OK, after some attempts, I have the following problems. 1. By default we install pkgconfig files (*.pc) files to /usr/local/lib/pkgconfig, while FreeBSD seems to use /usr/local/libdata/pkgconfig instead. So the *.pc files we installed for libraries could not be found. That's why builds of many components failed. Settings PKG_CONFIG_PATH environment variable to /usr/local/lib/pkgconfig manually is required. I don't know better way to do it in BSD. Or we need to install the files to the libdata dir instead if FreeBSD is detected?
2. Libraries installed to /usr/local/lib cannot be found by the linker ld. If we did not pass the full path of the installed libraries when linking the binaries, they cannot be found. By default, cmake passes full paths of libs *.so files to the linker, but when we use the relative path it does not work. For example, when linking /usr/local/lib/libqtxdg.so, we only need to pass -lqtxdg to the ld tool in Linux, but this does not work in FreeBSD. The ld tool in FreeBSD does not find libraries in /usr/local/lib by default. I cannot find any methods to override this behavior. We can pass full paths of the libs to cmake, but I'm not sure if this is a good idea. This used to work flawlessly in Linux but adding -L/usr/local/lib seems to be required for FreeBSD? Due to the described reasons, I could not get current lxqt components built. Our source code compiles perfectly with clang/llvm, but the linking and pkgconfig parts are quite problematic. Cheers! ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ Lxde-list mailing list Lxde-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxde-list