I see this in your output:
/usr/bin/ar -rc librampSupport.a xxxRecord.o devXxxSoft.o dbSubExample.o rampHello.o initTrace.o sncExample.o
/usr/bin/ranlib librampSupport.a
Installing library ../../../lib/linux-x86_64/librampSupport.a
/usr/bin/g++ -o sncProgram -Wl,-Bstatic -L/home/zj/zlinx/base-3.14.12.8/lib/linux-x86_64 -L/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/lib/linux-x86_64 -m64 sncProgram.o -lseq -lpv -lcas -lgdd -lasHost -ldbStaticHost -lregistryIoc
-lca -lCom -Wl,-Bdynamic -lpthread -lreadline -lm -lrt -ldl -lgcc
Installing Tcl library ../../../lib/linux-x86_64/librampSupport.so
So it is building a static library, librampSupport.a but not a dynamic library, librampSupport.so. It is failing when it looks for librampSupport.so. Did you set the flag SHARED_LIBRARIES=NO?
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of ?? via Tech-talk
Sent: Friday, July 3, 2020 11:31 AM
To: tech-talk at aps.anl.gov
Subject: Cross-compile epics applicaton for debian 8 on the zynq
Hello,
Although cross-compiled successfully the base-3.14.12.8, synApps_5_8 and soft IOC example which work well on my target now, I need help to cross-compile another EPICS application ,named ramp, compiled no problem on the x86_64 host computer. My device
is the zynq of Xilinx with debian 8, and the ramp is to control the serial and TCP/IP device , it consists of these components:
SUPPORT=/home/zj/zlinx/synApps_5_8/support
ASYN=$(SUPPORT)/asyn-4-26
CALC=$(SUPPORT)/calc-3-4-2-1
STREAM=$(SUPPORT)/stream-2-6a
SNCSEQ=$(SUPPORT)/seq-2-2-1
PCRE_INCLUDE=/usr/include
PCRE_LIB=/usr/lib
Here is the output of make, It seems that the compiler can't find file 'librampSupport.so', in fact the file exists,however I really don't know what to do now, I appreciate it if you could give any advice. thanks!
make -C ./configure install
make[1]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure'
make -C O.linux-x86_64 -f ../Makefile TOP=../.. \
T_A=linux-x86_64 install
make[2]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure/O.linux-x86_64'
perl /home/zj/zlinx/base-3.14.12.8/bin/linux-x86_64/convertRelease.pl checkRelease
EPICS/Release.pm: Undefined macro $(AREA_DETECTOR) used
EPICS/Release.pm: Undefined macro $(AREA_DETECTOR) used
make[2]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure/O.linux-x86_64'
make -C O.linux-arm -f ../Makefile TOP=../.. \
T_A=linux-arm install
make[2]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure/O.linux-arm'
perl /home/zj/zlinx/base-3.14.12.8/bin/linux-x86_64/convertRelease.pl checkRelease
EPICS/Release.pm: Undefined macro $(AREA_DETECTOR) used
EPICS/Release.pm: Undefined macro $(AREA_DETECTOR) used
make[2]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure/O.linux-arm'
make[1]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure'
make -C ./rampApp install
make[1]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp'
make -C ./src install
make[2]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp/src'
make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \
T_A=linux-x86_64 install
make[3]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp/src/O.linux-x86_64'
/usr/bin/gcc -c -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -g -Wall -m64 -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/zj/zlinx/base-3.14.12.8/include/os/Linux -I/home/zj/zlinx/base-3.14.12.8/include
-I/home/zj/zlinx/synApps_5_8/support/asyn-4-26/include -I/home/zj/zlinx/synApps_5_8/support/calc-3-4-2-1/include -I/home/zj/zlinx/synApps_5_8/support/stream-2-6a/include -I/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/include ../xxxRecord.c
/usr/bin/gcc -c -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -g -Wall -m64 -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/zj/zlinx/base-3.14.12.8/include/os/Linux -I/home/zj/zlinx/base-3.14.12.8/include
-I/home/zj/zlinx/synApps_5_8/support/asyn-4-26/include -I/home/zj/zlinx/synApps_5_8/support/calc-3-4-2-1/include -I/home/zj/zlinx/synApps_5_8/support/stream-2-6a/include -I/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/include ../devXxxSoft.c
/usr/bin/gcc -c -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -g -Wall -m64 -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/zj/zlinx/base-3.14.12.8/include/os/Linux -I/home/zj/zlinx/base-3.14.12.8/include
-I/home/zj/zlinx/synApps_5_8/support/asyn-4-26/include -I/home/zj/zlinx/synApps_5_8/support/calc-3-4-2-1/include -I/home/zj/zlinx/synApps_5_8/support/stream-2-6a/include -I/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/include ../dbSubExample.c
/usr/bin/ar -rc librampSupport.a xxxRecord.o devXxxSoft.o dbSubExample.o rampHello.o initTrace.o sncExample.o
/usr/bin/ranlib librampSupport.a
Installing library ../../../lib/linux-x86_64/librampSupport.a
/usr/bin/g++ -o sncProgram -Wl,-Bstatic -L/home/zj/zlinx/base-3.14.12.8/lib/linux-x86_64 -L/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/lib/linux-x86_64 -m64 sncProgram.o -lseq -lpv -lcas -lgdd -lasHost -ldbStaticHost -lregistryIoc
-lca -lCom -Wl,-Bdynamic -lpthread -lreadline -lm -lrt -ldl -lgcc
Installing Tcl library ../../../lib/linux-x86_64/librampSupport.so
Usage:
[ -m mode ] file ... directory
-d Create non-existing directories
-m mode Set the mode for the installed file (0755 by default)
file Name of file
directory Destination directory
Can't find file 'librampSupport.so'
/home/zj/zlinx/base-3.14.12.8/configure/RULES_BUILD:445: recipe for target '../../../lib/linux-x86_64/librampSupport.so' failed
make[3]: *** [../../../lib/linux-x86_64/librampSupport.so] Error 2
make[3]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp/src/O.linux-x86_64'
/home/zj/zlinx/base-3.14.12.8/configure/RULES_ARCHS:61: recipe for target 'install.linux-x86_64' failed
make[2]: *** [install.linux-x86_64] Error 2
make[2]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp/src'
/home/zj/zlinx/base-3.14.12.8/configure/RULES_DIRS:83: recipe for target 'src.install' failed
make[1]: *** [src.install] Error 2
make[1]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp'
/home/zj/zlinx/base-3.14.12.8/configure/RULES_DIRS:83: recipe for target 'rampApp.install' failed
make: *** [rampApp.install] Error 2