I just realized that master handles rpath correctly. I had been on stable for a while and didn't notice that master was fixed.
----- Original Message ----- From: "Kevin Dalley" <kdal...@vmware.com> To: bmikla...@thinstuff.at Cc: "Freerdp-devel" <freerdp-devel@lists.sourceforge.net> Sent: Tuesday, December 4, 2012 4:31:16 PM Subject: Re: [Freerdp-devel] CMAKE_INSTALL_PREFIX does not load correctly library Actually, cmake does support having CMAKE_INSTALL_PREFIX to be used so that the installed executable search the location where the libraries are installed. You can see examples similar to this in the section Always full RPATH of this document. http://www.vtk.org/Wiki/CMake_RPATH_handling It should be possible to modify some of the CMakeLists.txt files so that the correct directories are searched. Of course, the system libraries search path doesn't change, but executable will know where it should be searched. If you look at the linking as part of "make VERBOSE=1", you can see the use of -Wl,-rpath in the linking phase, so that the directories in which the libraries are built will be search if you run xfreerdp from the compilation directory. However, the installation wipes out the references to these directories, as it should. We don't want the installed version of the executable to search the build directories. Unfortunately, I am having difficulty following the cmake suggestions to make it do the right thing. Is this file obsolete: /etc/ld.so.conf.d/freerdp.conf? It is mentioned in https://github.com/FreeRDP/FreeRDP/wiki/Compilation ----- Original Message ----- From: "Bernhard Miklautz" <bmikla...@thinstuff.at> To: "Kevin Dalley" <kdal...@vmware.com> Cc: "Freerdp-devel" <freerdp-devel@lists.sourceforge.net> Sent: Tuesday, December 4, 2012 4:06:06 PM Subject: Re: [Freerdp-devel] CMAKE_INSTALL_PREFIX does not load correctly library Hi, On Tue, Dec 04, 2012 at 03:25:05PM -0800, Kevin Dalley wrote: > and CMAKE_INSTALL_PREFIX. > > cmake -DCMAKE_INSTALL_PREFIX=/home/kevin > make clean; make VERBOSE=1; make VERBOSE=1 install > ldd ~/bin/xfreerdp > linux-vdso.so.1 => (0x00007fff887ff000) > libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 > (0x00007ffef57b1000) > libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 > (0x00007ffef559f000) > libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 > (0x00007ffef5393000) > libXv.so.1 => /usr/lib/x86_64-linux-gnu/libXv.so.1 (0x00007ffef518d000) > libfreerdp-core.so.1.0 => not found > libfreerdp-gdi.so.1.0 => not found CMAKE_INSTALL_PREFIX doesn't affect the systems library search path so libraries are only searched in the default locations. For testing I usually install to /opt and use a script like the following to run xfreerdp: #!/bin/bash CMAKE_INSTALL_PREFIX=/opt/freerdp-stable-1.0 export PATH=$PATH:${CMAKE_INSTALL_PREFIX}/bin export LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib/x86_64-linux-gnu/ xfreerdp $@ (The lib/x86_64.. might be different on a non debian system) Hope that helps. Best regards, Bernhard ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Freerdp-devel mailing list Freerdp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Freerdp-devel mailing list Freerdp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel