Hi Renato,
You need to put each of the EPICS 4.6.0 modules in your application's configure/RELEASE file. For example:
EV4_BASE=/corvette/usr/local/epics/epicsV4/EPICS-CPP-4.6.0
PVCOMMON=$(EV4_BASE)/pvCommonCPP
PVACCESS=$(EV4_BASE)/pvAccessCPP
PVDATA=$(EV4_BASE)/pvDataCPP
PVDATABASE=$(EV4_BASE)/pvDatabaseCPP
NORMATIVETYPES=$(EV4_BASE)/normativeTypesCPP
EPICS_BASE=/corvette/usr/local/epics/base-3.15.5
The EPICS build system will search all modules listed in configure/RELEASE for include files, dbd files, library files, etc.
Mark
________________________________
From: [email protected] <[email protected]> on behalf of renato sanhueza <[email protected]>
Sent: Sunday, January 7, 2018 11:04 AM
To: [email protected]
Subject: Telling gcc the location of EPICS
Hi,
This is probably a newbie question. I have built EPICS base and EPICS 4.6.0 modules following the instructions in the README files. But I notice that gcc doesn't know where the headers are. The linker doesn't know either. So when I compile a program using pv/pvAccess I get an error (of course). I found that I can add the paths to $CPLUS_INCLUDE_PATH and $LD_LIBRARY_PATH manually for fixing the errors.
Is there a more practical way to do it?
The path to my EPICS base is: /opt/epics/base
The path to EPICS v4 modules is: /opt/epics/EPICS-CPP-4.6.0
But if I want to compile a program I will have to add many subdirectories of the previously mentioned directories manually.
Best regards,
--
Renato Sanhueza Ulsen
Ing Civil Informática.
- References:
- Telling gcc the location of EPICS renato sanhueza
- Navigate by Date:
- Prev:
Telling gcc the location of EPICS renato sanhueza
- Next:
compress record FIFI/LIFO not working Daniel Schick
- 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
- Navigate by Thread:
- Prev:
Telling gcc the location of EPICS renato sanhueza
- Next:
compress record FIFI/LIFO not working Daniel Schick
- 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
|