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 » Problem with configure in CMake(Problem with configure in CMake)
Problem with configure in CMake [message #1844649] Mon, 20 September 2021 11:30 Go to next message
Michal Gor is currently offline Michal GorFriend
Messages: 4
Registered: September 2021
Junior Member
Hello,
I have a configuration problem in CMake. He gets such an error in response - i add in attachment. What is caused by how can it be solved?

Best regards
Michal
Re: Problem with configure in CMake [message #1844653 is a reply to message #1844649] Mon, 20 September 2021 12:25 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

Hi,

which C++ compiler have you installed on your machine?

Cheers,
Alois
Re: Problem with configure in CMake [message #1844654 is a reply to message #1844653] Mon, 20 September 2021 12:51 Go to previous messageGo to next message
Martin Melik Merkumians is currently offline Martin Melik MerkumiansFriend
Messages: 117
Registered: March 2016
Senior Member
Hi,

if VS 2022 is installed on your machine, then the compilers are not visible on the PATH.
Try starting CMake via the Visual Studio Native Tools Command Prompt.

Best regards,
Martin
Re: Problem with configure in CMake [message #1844737 is a reply to message #1844654] Thu, 23 September 2021 14:37 Go to previous messageGo to next message
Michal Gor is currently offline Michal GorFriend
Messages: 4
Registered: September 2021
Junior Member
I use MinGW-w64 compilator. My hardware supplier using 4diac but I need to give it new functionality, I need to add modbus library

[Updated on: Thu, 23 September 2021 14:38]

Report message to a moderator

Re: Problem with configure in CMake [message #1844742 is a reply to message #1844737] Thu, 23 September 2021 16:44 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

If you use MinGW compiler you must not select a visual studio project in cmake but either unix make files or I think there is also a mingw project. The latter I have never tried. Please have a look in our docs on how to build 4diac FORTE with mingw.
Re: Problem with configure in CMake [message #1844822 is a reply to message #1844742] Mon, 27 September 2021 08:49 Go to previous messageGo to next message
Michal Gor is currently offline Michal GorFriend
Messages: 4
Registered: September 2021
Junior Member
I change my compilator and now I have this problem:

CMake Deprecation Warning at CMakeLists.txt:17 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

Building executable
CMake Error at CMakeLists.txt:252 (message):
No valid architecture chosen! Please check FORTE_ARCHITECTURE.

Re: Problem with configure in CMake [message #1844829 is a reply to message #1844822] Mon, 27 September 2021 11:52 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

You have a rather old CMake version. I would strongly recommend to update to a newer CMake version. We haven't tested it with older versions.

The last error tells you that you need to configure your 4diac FORTE build. This means selecting the modules you like to have included and at least specify for which architecture you want to build. For windows and mingw32 you need to select win32.
Re: Problem with configure in CMake [message #1844864 is a reply to message #1844829] Tue, 28 September 2021 09:32 Go to previous messageGo to next message
Michal Gor is currently offline Michal GorFriend
Messages: 4
Registered: September 2021
Junior Member
I have the latest version of CMAKE but I still get this error. The rest of the errors have been fixed I only have this one left. Thank you for your help
Re: Problem with configure in CMake [message #1844888 is a reply to message #1844864] Tue, 28 September 2021 21:30 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

Oh then I missunderstood the message and we may have to look into our CMake setup. great that it works now for you.
Previous Topic:External event queue is full, external event dropped!
Next Topic:There is "-1.#IND" value when running app
Goto Forum:
  


Current Time: Tue Apr 23 16:22:11 GMT 2024

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

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

Back to the top