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 » How to build and run the 4DIAC IDE from source
How to build and run the 4DIAC IDE from source [message #1864664] Tue, 02 April 2024 14:38 Go to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Hello, I'm studying how to build and run the 4Diac IDE directly from the source. Do you have any tutorials on how to do this compilation? Is there any step by step to follow?
Re: How to build and run the 4DIAC IDE from source [message #1864666 is a reply to message #1864664] Tue, 02 April 2024 14:46 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

Yes we have it in our documentation: https://github.com/eclipse-4diac/4diac-documentation

There is also a current pull request with an update to make it clearer: https://github.com/eclipse-4diac/4diac-documentation/pull/25

I would recommend to follow this new description.
Re: How to build and run the 4DIAC IDE from source [message #1864691 is a reply to message #1864666] Wed, 03 April 2024 13:24 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Hello Alois, i made the changes and i have these errors. Do you know what i need to do?

[Updated on: Wed, 03 April 2024 14:45]

Report message to a moderator

Re: How to build and run the 4DIAC IDE from source [message #1864693 is a reply to message #1864691] Wed, 03 April 2024 15:02 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

I haven't tried building the master branch for a long time. Master is the latest release. If you want to work from source I strongly recommend to use develop or freeze branch.
Re: How to build and run the 4DIAC IDE from source [message #1864695 is a reply to message #1864693] Wed, 03 April 2024 16:03 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
I read the documentation and made the checkout to develop. And i have the same problems.
Re: How to build and run the 4DIAC IDE from source [message #1864696 is a reply to message #1864695] Wed, 03 April 2024 16:05 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

What Java compiler level is set in your preferences: Window -> Preferences -> Java -> compiler. Currently it needs to be Java 17
Re: How to build and run the 4DIAC IDE from source [message #1864697 is a reply to message #1864693] Wed, 03 April 2024 16:11 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
I read the documentation and made the checkout to develop. And i have the same problems.
Re: How to build and run the 4DIAC IDE from source [message #1864698 is a reply to message #1864696] Wed, 03 April 2024 17:34 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Yes it's.
Re: How to build and run the 4DIAC IDE from source [message #1864699 is a reply to message #1864698] Wed, 03 April 2024 18:09 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

Do you have a jdk installed?
Re: How to build and run the 4DIAC IDE from source [message #1864701 is a reply to message #1864699] Wed, 03 April 2024 19:54 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Yeah. The number of errors decreased.
Re: How to build and run the 4DIAC IDE from source [message #1864712 is a reply to message #1864701] Thu, 04 April 2024 11:48 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

The error message from the ant task in the console can be ignored. Can you show the other error messages. I guess a full clean rebuild could help.
Re: How to build and run the 4DIAC IDE from source [message #1864716 is a reply to message #1864712] Thu, 04 April 2024 14:12 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
This is the errors.
Re: How to build and run the 4DIAC IDE from source [message #1864718 is a reply to message #1864716] Thu, 04 April 2024 14:49 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

It feels like the target platform is not correctly loaded.
Re: How to build and run the 4DIAC IDE from source [message #1864720 is a reply to message #1864718] Thu, 04 April 2024 16:22 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
How can i select the target?
Re: How to build and run the 4DIAC IDE from source [message #1864721 is a reply to message #1864720] Thu, 04 April 2024 16:32 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

as described in the documentation: open the target platform file from the org.eclipse.4diac.ide.product plugin, IMPORTANT: wait till the target platform is full loaded (look for progressbar at the bottom right), when the target plattform is loaded, on the top right select set as active target platform. This should lead to a full rebuild of 4diac ide.
Re: How to build and run the 4DIAC IDE from source [message #1864730 is a reply to message #1864721] Fri, 05 April 2024 11:00 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Hello, I made the changes you mentioned and the amount of error decreased a lot. These still remained here. Is there anything else I need to adjust?
Re: How to build and run the 4DIAC IDE from source [message #1864731 is a reply to message #1864730] Fri, 05 April 2024 11:05 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

I just merged the above mentioned PR regarding building 4diac IDE from source. From the error messages I think you are missing the m2e PE support feature and for the errors on xtend files I think simply cleaning and recompiling these plugins should help.
Re: How to build and run the 4DIAC IDE from source [message #1864732 is a reply to message #1864731] Fri, 05 April 2024 11:32 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
One more question Alois, it's possible to change the language of 4Diac? My customer want to change the language to portuguese and use 4Diac as logic development software.
Re: How to build and run the 4DIAC IDE from source [message #1864733 is a reply to message #1864732] Fri, 05 April 2024 11:37 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

Yes it is. Or lets phrase it better, we started to prepare for translations. In most of the plugins you will see message.property files. These files contain the texts that needs to be translated. By providing message_pt.properties files with the translated messages text should be in portuguese. but I guess we would need your support to do it everywhere. More information on this topic can be found in this article: https://www.eclipse.org/articles/Article-Internationalization/how2I18n.html
Re: How to build and run the 4DIAC IDE from source [message #1864734 is a reply to message #1864733] Fri, 05 April 2024 11:41 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Ok Alois, thanks.
Re: How to build and run the 4DIAC IDE from source [message #1864736 is a reply to message #1864734] Fri, 05 April 2024 12:10 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Alois, the m2e is installed and i change the compiller to 22. Now i returned to 17 and the errors decreased to 6. Do you have some tip about these errors? Thanks for the help.
Re: How to build and run the 4DIAC IDE from source [message #1864737 is a reply to message #1864736] Fri, 05 April 2024 12:30 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

m2e is not enough you need to go to install new software, select your eclipse release and search for "m2e PDE ..." the PDE is important as written in the documentation.
Re: How to build and run the 4DIAC IDE from source [message #1864740 is a reply to message #1864737] Fri, 05 April 2024 13:12 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
That's show to me.
Re: How to build and run the 4DIAC IDE from source [message #1864741 is a reply to message #1864740] Fri, 05 April 2024 13:17 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

in that line you need to select the update site. It look like:
Re: How to build and run the 4DIAC IDE from source [message #1864742 is a reply to message #1864741] Fri, 05 April 2024 13:57 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Great Alois, build and run. Thanks for the help.
Re: How to build and run the 4DIAC IDE from source [message #1864744 is a reply to message #1864742] Fri, 05 April 2024 15:10 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

Great. I hope with the update of the build documentation the process will get easier.
Re: How to build and run the 4DIAC IDE from source [message #1864751 is a reply to message #1864744] Fri, 05 April 2024 19:45 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Hi Alois, when i made the run, open the 4Diac. But the templates and type libraries don't open. In the documentation explain to copy and paste the data in .metadata/.plugins/org.eclipse.pde.core/.bundle_pool. But this local don't exist. Have some configuration i need to do to make this folder?
Re: How to build and run the 4DIAC IDE from source [message #1864752 is a reply to message #1864751] Fri, 05 April 2024 20:04 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

The .metdata older is in your Eclipse Java workspace.

If you have any improvement suggestions for the documentation feel free to submit a pull request to: https://github.com/eclipse-4diac/4diac-documentation

Re: How to build and run the 4DIAC IDE from source [message #1864753 is a reply to message #1864752] Fri, 05 April 2024 20:24 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
The console shows this message to me. And in my workspace the .metadata dont exist.

[Updated on: Fri, 05 April 2024 20:27]

Report message to a moderator

Re: How to build and run the 4DIAC IDE from source [message #1864754 is a reply to message #1864753] Fri, 05 April 2024 21:26 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

As written above. This message can be ignored. This ant task is needed for building the final 4diac IDE on the build server. However I never managed to get it working on old developer's machines.

You definitely have a .metadata directory in your java workspace. This is where eclipse stores a lot of your information. It is the directory that you choose when you start your Eclipse Java IDE.
Re: How to build and run the 4DIAC IDE from source [message #1864780 is a reply to message #1864754] Tue, 09 April 2024 13:03 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Hi, i get the templates and the typelibrary correct. But after that i get this error:
!ENTRY org.eclipse.fordiac.ide.gitlab 4 0 2024-04-09 09:59:44.928
!MESSAGE Problem with GitLab import
!STACK 0
Re: How to build and run the 4DIAC IDE from source [message #1864803 is a reply to message #1864780] Wed, 10 April 2024 09:18 Go to previous messageGo to next message
Patrick A is currently offline Patrick AFriend
Messages: 1
Registered: April 2024
Junior Member
That's an error on my part - the IDE tries to download missing libraries from a configured GitLab

Will change this to fail silently / not attempt it if no server is configured
Re: How to build and run the 4DIAC IDE from source [message #1864806 is a reply to message #1864780] Wed, 10 April 2024 11:17 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

we are currently reworking type library handling. This may change a bit in the next days and week. One thing we have, if correctly configured is to load type libs from a gitlab server. This loading didn't correctly check the configuration and connection. This is fixed with this PR https://github.com/eclipse-4diac/4diac-ide/pull/32
Re: How to build and run the 4DIAC IDE from source [message #1864840 is a reply to message #1864733] Fri, 12 April 2024 13:48 Go to previous message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Hi Alois, i create the message_pt.properties but i dont know how to define this file to translate the text. I need to do some configuration?
Previous Topic:How to get 4diac to support EtherCAT
Next Topic:ST to C to request help
Goto Forum:
  


Current Time: Thu May 09 08:46:35 GMT 2024

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

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

Back to the top