Problems after firmware updating to 2020

Hello, After updating SDK to the version 2020 we get errors messages during the user library compilation: [cmake]: [ 67%] Building CXX object CMakeFiles/PtusaPLCnextEngineer.dir/src/PtusaMainCmpnt.cpp.o

[cmake]: In file included from /home/id/ptusa_git/PAC_control_projects/main_control_prg/eclipse/projects/PLCnext-linux-PLCnextEngineer/src/PtusaMainCmpnt.cpp:1:
[cmake]: /home/id/ptusa_git/PAC_control_projects/main_control_prg/eclipse/projects/PLCnext-linux-PLCnextEngineer/src/PtusaMainCmpnt.hpp:6:10: fatal error: PtusaMainCmpntProgramProvider.hpp: No such file or directory
[cmake]: #include “PtusaMainCmpntProgramProvider.hpp”
[cmake]: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[cmake]: compilation terminated. It seems to be no generated code for the user component, so maybe 2020 requires also some user code changes? Thanks a lot.

Hi Dzmitry, An existing project should build OK with the new SDK. Are you using Eclipse to build, or the plcncli, or are you calling CMake directly? If using plcncli or Eclipse, did you also update the PLCnext CLI to version 2020.0 ? If using Eclipse, did you uninstall the old add-in, and install the add-in for version 2020.0 ? ~ Martin.

Hi Martin, I use Eclipse and I have the add-in for version 2020.0 installed.

Hello Dzmitry,

looks like the “plcncli generate code” does not work correctly.
→ did you also update the PLCnCLI to version 2020.0?

kind regards, Oliver

Hello. We use plcncli 2020, sdk 2020 and eclipse component 2020. Plcncli generate different set of files. Old one generates 6 files in intermediate\\code folder:3 for library and 3 for Component. New one generates only 3 files for library.


Hi Artem, Unless I am missing something, I don’t think you are correct. Three intermediate code files are still created for the Library, and three for each Component in a “standard” plcncli project. A plcncli acfproject creates three intermediate code files for the Library, and one for each Component. Did Oliver’s suggestion solve the original problem? ~ Martin.

Hello, Martin. Old plcncli launched with parameter --sources"“. 2020 plcncli at the same project launched generation with param -s"path to eclipse workspace”. Problem was fixed by adding /src subfolder to the source location of eclipse project.