Hi again,
Ok, I've just tried what I was talking about regarding adding the Qtil libs to the executable's path. Here is what I did:
1) Add to my .pro file:
QMAKE_LFLAGS += -Wl, -rpath=\'\$\$ORIGIN\'2) Add the required Qtilities libraries to the executable folder + create links to them that correspond to what the executable looks for (
ldd <app> to have that info). For example, in my case I had to copy-paste the
*-1.2.so.1.0.0 libs for Core, CoreGui and Logging and then create links to each of them that have the names
*-1.2.so.1.
RESULT: My app works, even when the Qtil file
*.conf is not present in the
etc/ld.conf.d/ folder (as suggested in your installation notes). Despite my original issue, it means that by replacing
\'\$\$ORIGIN\' by
\'\$\$ORIGIN\relative\path\fomr\exec\to\qtil\libs\', then the need for the *conf file is removed altogether... (note that alternatively "make install" could be setup so that the libs are directly installed in standard search paths).
IMPORTANT NOTE: What I have tried could enable me to ship my app with the Qtil .so files, so that colleagues who do know much about linux library compilation/installation can use it without having to install/compile Qtilities. However, I have not tried that yet, and it is possible that other runtime linking issues come up on their machines...
I hope this was not too confusing.
Fred.
PS: So, this conversation ends up not being about static libs anymore... :)
On Tuesday, May 29, 2012 3:05:18 PM UTC+1, Jaco Naude wrote:
--
Jaco Naude'Qtilities: Building blocks for Qt applications.