1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 <2007> 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 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 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: rpath compiling? |
From: | "Adams, Billy R. (LARC-D401B)[RAYTHEON TECHNICAL SERVICES CO]" <[email protected]> |
To: | "Heinrich du Toit" <[email protected]>, "TechTalk EPICS" <[email protected]> |
Date: | Fri, 17 Aug 2007 08:06:28 -0500 |
Heinrich,
Below are examples of how I control both the library path and the installation path using the "tcsh shell" in unix.
##### With ($FACILITY, R$EPICS_VERSION, base-$EPICS_VERSION) defined:
##### set the LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH "/ade/$FACILITY/epics/R$EPICS_VERSION/base-$EPICS_VERSION/lib/linux-x86"
setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/X11R6/lib"
setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/lib"
setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/local/lib"
# To Set EPICS installation directory:
R3.14.5
in base-3.14.5/configure/RELEASE
EXAMPLE: RELEASE.linux-x86
set INSTALL_LOCATION=/usr/local/epics-3.14.5
R3.14.8.2
in base-3.14.8.2/configure/RELEASE
EXAMPLE: RELEASE.linux-x86
set INSTALL_LOCATION=/usr/local/epics-3.14.8.2
Billy R. Adams
-----Original Message-----
From: [email protected] on behalf of Heinrich du Toit
Sent: Fri 08/17/07 2:51 AM
To: TechTalk EPICS
Subject: rpath compiling?
Hi
I'm trying to built an ubuntu package for EPICS :)
Just so that I don't have to compile the thing on every client out
there. - Some machines don't really need gcc and all that development
stuff
Anyways.
I'm having a bit of trouble with the way EPICS links to it's own .so
files.
(linux-x86)
It seems that the compile thing sets --rpath in the linker.
This way it links to a specific directory.
Problem is that this directory is not the same when built and installed.
So I would like to have it built without rpath set.
Then install the .so files to /usr/lib
And then normal ld.so stuff in linux can link it up.
My question is - how do I get EPICS to not link to a specific directory?
This seems like a chicken-egg problem..
As I want to compile the things linked to libraries that will only be
installed later. :(
Any help will be appreciated
-Heinrich