Dear Colleagues I’ve made some investigation and I noticed that after installing MinGW, Plcnext project could not be compiled (CMake errors occured). So I deteted all (eclipse, PLCnCLI, SDKs, MinGW etc.) and I installed again only those which are necessary for PLCnext (PLCnCLI, SDKs) and now project compiles correcty. I have only some doubts why some of listing rows are red? Compilation seems to be done successfully.
cmd.exe /c ““C:\\Program Files\\PHOENIX CONTACT\\PLCnCLI 2020.0 LTS/plcncli.exe” generate code -p"C:/Users/asobota/eclipse-workspace/AS01_plcnext” -s"src""
Generating all files with the ‘code’ generator for C:\\Users\\asobota\\eclipse-workspace\\AS01_plcnext.
Successfully generated all files with the ‘code’ generator for C:\\Users\\asobota\\eclipse-workspace\\AS01_plcnext. cmd.exe /c ““C:\\Program Files\\PHOENIX CONTACT\\PLCnCLI 2020.0 LTS/plcncli.exe” generate config -p"C:/Users/asobota/eclipse-workspace/AS01_plcnext” -s"src""
Generating all files with the ‘config’ generator for C:\\Users\\asobota\\eclipse-workspace\\AS01_plcnext.
Successfully generated all files with the ‘config’ generator for C:\\Users\\asobota\\eclipse-workspace\\AS01_plcnext. cmd.exe /c ““C:\\Program Files\\PHOENIX CONTACT\\PLCnCLI 2020.0 LTS/plcncli.exe” build -p"C:/Users/asobota/eclipse-workspace/AS01_plcnext” -b Release"
Requested build for targets AXCF2152,20.0.0.24752
Starting build for target AXCF2152,20.0.0.24752
Checking if CMake needs to be reconfigured…
[cmake]:
[cmake]: C:\\Users\\asobota\\eclipse-workspace\\AS01_plcnext\\intermediate\\cmake\\AXCF2152,20.0.0.24752\\Release>set PATH=C:\\SDKs\\AXCF2152\\2020.0\\sysroots\\x86_64-pokysdk-mingw32\\usr\\bin;C:/Program Files/Java/jdk-14/bin/server;C:/Program Files/Java/jdk-14/bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\;C:\\Windows\\System32\\OpenSSH\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Intel\\WiFi\\bin\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\PHOENIX CONTACT\\PLCnCLI 2020.0 LTS\;C:\\Users\\asobota\\eclipse\\cpp-2020-03\\eclipse;
[cmake]: Scanning dependencies of target AS01_plcnext
[cmake]: [ 12%] Building CXX object CMakeFiles/AS01_plcnext.dir/intermediate/code/AS01_plcnextComponentProgramProvider.cpp.o
[cmake]: [ 25%] Building CXX object CMakeFiles/AS01_plcnext.dir/intermediate/code/AS01_plcnextLibrary.meta.cpp.o
[cmake]: In file included from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/strings.h:23,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/string.h:431,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/boost/range/detail/implementation_help.hpp:18,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/boost/range/end.hpp:24,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/boost/range/functions.hpp:19,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/boost/range/iterator_range_core.hpp:38,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/boost/algorithm/string/replace.hpp:16,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/plcnext/Arp/System/Core/BasicString.hxx:12,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/plcnext/Arp/System/Core/TypeSystem.h:8,
[cmake]: from C:/SDKs/AXCF2152/2020.0/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/plcnext/Arp/System/Core/Arp.h:19,
[cmake]: from C:/Users/asobota/eclipse-workspace/AS01_plcnext/intermediate/code/AS01_plcnextLibrary.meta.cpp:1:
[cmake]: C:/Users/asobota/eclipse-workspace/AS01_plcnext/intermediate/code/AS01_plcnextLibrary.meta.cpp: In member function ‘void AS01_plcnext::AS01_plcnextLibrary::InitializeTypeDomain()’:
[cmake]: C:/Users/asobota/eclipse-workspace/AS01_plcnext/intermediate/code/AS01_plcnextLibrary.meta.cpp:21:46: warning: offsetof within non-standard-layout type ‘AS01_plcnext::AS01_plcnextProgram’ is conditionally-supported [-Winvalid-offsetof]
[cmake]: { “OUTp01”, offsetof(::AS01_plcnext::AS01_plcnextProgram, OUTp01), DataType::Boolean, “”, sizeof(boolean), alignof(boolean), { }, StandardAttribute::Output | StandardAttribute::Retain },
[cmake]: ^
[cmake]: C:/Users/asobota/eclipse-workspace/AS01_plcnext/intermediate/code/AS01_plcnextLibrary.meta.cpp:22:46: warning: offsetof within non-standard-layout type ‘AS01_plcnext::AS01_plcnextProgram’ is conditionally-supported [-Winvalid-offsetof]
[cmake]: { “OUTp02”, offsetof(::AS01_plcnext::AS01_plcnextProgram, OUTp02), DataType::Boolean, “”, sizeof(boolean), alignof(boolean), { }, StandardAttribute::Output | StandardAttribute::Retain },
[cmake]: ^
[cmake]: [ 37%] Building CXX object CMakeFiles/AS01_plcnext.dir/src/AS01_plcnextProgram.cpp.o
[cmake]: [ 50%] Linking CXX shared library libAS01_plcnext.so
[cmake]: [100%] Built target AS01_plcnext
[cmake]: Linking CXX shared library CMakeFiles/CMakeRelink.dir/libAS01_plcnext.so
[cmake]: Install the project…
[cmake]: – Install configuration: “Release”
[cmake]: – Installing: C:/Users/asobota/eclipse-workspace/AS01_plcnext/bin/AXCF2152_20.0.0.24752/Release/lib/libAS01_plcnext.so
Successfully built the project AS01_plcnext for target AXCF2152,20.0.0.24752.
Finished build for all targets cmd.exe /c ““C:\\Program Files\\PHOENIX CONTACT\\PLCnCLI 2020.0 LTS/plcncli.exe” deploy -p"C:/Users/asobota/eclipse-workspace/AS01_plcnext” -s"src""
Successfully deployed all files for C:\\Users\\asobota\\eclipse-workspace\\AS01_plcnext. Best regards, Adam