cmake 2.8 compatibility

138 views
Skip to first unread message

Hidagus

unread,
Mar 10, 2020, 1:22:35 PM3/10/20
to EIP Stack Group OpENer users
Hi all,
Newbie here. My company decided to use OpENer for a PLC interface. However our OS is based on Fedora 20, and the cmake version is fixed to 2.8.12. I tried modifying current CMakeLists.txt to that version, but got Cmake errors of missing several variables such as CMAKE_LANGUAGES_COMPILER_ENV_VAR, CMAKE_LANGUAGES_COMPILER, CMAKE_VERSION_COMPILER, etc. Is there a way to modify OpENer cmake files to make it backward compatible? If not do we have an old version of OpENer that is compatible with Cmake 2.8?
Your help is much appreciated.
Best,

Hidagus

Alois Zoitl

unread,
Mar 10, 2020, 1:27:14 PM3/10/20
to eip-stack-grou...@googlegroups.com
Maybe it is a bit arrogant but Fedora 20 is 7 years old. Given the security and bugfixes which happened in the mean-time you should really consider upgrading.

BR,
Alois
> --
> You received this message because you are subscribed to the Google Groups "EIP Stack Group OpENer users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to eip-stack-group-open...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/eip-stack-group-opener-users/a25fe28b-5356-4291-b482-f8ea2f442012%40googlegroups.com.

Hidagus

