EPICS Home

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  2017  2018  2019  <20202021  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  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: SNCSEQ Error Windows
From: "Hetz, Benjamin via Tech-talk" <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: tech-talk <tech-talk at aps.anl.gov>
Date: Tue, 11 Feb 2020 12:09:40 +0000
Sure, the Files in the Source directory are the one build by makeBaseApp -t example:
dbSubExample.c
dbSubExample.dbd
devinterlocksVersion.c
devinterlocksVersion.dbd
devXxxSoft.c
initTrace.c
initTrace.dbd
interlocksHello.c
interlocksHello.dbd
interlocksMain.cpp
Makefile
O.Common
O.windows-x64-static
sncExample.dbd
sncExample.stt
sncProgram.st
xxxRecord.c
xxxRecord.dbd
xxxSupport.dbd



And the Makefile is: 
TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS BELOW HERE

# Use typed rset structure (see 3.16.1 release notes)
USR_CPPFLAGS += -DUSE_TYPED_RSET

# xxxRecord.h will be created from xxxRecord.dbd
DBDINC += xxxRecord

# Install xxxSupport.dbd into <top>/dbd
DBD += xxxSupport.dbd

# Build an IOC support library
LIBRARY_IOC += interlocksSupport

# Compile and add code to the support library
interlocksSupport_SRCS += xxxRecord.c
interlocksSupport_SRCS += devXxxSoft.c

# Link locally-provided code into the support library,
# rather than directly into the IOC application, that
# causes problems on Windows DLL builds
interlocksSupport_SRCS += dbSubExample.c
interlocksSupport_SRCS += devinterlocksVersion.c
interlocksSupport_SRCS += interlocksHello.c
interlocksSupport_SRCS += initTrace.c

interlocksSupport_LIBS += $(EPICS_BASE_IOC_LIBS)

# Auto-generate a header file containing a version string.
# Version comes from the VCS if available, else date+time.
GENVERSION = interlocksVersion.h
# Macro name
GENVERSIONMACRO = interlocksVERSION

# Build the IOC application
PROD_IOC = interlocks

# interlocks.dbd will be created and installed
DBD += interlocks.dbd

# interlocks.dbd will include these files:
interlocks_DBD += base.dbd
interlocks_DBD += xxxSupport.dbd
interlocks_DBD += dbSubExample.dbd
interlocks_DBD += devinterlocksVersion.dbd
interlocks_DBD += interlocksHello.dbd
interlocks_DBD += initTrace.dbd

# interlocks_registerRecordDeviceDriver.cpp derives from interlocks.dbd
interlocks_SRCS += interlocks_registerRecordDeviceDriver.cpp

# Build the main IOC entry point where needed
interlocks_SRCS_DEFAULT += interlocksMain.cpp
interlocks_SRCS_vxWorks += -nil-

# Link in the code from our support library
interlocks_LIBS += interlocksSupport

# To build SNL programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file
ifneq ($(SNCSEQ),)
    # Build sncExample into interlocksSupport
    sncExample_SNCFLAGS += +r
    interlocks_DBD += sncExample.dbd
    # A .stt sequence program is *not* pre-processed:
    interlocksSupport_SRCS += sncExample.stt
    interlocksSupport_LIBS += seq pv
    interlocks_LIBS += seq pv

    # Build sncProgram as a standalone program
    PROD_HOST += sncProgram
    sncProgram_SNCFLAGS += +m
    # A .st sequence program *is* pre-processed:
    sncProgram_SRCS += sncProgram.st
    sncProgram_LIBS += seq pv
    sncProgram_LIBS += $(EPICS_BASE_HOST_LIBS)
endif

# Link QSRV (pvAccess Server) if available
ifdef EPICS_QSRV_MAJOR_VERSION
    interlocks_LIBS += qsrv
    interlocks_LIBS += $(EPICS_BASE_PVA_CORE_LIBS)
    interlocks_DBD += PVAServerRegister.dbd
    interlocks_DBD += qsrv.dbd
endif

# Finally link IOC to the EPICS Base libraries
interlocks_LIBS += $(EPICS_BASE_IOC_LIBS)

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD EXTRA GNUMAKE RULES BELOW HERE

# Explicit dependency needed for generated header file
devinterlocksVersion$(DEP): $(COMMON_DIR)/$(GENVERSION)

> -----Original Message-----
> From: Mark Rivers <rivers at cars.uchicago.edu>
> Sent: Tuesday, February 11, 2020 1:00 PM
> To: Hetz, Benjamin <b.hetz at uni-muenster.de>
> Cc: tech-talk <tech-talk at aps.anl.gov>
> Subject: Re: SNCSEQ Error Windows
> 
> 
> Can you send the Makefile you are using, and a listing of the files in the
> source directory?
> 
> ________________________________
> From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Hetz,
> Benjamin via Tech-talk <tech-talk at aps.anl.gov>
> Sent: Tuesday, February 11, 2020 3:06 AM
> To: tech-talk at aps.anl.gov
> Subject: SNCSEQ Error Windows
> 
> Hello,
> I am having following problem:
> I am using the Windows build of EPICS with VS compiler and Strawbery Perl.
> Compiling SNCSeq 2.2.8 went fine and also its demo/example files were build
> in seq-2_2_8\examples and running.
> Following the instruction from https://www-
> csr.bessy.de/control/SoftDist/sequencer/Compiling.html I created an
> example IOC and changed SNCSEQ in configure/REALESE to
> "C:/opt/epics/base-7_0_3/modules/seq-2_2_8".
> Running now gmake in the example ioc top dir yields following error:
> 
> gmake[3]: *** No rule to make target 'sncExample.obj', needed by
> 'interlocksSupport.lib'.  Stop.
> gmake[3]: Leaving directory
> 'C:/opt/epics/interlocks/interlocksApp/src/O.windows-x64-static'
> gmake[2]: *** [C:/opt/epics/base-7_0_3/configure/RULES_ARCHS:58:
> install.windows-x64-static] Error 2
> gmake[2]: Leaving directory 'C:/opt/epics/interlocks/interlocksApp/src'
> gmake[1]: *** [C:/opt/epics/base-7_0_3/configure/RULES_DIRS:84:
> src.install] Error 2
> gmake[1]: Leaving directory 'C:/opt/epics/interlocks/interlocksApp'
> gmake: *** [C:/opt/epics/base-7_0_3/configure/RULES_DIRS:84:
> interlocksApp.install] Error 2
> 
> May anyone please help?
> 
> Thank you, Ben
> 


Replies:
Re: SNCSEQ Error Windows Mark Rivers via Tech-talk
References:
SNCSEQ Error Windows Hetz, Benjamin via Tech-talk
Re: SNCSEQ Error Windows Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: SNCSEQ Error Windows Mark Rivers via Tech-talk
Next: Building EPICS base/IOC only for cross target Florian Feldbauer via Tech-talk
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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: SNCSEQ Error Windows Mark Rivers via Tech-talk
Next: Re: SNCSEQ Error Windows Mark Rivers via Tech-talk
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  <20202021  2022  2023  2024