Hello everybody,
The question is on the title.
I have developped a WinCC Driver to exchange with our home made supervision protocols.
I have used the advised project setup: i.e. Ms Visual Studio 2008
Now I want to port it to Linux (we have some servers under linux)
How to compile my driver sources for linux ?
Many thanks in advance
Yann
HowTo - Compile c++ driver for Linux 32/64 architectures
- CyaNn
- Posts:97
- Joined: Tue Nov 23, 2010 9:48 am
HowTo - Compile c++ driver for Linux 32/64 architectures
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: HowTo - Compile c++ driver for Linux 32/64 architectures
That's simple.
Just follow the steps in the api/README file how to use the newWCCILDriver.sh script.
It will copy the Makefile template from api/TemplateDriver/_TEMPLATE_Makefile.api to a new dir and it replaces the _TEMPLATE_
strings in it.
You can also do this manually without using the newWCCILDriver.sh script
Make sure you change the MYOBJS list in the Makefile to match your source files, then run "make".
If you want it the "clicky" way, follow this post:
https://portal.etm.at/index.php?option= ... id=952#957
Just follow the steps in the api/README file how to use the newWCCILDriver.sh script.
It will copy the Makefile template from api/TemplateDriver/_TEMPLATE_Makefile.api to a new dir and it replaces the _TEMPLATE_
strings in it.
You can also do this manually without using the newWCCILDriver.sh script
Make sure you change the MYOBJS list in the Makefile to match your source files, then run "make".
If you want it the "clicky" way, follow this post:
https://portal.etm.at/index.php?option= ... id=952#957
- CyaNn
- Posts:97
- Joined: Tue Nov 23, 2010 9:48 am
Re: HowTo - Compile c++ driver for Linux 32/64 architectures
Many thanks Martin,
All apologies, exactly 1 mn after posting my question I remember that WinCC have a complete and well made documentation.
I have found the chapter about C++ installation and compilation under Linux.
About compiler version, the documentation say that Gcc3.4 is needed but on my centOS workstation I have GCC 4.4.7
Should I install the older version to compile correctly ?
Many thanks
Yann
All apologies, exactly 1 mn after posting my question I remember that WinCC have a complete and well made documentation.
I have found the chapter about C++ installation and compilation under Linux.
About compiler version, the documentation say that Gcc3.4 is needed but on my centOS workstation I have GCC 4.4.7
Should I install the older version to compile correctly ?
Many thanks
Yann
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: HowTo - Compile c++ driver for Linux 32/64 architectures
No, this is not needed. Use the compiler you have (btw: I compile WinCC-OA on my openSuse 13.1 box with gcc-4.8.1)
- CyaNn
- Posts:97
- Joined: Tue Nov 23, 2010 9:48 am
Re: HowTo - Compile c++ driver for Linux 32/64 architectures
Thanks a lot. I will make a try.