[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FreeMedForms new upstream



Le 17 juin 2013 à 11:53, Andreas Tille a écrit :

> I try to have another look into the rpath issue if not yet solved.

I think the best way to correct the rpath issue is:
- to add to qmake commandline: "CONFIG+=norpath"
- create a bin wrapper that sets the LD_LIBRARY_PATH to the right place according to the application

/usr/bin/freemedforms.sh -> Wrapper to "/usr/bin/freemedforms" that can be simple bash like this
#!/bin/sh
# Here an example for the FreeMedForms EMR
# May be wildcards can lead to uncorrect behavior
PLUGINS_PATH="/usr/lib*/freemedforms"
LIBS_PATH="/usr/lib*/freemedforms-common"
LD_LIBRARY_PATH=$PLUGINS_PATH:$LIBS_PATH${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
exec "freemedforms" ${1+"$@"}

Then make all launchers point to /usr/bin/freemedforms.sh

Untested.
Any comment?
Eric

Attachment: PGP.sig
Description: =?iso-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=


Reply to: