Experimental Physics and
| |||||||||||||||||
|
You built your sequence program "standalone", i.e. it is run as a separate process not as part of an ioc application. Uncomment the lines Thanks for your answer. With "sncExample.stt" there is no error message from "make". But changing the name of the program to "sncExample2.stt" and changing the "Makefile" to: ifneq ($(SNCSEQ),) # This builds sncExample as a component of example example_DBD += sncExample.dbd example_SRCS += sncExample2.stt example_LIBS += seq pv # The following builds sncProgram as a standalone application # PROD_HOST += sncProgram2 # sncProgram_SNCFLAGS += +m # sncProgram_SRCS += sncProgram2.stt # sncProgram_LIBS += seq pv # sncProgram_LIBS += $(EPICS_BASE_HOST_LIBS) endif I get the following error message: .... usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -ansi -O3 -Wall -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/wehler/EPICS3/SEQ/seq-2.0.8/include/os/Linux -I/home/wehler/EPICS3/SEQ/seq-2.0.8/include -I/home/wehler/EPICS3/base-3.14.6/include/os/Linux -I/home/wehler/EPICS3/base-3.14.6/include ../dbSubExample.c converting ../sncExample2.stt /home/wehler/EPICS3/SEQ/seq-2.0.8/bin/linux-x86/snc .../sncExample2.stt -o sncExample2.c /usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -ansi -O3 -Wall -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/wehler/EPICS3/SEQ/seq-2.0.8/include/os/Linux -I/home/wehler/EPICS3/SEQ/seq-2.0.8/include -I/home/wehler/EPICS3/base-3.14.6/include/os/Linux -I/home/wehler/EPICS3/base-3.14.6/include sncExample2.c /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -ansi -O3 -Wall -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/wehler/EPICS3/SEQ/seq-2.0.8/include/os/Linux -I/home/wehler/EPICS3/SEQ/seq-2.0.8/include -I/home/wehler/EPICS3/base-3.14.6/include/os/Linux -I/home/wehler/EPICS3/base-3.14.6/include ../exampleMain.cpp /usr/bin/g++ -o example -L/home/wehler/EPICS3/SEQ/seq-2.0.8/lib/linux-x86/ -L/home/wehler/EPICS3/TOP_SEQ3a/lib/linux-x86// -L/home/wehler/EPICS3/base-3.14.6/lib/linux-x86/ -Wl,-rpath,/home/wehler/EPICS3/TOP_SEQ3a/lib/linux-x86 -Wl,-rpath,/home/wehler/EPICS3/SEQ/seq-2.0.8/lib/linux-x86 -Wl,-rpath,/home/wehler/EPICS3/base-3.14.6/lib/linux-x86 example_registerRecordDeviceDriver.o dbSubExample.o sncExample2.o exampleMain.o -lxxxSupport -lseq -lpv -lrecIoc -lsoftDevIoc -liocsh -lmiscIoc -lrsrvIoc -ldbtoolsIoc -lasIoc -ldbIoc -lregistryIoc -ldbStaticIoc -lca -lCom example_registerRecordDeviceDriver.o(.text+0x507): In function `example_registerRecordDeviceDriver': : undefined reference to `pvar_func_sncExampleRegistrar' example_registerRecordDeviceDriver.o(.text+0x56d): In function `registerRecordDeviceDriverCallFunc': : undefined reference to `pvar_func_sncExampleRegistrar' collect2: ld returned 1 exit status make[3]: *** [example] error 1 make[3]: Leaving directory `/home/wehler/EPICS3/TOP_SEQ3a/exampleApp/src/O.linux-x86' make[2]: *** [install.linux-x86] error 2 make[2]: Leaving directory `/home/wehler/EPICS3/TOP_SEQ3a/exampleApp/src' make[1]: *** [src.install] error 2 make[1]: Leaving directory `/home/wehler/EPICS3/TOP_SEQ3a/exampleApp' make: *** [exampleApp.install] error 2 Mayby I should do something else if I want to install a new sequencer program? Regards Dorothea Wehler ------ Dr. Dorothea Wehler Cryoelectra GmbH Linde 72-74 D-42287 Wuppertal, Germany Tel: +49 202 / 69824-17 Fax: +49 202 / 69824-40
| ||||||||||||||||
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |