Re: Mac qwt/qwtpolar build/install suggestions
Brought to you by:
rathmann
From: David F. <dfl...@ak...> - 2013-02-07 15:50:01
|
When I deal with OSX, I have found that I can make #3 happen by appending the following to qwtconfig.pri QMAKE_LFLAGS_SONAME = -Wl,-install_name,/path/to/my/lib/ (And the final slash is required) This way when you link other apps/libraries to the qwt dylib, they remember it's location without needing DYLD_LIBRARY_PATH. AFAIK this is OSX specific and will have to be handled if you do more than one platform. For diagnosing, you can use the OSX tool 'otool' which is roughly similar to readelf on Linux. HTH Dave On 02/07/2013 11:23 AM, Clarkson, Edward C. wrote: >>> set "DYLD_FRAMEWORK_PATH=/usr/local/qwt-6.1.0-svn/lib/" >> >> For shared libs on Linux systems you have the following options: >> >> 1) setting LD_LIBRARY_PATH >> 2) adding a path to /etc/ld.so.conf >> 3) compile a run-time search path into the application ( QMAKE_RPATH ) >> >> I would expect to find comparable options for frameworks on the Mac. > > I expected that too, but it's not true: #2 does not exist. See e.g., http://stackoverflow.com/questions/1451047/ldconfig-for-mac-os-x > > ------------------------------------------------------------------------------ > Free Next-Gen Firewall Hardware Offer > Buy your Sophos next-gen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb > _______________________________________________ > qwt-interest mailing list > qwt...@li... > https://lists.sourceforge.net/lists/listinfo/qwt-interest > -- The information contained in this e-mail may contain confidential information intended for a specific individual and purpose. The information is private and is legally protected by law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the comments of this information is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or return e-mail. |