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: Problem compiling EPICS ioc with libusb
From: Sam de Jong <[email protected]>
To: Michael Westfall <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 22 Jun 2017 17:29:20 -0700

Hi Mike,

    Thanks for the tip. I've applied your recommended changes and I'm still having trouble compiling. Here's the result now:

make -C ./configure install
make[1]: Entering directory `/media/Extra_Space/work/testIOC/configure'
perl ../../epics/epics3.14-3.14.12.3/bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ../..
mkdir O.Common
make -C O.linux-x86_64 -f ../Makefile TOP=../.. T_A=linux-x86_64 install
make[2]: Entering directory `/media/Extra_Space/work/testIOC/configure/O.linux-x86_64'
perl ../../../epics/epics3.14-3.14.12.3/bin/linux-x86_64/convertRelease.pl checkRelease
make[2]: Leaving directory `/media/Extra_Space/work/testIOC/configure/O.linux-x86_64'
make[1]: Leaving directory `/media/Extra_Space/work/testIOC/configure'
make -C ./testApp install
make[1]: Entering directory `/media/Extra_Space/work/testIOC/testApp'
make -C ./src install
make[2]: Entering directory `/media/Extra_Space/work/testIOC/testApp/src'
perl ../../../epics/epics3.14-3.14.12.3/bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ../../..
mkdir O.Common
make -C O.linux-x86_64 -f ../Makefile TOP=../../.. T_A=linux-x86_64 install
make[3]: Entering directory `/media/Extra_Space/work/testIOC/testApp/src/O.linux-x86_64'
perl ../../../../epics/epics3.14-3.14.12.3/bin/linux-x86_64/makeIncludeDbd.pl base.dbd xxxSupport.dbd dbSubExample.dbd testHello.dbd initTrace.dbd testInclude.dbd
echo "../O.Common/testInclude.dbd : ../Makefile" >> test.dbd.d
Expanding dbd
Installing created dbd file ../../../dbd/test.dbd
echo "../O.Common/xxxRecord.h : ../Makefile" >> xxxRecord.h.d
../../../../epics/epics3.14-3.14.12.3/bin/linux-x86_64/dbToRecordtypeH  -I. -I.. -I../O.Common -I../../../dbd -I../../../../epics/epics3.14-3.14.12.3/dbd ../xxxRecord.dbd xxxRecord.h
Installing generated generic include file ../../../include/xxxRecord.h

/usr/bin/gcc -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dlinux  -D_REENTRANT   -O3 -g   -Wall      -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I../../../../epics/epics3.14-3.14.12.3/include/os/Linux -I../../../../epics/epics3.14-3.14.12.3/include       ../xxxRecord.c

/usr/bin/gcc -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dlinux  -D_REENTRANT   -O3 -g   -Wall      -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I../../../../epics/epics3.14-3.14.12.3/include/os/Linux -I../../../../epics/epics3.14-3.14.12.3/include       ../devXxxSoft.c

/usr/bin/gcc -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dlinux  -D_REENTRANT   -O3 -g   -Wall      -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I../../../../epics/epics3.14-3.14.12.3/include/os/Linux -I../../../../epics/epics3.14-3.14.12.3/include       ../dbSubExample.c

/usr/bin/gcc -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dlinux  -D_REENTRANT   -O3 -g   -Wall      -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I../../../../epics/epics3.14-3.14.12.3/include/os/Linux -I../../../../epics/epics3.14-3.14.12.3/include       ../testHello.c

/usr/bin/gcc -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dlinux  -D_REENTRANT   -O3 -g   -Wall      -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I../../../../epics/epics3.14-3.14.12.3/include/os/Linux -I../../../../epics/epics3.14-3.14.12.3/include       ../initTrace.c
/usr/bin/ar -rc   libtestSupport.a        xxxRecord.o devXxxSoft.o dbSubExample.o testHello.o initTrace.o
/usr/bin/ranlib libtestSupport.a
/usr/bin/g++ -o libtestSupport.so -shared -fPIC -Wl,-soname=libtestSupport.so -Wl,-hlibtestSupport.so -L/media/Extra_Space/work/epics/epics3.14-3.14.12.3/lib/linux-x86_64        -m64              xxxRecord.o devXxxSoft.o dbSubExample.o testHello.o initTrace.o    -lrecIoc -lsoftDevIoc -lmiscIoc -lrsrvIoc -ldbtoolsIoc -lasIoc -ldbIoc -lregistryIoc -ldbStaticIoc -lca -lCom   -lpthread   -lreadline -lm -lrt -ldl -lgcc
Installing shared library ../../../lib/linux-x86_64/libtestSupport.so
Installing library ../../../lib/linux-x86_64/libtestSupport.a
perl ../../../../epics/epics3.14-3.14.12.3/bin/linux-x86_64/registerRecordDeviceDriver.pl ../O.Common/test.dbd test_registerRecordDeviceDriver /media/Extra_Space/work/testIOC > test.tmp
mv test.tmp test_registerRecordDeviceDriver.cpp

/usr/bin/g++ -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dlinux  -D_REENTRANT   -O3 -g   -Wall      -m64      -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I../../../../epics/epics3.14-3.14.12.3/include/os/Linux -I../../../../epics/epics3.14-3.14.12.3/include       test_registerRecordDeviceDriver.cpp
make[3]: *** No rule to make target `DI_2108_P.o', needed by `test'.  Stop.
make[3]: Leaving directory `/media/Extra_Space/work/testIOC/testApp/src/O.linux-x86_64'
make[2]: *** [install.linux-x86_64] Error 2
make[2]: Leaving directory `/media/Extra_Space/work/testIOC/testApp/src'
make[1]: *** [src.install] Error 2
make[1]: Leaving directory `/media/Extra_Space/work/testIOC/testApp'
make: *** [testApp.install] Error 2







On 17-06-22 04:39 PM, Michael Westfall wrote:
Also, I don't think you want to do this:

I added the header files for a class I created which interfaces with a usb device (these are included in this email) by adding this line to /testAPP/src/testMain.cpp:

    #include "DI-2108-P.cpp"


 
Instead, in your Makefile, add this:

test_SRCS += DI-2108P.cpp




--
Mike Westfall
Control Systems Software Engineer




Replies:
RE: Problem compiling EPICS ioc with libusb Mark Rivers
References:
Problem compiling EPICS ioc with libusb Sam de Jong
RE: Problem compiling EPICS ioc with libusb Mark Rivers
Re: Problem compiling EPICS ioc with libusb Michael Westfall

Navigate by Date:
Prev: Re: Problem compiling EPICS ioc with libusb Michael Westfall
Next: Re: Problem compiling EPICS ioc with libusb 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: Re: Problem compiling EPICS ioc with libusb Michael Westfall
Next: RE: Problem compiling EPICS ioc with libusb Mark Rivers
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 ·