Hi,

On Mon, Aug 04, 2014 at 04:37:41AM +0000, Charu Bansal wrote:
> I have cross-compiled FreeRDP for target board (arm cortex-a9 and Linux). 
> When I am running cross compiled FreeRDP executable on board then it is 
> giving below mentioned error:
> xfreerdp: error while loading shared libraries: 
> ../../common/libfreerdp-client.so: cannot open shared object file: No such 
> file or directory
> 
> I have used below mentioned 'cmake' steps for cross compilation:
> cmake -DCMAKE_C_FLAGS='-mfloat-abi=hard -dM' 
> -DCMAKE_INSTALL_PREFIX:PATH=/home/vm1/dependencies/arm_depend/ 
> -DCMAKE_BUILD_TYPE=Debug 
> -DCMAKE_C_COMPILER=/opt/poky/1.5.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
>  -DCMAKE_SYSTEM_PROCESSOR=arm 
> -DCMAKE_CXX_COMPILER=/opt/poky/1.5.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
>  -DCMAKE_SYSTEM_NAME=linux 
> -DZLIB_INCLUDE_DIR=/home/vm1/dependencies/arm_depend/include 
> -DZLIB_LIBRARY=/home/vm1/dependencies/arm_depend/lib/libz.a 
> -DGlib_INCLUDE_DIR=/home/vm1/dependencies/arm_depend/lib/glib-2.0/include/ 
> -DGlib_LIBRARY=/home/vm1/dependencies/arm_depend/lib/libglib-2.0.a 
> -DGobject_LIBRARY=/home/vm1/dependencies/arm_depend/lib/libgobject-2.0.a 
> -DGlibConfig_INCLUDE_DIR=/home/vm1/dependencies/arm_depend/lib/glib-2.0/include/
>  
> -DCMAKE_PREFIX_PATH=/opt/poky/1.5.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/
>  -DCMAKE_LIBRARY_PATH=/opt/poky/1.5.1/sysroots/cort
 exa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/ -DWITH_X11=yes
> 
> I am getting below mentioned warnings also at compile time:
> /opt/poky/1.5.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld:
>  warning: ../common/libfreerdp-client.so, needed by ../libxfreerdp-client.so, 
> not found (try using -rpath or -rpath-link)
> /opt/poky/1.5.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld:
>  warning: ../../libfreerdp/core/libfreerdp-core.so, needed by 
> ../libxfreerdp-client.so, not found (try using -rpath or -rpath-link)
> /opt/poky/1.5.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld:
>  warning: ../../libfreerdp/gdi/libfreerdp-gdi.so, needed by 
> ../libxfreerdp-client.so, not found (try using -rpath or -rpath-link)
> /opt/poky/1.5.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld:
>  warning: ../../libfreerdp/locale/libfreerdp-locale.so, needed by 
> ../libxfreerdp-client.so, not found (try using -rpath or -rpath-link)
Did you do a "make install" after compiling? - Looks like your RPATH
isn't set properly and still points to the "build rpath". 

To fix this you can either use LD_LIBRARY_PATH, update /etc/ld.so.conf or 
adapt cmake to build with the installation RPATH (have a look for 
CMAKE_BUILD_WITH_INSTALL_RPATH in the main CMakeLists.txt).

http://www.cmake.org/Wiki/CMake_RPATH_handling might help for the third 
possibility.

Best regards,
Bernhard

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to