EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: A Problem : run it on the target board.
From: Michael Davidsaver <[email protected]>
To: 윤대희 <[email protected]>
Cc: [email protected]
Date: Mon, 6 Nov 2017 21:43:20 -0600
During the build process certain directory paths are built into the
libraries and executables.  As you are cross-comiling, these are paths
on the build computer.  Your target computer has different paths.

On the target, try setting the following in your shell

> export PATH=$PATH:$HOME/base/bin/linux-arm
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/base/lib/linux-arm

If you're curious, you can use the 'readelf' or 'ldd' utilities to see
which library names and paths are built into an executable or library.


> $ x86_64-linux-gnu-readelf -d bin/linux-x86_64/caget
> 
> Dynamic section at offset 0x6d90 contains 32 entries:
>   Tag        Type                         Name/Value
>  0x0000000000000001 (NEEDED)             Shared library: [libca.so.3.16.1]
>  0x0000000000000001 (NEEDED)             Shared library: [libCom.so.3.16.1]
>  0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
>  0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
>  0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
>  0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
>  0x000000000000001d (RUNPATH)            Library runpath: [/home/mdavidsaver/work/epics/base-git/lib/linux-x86_64]
>  0x000000000000000c (INIT)               0x1718


References:
A Problem : run it on the target board. 윤대희

Navigate by Date:
Prev: Re: A Problem : run it on the target board. Seung-hee Nam
Next: areaDetector and HDF5 file saving segafaults Hinko Kocevar
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: A Problem : run it on the target board. 윤대희
Next: Re: A Problem : run it on the target board. Seung-hee Nam
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·