unread,
Mar 10, 2020, 2:46:18 PM3/10/20
to EIP Stack Group OpENer users
Totally agreed and as a matter of fact our company is on the process of upgrading the systems. At the mean time we need to deliver this product to an existing customer asap, so I have to make it work :(


On Tuesday, March 10, 2020 at 10:27:14 AM UTC-7, Alois Zoitl wrote:
Maybe it is a bit arrogant but Fedora 20 is 7 years old. Given the security and bugfixes which happened in the mean-time you should really consider upgrading.

BR,
Alois

On Tue, 2020-03-10 at 10:22 -0700, Hidagus wrote:
> Hi all,
> Newbie here. My company decided to use OpENer for a PLC interface. However our OS is based on Fedora 20, and the cmake version is fixed to 2.8.12. I tried modifying current CMakeLists.txt to that version, but got Cmake errors of missing several variables such as CMAKE_LANGUAGES_COMPILER_ENV_VAR, CMAKE_LANGUAGES_COMPILER, CMAKE_VERSION_COMPILER, etc. Is there a way to modify OpENer cmake files to make it backward compatible? If not do we have an old version of OpENer that is compatible with Cmake 2.8?
> Your help is much appreciated.
> Best,
>
> Hidagus
> --
> You received this message because you are subscribed to the Google Groups "EIP Stack Group OpENer users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to eip-stack-group-opener-users+unsub...@googlegroups.com.

Martin Melik-Merkumians

unread,
Mar 10, 2020, 5:15:59 PM3/10/20
to EIP Stack Group OpENer users
Hi,

around commit e6c027f version 2.8.9 is used. I don't know if it is still possible to use such an old version, but I would definitely not recommend using such an old OpENer version.
There have been many bugfixes, but also changes in the CIP and EIP specs which makes such old versions incompatible with more recent Scanners.

BR,
Martin

Hidagus

unread,
Mar 10, 2020, 7:08:05 PM3/10/20
to EIP Stack Group OpENer users
Thanks for the help. I will try that snapshot to see if it works without too much issues.
Regards,

Hidagus

Alois Zoitl

unread,
Mar 11, 2020, 3:35:14 AM3/11/20
to eip-stack-grou...@googlegroups.com
First of all sorry I wrote the mail on my mobile phone and didn't notice that it wasn't sent to the list.

On Tue, 2020-03-10 at 22:17 -0700, Hidagus0 Pa wrote:
> How does that work? I'm interested.
>
> On Tue, Mar 10, 2020 at 11:56 AM <alois...@gmx.at> wrote:
> > Is cross compiling an option?

Cross compiling means that you have on your development machine compilers and libraries for your target machine. This is a common approach for smaller embedded
systems. But in an other open source project where I'm involved I even compile Windows binaries under Linux.

There is quite some documentation out there on how to setup CMake for cross compiling. Typically it is just setting 2 - 3 params. But first of all you need your
cross compilation tool-chain.

BR,
Alois

> >
> > On Mar 10, 2020 19:46, Hidagus <hid...@gmail.com> wrote:
> > > Totally agreed and as a matter of fact our company is on the process of upgrading the systems. At the mean time we need to deliver this product to an existing customer asap, so I have to make it work :(
> > >
> > > On Tuesday, March 10, 2020 at 10:27:14 AM UTC-7, Alois Zoitl wrote:
> > > > Maybe it is a bit arrogant but Fedora 20 is 7 years old. Given the security and bugfixes which happened in the mean-time you should really consider upgrading.
> > > >
> > > > BR,
> > > > Alois
> > > >
> > > > On Tue, 2020-03-10 at 10:22 -0700, Hidagus wrote:
> > > > > Hi all,
> > > > > Newbie here. My company decided to use OpENer for a PLC interface. However our OS is based on Fedora 20, and the cmake version is fixed to 2.8.12. I tried modifying current CMakeLists.txt to that version, but got Cmake errors of missing several variables such as CMAKE_LANGUAGES_COMPILER_ENV_VAR, CMAKE_LANGUAGES_COMPILER, CMAKE_VERSION_COMPILER, etc. Is there a way to modify OpENer cmake files to make it backward compatible? If not do we have an old version of OpENer that is compatible with Cmake 2.8?
> > > > > Your help is much appreciated.
> > > > > Best,
> > > > >
> > > > > Hidagus
> > > > > --
> > > > > You received this message because you are subscribed to the Google Groups "EIP Stack Group OpENer users" group.
> > > > > To unsubscribe from this group and stop receiving emails from it, send an email to eip-stack-group-open...@googlegroups.com.

stm-at-esd

unread,
Mar 11, 2020, 7:07:10 AM3/11/20
to EIP Stack Group OpENer users
Hi,

I would go the other way around. I would NOT try to backport the OpENer CMake files to the old CMake syntax. The OpENer CMake minimum version
mentioned in the ./source/CMakeLists.txt is 3.3. I have build OpENer successfully using CMake 3.5.1.

I think the CMake version is only "fixed" to 2.8.12 on Fedora 20 because the distribution was started with that version. To solve that dependency problem 
I would fetch the minimum required version of CMake from Kitware's gitlab repository (that would be 3.3.2) and then compile CMake myself on the Fedora 20 machine. I think that will work because the CMake itself has only a C++11 compiler and make as dependency. Then you can use your self-compiled
CMake and also use the current OpENer release.

See https://gitlab.kitware.com/cmake/cmake for build instructions and source code.

Best regards,
    Stefan


Martin Melik-Merkumians

unread,
Mar 11, 2020, 11:48:09 AM3/11/20
to EIP Stack Group OpENer users
Hi,

that's a very good suggestion Stefan!

Best regards,
Martin

Hidagus

unread,
Mar 11, 2020, 5:19:58 PM3/11/20
to EIP Stack Group OpENer users
Thanks a lot. It resolved my issue! I was able to build CMake 3.3.2 on Fedora 20 and used it to get a successful OpENer build.
Best,

Hidagus

Hidagus

unread,
Mar 11, 2020, 5:23:32 PM3/11/20
to EIP Stack Group OpENer users
Thanks for the suggestion, I'll look into how it works. 
I followed Stefan's suggestion and was able to get a OpENer build on Fedora 20.
Really appreciate all the help from such a helpful group.
> > > > > To unsubscribe from this group and stop receiving emails from it, send an email to eip-stack-group-opener-users+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages