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  2017  2018  2019  2020  2021  2022  <20232024  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  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Help using newest OPC UA Modules/IOCs
From: "Marco A. Barra Montevechi Filho via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Cc: SWC <swc at lnls.br>
Date: Fri, 30 Jun 2023 12:00:07 +0000
Hi, all.

We are finally taking some time to update our OPC UA IOCs here at Sirius. Im using the main Ralph Lange's repository to build the modules:

https://github.com/epics-modules/opcua/tree/v0.9.4

And also the Assets distributed: 

https://github.com/epics-modules/opcua/releases/tag/v0.9.4

Particularly the one for debian 11: https://github.com/epics-modules/opcua/releases/download/v0.9.4/IOC_opcua-0.9.4_Base-3.15.9_debian11.tar.gz

However, as someone who is not a PLC or OPC UA expert, i fail to understand the difference between the whole repository and only the asset.
Extracting the tar file from the provided asset, pointing to EPICS_BASE path in its configure/RELEASE file and building works just fine.

Cloning the whole repository, pointing to EPICS_BASE and GTEST in its configure/RELEASE file doesnt work. The build fails with the compilation message that i append below.

My main question is: can i simply use the asset instead of the whole module in the repository? If yes, what will i be missing?
Also, in my GTEST build, i didnt write any particular test because i dont know how to use this module. Is it necessary?

Thanks for your time,

Marco

BUILD FAILURE LOG:

make -C ./configure install
make[1]: Entering directory '/usr/local/epics/apps/opcua/configure'
make -C O.linux-x86_64 -f ../Makefile TOP=../.. \
    T_A=linux-x86_64 install
make[2]: Entering directory '/usr/local/epics/apps/opcua/configure/O.linux-x86_64'
perl -CSD /usr/local/epics/base/bin/linux-x86_64/convertRelease.pl checkRelease
make[2]: Leaving directory '/usr/local/epics/apps/opcua/configure/O.linux-x86_64'
make[1]: Leaving directory '/usr/local/epics/apps/opcua/configure'
make -C ./devOpcuaSup install
make[1]: Entering directory '/usr/local/epics/apps/opcua/devOpcuaSup'
make -C O.linux-x86_64 -f ../Makefile TOP=../.. \
    T_A=linux-x86_64 install
make[2]: Entering directory '/usr/local/epics/apps/opcua/devOpcuaSup/O.linux-x86_64'
perl -CSD /usr/local/epics/base/bin/linux-x86_64/expandVars.pl -DEPICS_OPCUA_MAJOR_VERSION="0" -DEPICS_OPCUA_MINOR_VERSION="9" -DEPICS_OPCUA_MAINTENANCE_VERSION="4" -DEPICS_OPCUA_DEVELOPMENT_FLAG="0" -DEPICS_OPCUA_GIT_COMMIT="v0.9.4-0-g45bb32c-dirty" -t ../.. -a linux-x86_64   ../devOpcuaVersionNum.h@ ../O.Common/devOpcuaVersionNum.h
Installing generated generic include file ../../include/devOpcuaVersionNum.h
/usr/bin/g++  -D_GNU_SOURCE -D_DEFAULT_SOURCE          -D_X86_64_ -DUNIX  -Dlinux     -O3 -g   -Wall    -DUSE_TYPED_RSET -std=c++11 -std=c++11  -mtune=generic    -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../devOpcuaSup -I../../include/compiler/gcc -I../../include/os/Linux -I../../include   -I/usr/local/epics/modules/gtest/include -I/usr/local/epics/base/include/compiler/gcc -I/usr/local/epics/base/include/os/Linux -I/usr/local/epics/base/include        -c ../devOpcua.cpp
/usr/bin/ar -rc    libopcua.a        devOpcua.o iocshIntegration.o RecordConnector.o linkParser.o opcuaItemRecord.o
/usr/bin/ranlib libopcua.a
/usr/bin/g++ -o libopcua.so.0.9 -shared -fPIC -Wl,-hlibopcua.so.0.9 -L/usr/local/epics/apps/opcua/lib/linux-x86_64 -L/usr/local/epics/base/lib/linux-x86_64 -Wl,-rpath,/usr/local/epics/apps/opcua/lib/linux-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/linux-x86_64          -rdynamic -m64            devOpcua.o iocshIntegration.o RecordConnector.o linkParser.o opcuaItemRecord.o    -ldbRecStd -ldbCore -lca -lCom   -lpthread   -lreadline -lm -lrt -ldl -lgcc
Installing shared library ../../lib/linux-x86_64/libopcua.so.0.9
ln -s libopcua.so.0.9 ../../lib/linux-x86_64/libopcua.so
Installing library ../../lib/linux-x86_64/libopcua.a
make[2]: Leaving directory '/usr/local/epics/apps/opcua/devOpcuaSup/O.linux-x86_64'
make[1]: Leaving directory '/usr/local/epics/apps/opcua/devOpcuaSup'
make -C ./unitTestApp install
make[1]: Entering directory '/usr/local/epics/apps/opcua/unitTestApp'
make -C ./src install
make[2]: Entering directory '/usr/local/epics/apps/opcua/unitTestApp/src'
make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \
    T_A=linux-x86_64 install
make[3]: Entering directory '/usr/local/epics/apps/opcua/unitTestApp/src/O.linux-x86_64'
/usr/local/epics/modules/gtest/cfg/RULES_GTEST:45: ElementTreeTest.make: No such file or directory
make[3]: *** No rule to make target 'Session.o', needed by 'ElementTreeTest'.  Stop.
make[3]: Leaving directory '/usr/local/epics/apps/opcua/unitTestApp/src/O.linux-x86_64'
make[2]: *** [/usr/local/epics/base/configure/RULES_ARCHS:58: install.linux-x86_64] Error 2
make[2]: Leaving directory '/usr/local/epics/apps/opcua/unitTestApp/src'
make[1]: *** [/usr/local/epics/base/configure/RULES_DIRS:84: src.install] Error 2
make[1]: Leaving directory '/usr/local/epics/apps/opcua/unitTestApp'
make: *** [/usr/local/epics/base/configure/RULES_DIRS:84: unitTestApp.install] Error 2

Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.


Replies:
Re: Help using newest OPC UA Modules/IOCs Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Question about fetching history data from MySQL by using phoebus neu lzf via Tech-talk
Next: Re: Help using newest OPC UA Modules/IOCs Ralph Lange 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  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Re: Tech-talk Digest, Vol 17, Issue 351 Lee L. Yang via Tech-talk
Next: Re: Help using newest OPC UA Modules/IOCs Ralph Lange 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  2020  2021  2022  <20232024 
ANJ, 30 Jun 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·