Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Forte not compiling for Wago PFC200
Forte not compiling for Wago PFC200 [message #1798190] Tue, 13 November 2018 23:28 Go to next message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 30
Registered: April 2016
Member
Hello,

I tried to compile the forte version 1.9 for Wago PFC200 but it gives me compilation errors. Attached is the compilation error after I run > ptxdist targetinstall forte_wago, and ptxdist rule file for forte_wago.

I had to revert back to forte 1.8.4 which compiles fine using the same forte_wago.make in ptxdist.

Any help would be appreciated.

Cheers
Re: Forte not compiling for Wago PFC200 [message #1798202 is a reply to message #1798190] Wed, 14 November 2018 07:39 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

Hi,

this is rather strange. which 1.9 version did you try.? Would you mind already testing 4diac FORTE 1.10.0 RC2. Not only is it about 10% faster I think these things should definitely work there.

Alois
Re: Forte not compiling for Wago PFC200 [message #1798352 is a reply to message #1798202] Thu, 15 November 2018 23:09 Go to previous messageGo to next message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 30
Registered: April 2016
Member
Thanks for the reply Alois.

As you recommended, I downloaded the 4diac FORTE 1.10.0 RC2 and tried to compile with ptxdist. Attached is the error that I get. Can you help me with that?

One more thing, forte_wago.make file provided in 4diac FORTE 1.10.0 RC2 has some white spaces because of which "make" throws an error of "missing separator" and aborts. I had to replace those white spaces with tab to make that work.

Regards
Awais

[Updated on: Thu, 15 November 2018 23:31]

Report message to a moderator

Re: Forte not compiling for Wago PFC200 [message #1798374 is a reply to message #1798352] Fri, 16 November 2018 10:59 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

Hi,

oh I forgot about this issue. Jose pushed a fix into the 1.10.x branch for that issue. if you perform a git pull on your 1.10.0 RC2 forte you should get the latest version.

Cheers,
Alois
Re: Forte not compiling for Wago PFC200 [message #1798499 is a reply to message #1798374] Mon, 19 November 2018 22:18 Go to previous messageGo to next message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 30
Registered: April 2016
Member
Hello Alois,

I git pulled on forte-incubation_1.10.0.RC2. Attached is the screenshot of the compilation error that I get.

Regards
Re: Forte not compiling for Wago PFC200 [message #1798502 is a reply to message #1798499] Tue, 20 November 2018 02:55 Go to previous messageGo to next message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 30
Registered: April 2016
Member
I kinda made that work by modifying #include <OsCommon.h> to #include <OsLinux/OsComman.h> in ldkc_kbus_information.h and ldkc_kbus_register_communication.h files. I hope it works fine and doesn't break anything at the runtime.

[Updated on: Tue, 20 November 2018 02:55]

Report message to a moderator

Re: Forte not compiling for Wago PFC200 [message #1798525 is a reply to message #1798502] Tue, 20 November 2018 07:56 Go to previous messageGo to next message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 30
Registered: April 2016
Member
One more problem that I face is that when I include -DFORTE_IO in forte_wago.make file so that I can work with IOs, it does not compile as well. Attached is the compilation error screenshot.
Re: Forte not compiling for Wago PFC200 [message #1798537 is a reply to message #1798525] Tue, 20 November 2018 09:28 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

Sorry for the dumb question but have you followed our guidelines on building for Wago? What else have you modified in our files? ID and QD should not be compiled into the system for Wago.

What modules have you activated? Could it be that you have conflicting IO modules activated?
Re: Forte not compiling for Wago PFC200 [message #1798540 is a reply to message #1798537] Tue, 20 November 2018 09:38 Go to previous messageGo to next message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 30
Registered: April 2016
Member
Yes I have followed the instructions to build for wago. Apart from default flags given in forte_wago.make provided in build-support folder, I have switched on FORTE_IO, FORTE_MODULE_IEC61131, FORTE_MODULE_UTILS flags.

I have changed any files apart from the files mentioned in last message.
Re: Forte not compiling for Wago PFC200 [message #1798543 is a reply to message #1798540] Tue, 20 November 2018 10:14 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

Ah please disable the IO module.
Re: Forte not compiling for Wago PFC200 [message #1798603 is a reply to message #1798543] Tue, 20 November 2018 23:14 Go to previous message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 30
Registered: April 2016
Member
Thanks, Alois. It works now.
Previous Topic:How to add wiringPi library to access the softPWM functions.
Next Topic:ID data format and SD/RDs config for MQTT communication
Goto Forum:
  


Current Time: Thu Mar 28 20:29:20 GMT 2024

Powered by FUDForum. Page generated in 0.04738 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top