Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Problems to compile FORTE+Modbus
Problems to compile FORTE+Modbus [message #1838541] Mon, 01 March 2021 03:28 Go to next message
Eclipse UserFriend
Hello 4diac Team,

I have tried to compile FORTE+Modbus from forte-incubation_1.13.0 but the process stops and the log shows:

[ 99%] Built target FORTE_LITE
[ 99%] Linking CXX executable forte.exe
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/yangfan4/Downloads/libmodbus-3.1.6/libmodbus-3.1.6/src/libmodbus/lib/modbus.lib when searching for -lmodbus
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/yangfan4/Downloads/libmodbus-3.1.6/libmodbus-3.1.6/src/libmodbus/lib/modbus.dll when searching for -lmodbus
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/yangfan4/Downloads/libmodbus-3.1.6/libmodbus-3.1.6/src/libmodbus/lib/modbus.lib when searching for -lmodbus
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/yangfan4/Downloads/libmodbus-3.1.6/libmodbus-3.1.6/src/libmodbus/lib/modbus.dll when searching for -lmodbus
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/yangfan4/Downloads/libmodbus-3.1.6/libmodbus-3.1.6/src/libmodbus/lib\modbus.lib when searching for -lmodbus
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmodbus
collect2.exe: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/forte.dir/build.make:1173: src/forte.exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:2099: src/CMakeFiles/forte.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

Best Regards,

Fan Yang
Re: Problems to compile FORTE+Modbus [message #1838581 is a reply to message #1838541] Mon, 01 March 2021 16:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

from the output it seems that the lib you are using is not the right lib for your platform. Furthermore please note that in the official 1.13.0 release there are several issues with modbus support in 4diac FORTE. This will be fixed for 1.14.0. If you want to already test these fixes, please get the 1.14.x branch from our git repo.

Cheers,
Alois
Re: Problems to compile FORTE+Modbus [message #1838588 is a reply to message #1838581] Tue, 02 March 2021 00:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
I got the libmoudbus URL [1] from 4DIAC's Modbus introduction [2], and downloaded the windows version package. However, after compiling, it says that the package cannot be found. I would like to ask how to obtain the correct modbus support library?

[1] https://github.com/stephane/libmodbus/releases/tag/v3.1.6
[2] https://www.eclipse.org/4diac/en_help.php?helppage=html/communication/modbus.html

Best Regards,
Fan Yang
Re: Problems to compile FORTE+Modbus [message #1838597 is a reply to message #1838588] Tue, 02 March 2021 02:57 Go to previous messageGo to next message
Eclipse UserFriend
I must say I never used libmodbus on Windows. I assume you compiled libmodbus with the same compiler that you used for FORTE?

Anyone else who can help here?
Re: Problems to compile FORTE+Modbus [message #1839183 is a reply to message #1838588] Wed, 17 March 2021 02:27 Go to previous message
Eclipse UserFriend
have you tried 1.14 branch?
Previous Topic:IP_ADD_MEMBERSHIP
Next Topic:Questions about the sequence of events
Goto Forum:
  


Current Time: Fri Jul 18 07:40:58 EDT 2025

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

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

Back to the top