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  <20142015  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Error in Linking a shared library
From: Ralph Lange <[email protected]>
To: Muhammad Saleem <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Fri, 05 Dec 2014 10:17:50 +0100
Hi Saleem,

In the EPICS Makefile, you have to set the library name by setting the base name *without the '-l' option for the linker*.

    PCI7434_LIBS += pci_dask

You should also specify the location:

    pci_dask_DIR = /wherever/this/library/is/located

Chapter 4 of the Application Developer's Guide has all the details.

HTH,
~Ralph


On 05/12/2014 05:54, Muhammad Saleem wrote:
Dear Dirk Zimoch,
I am writing device support for a digital output card from Adlink, PCI-7434. Adlink ships a shared library file "libpci_dask.so" that needs to be linked with every code we write for these DO cards. Here is the normal gcc command line which successfully compiles a code written for PCI-7434.

gcc -o 7434test -lpci_dask 7434test.o conio.o

I have written device support routines for this card and now I am trying to include it in IOC. However, It gives the following error, every time I type make.

====

make[3]: *** No rule to make target `../../../lib/linux-x86/lib-lpci_dask.a', needed by `PCI7434'. Stop.


make[3]: Leaving directory `/home/muhammad/Device Support/DevSupPCI7434/PCI7434App/src/O.linux-x86'
make[2]: *** [install.linux-x86] Error 2
make[2]: Leaving directory `/home/muhammad/Device Support/DevSupPCI7434/PCI7434App/src'
make[1]: *** [src.install] Error 2
make[1]: Leaving directory `/home/muhammad/Device Support/DevSupPCI7434/PCI7434App'
make: *** [PCI7434App.install] Error 2
[...]


References:
Error in Linking a shared library Muhammad Saleem

Navigate by Date:
Prev: Error in Linking a shared library Muhammad Saleem
Next: Moved 'ether_ip' and Matlab Channel Access 'mca' to GitHub Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Error in Linking a shared library Muhammad Saleem
Next: Moved 'ether_ip' and Matlab Channel Access 'mca' to GitHub Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·