pvbrowser
2011-Jan-14 08:20 UTC
[Wine] HOWTO develop a Linux application that uses a Windows LIB ?
1 - Assume there is a given Windows Library in binary form. 2 - You have a Linux library where the source is available. Now you want to develop a Linux application that uses both libraries. Is this possible ? Background: The Windows library in question implements a communication protocol for automation industry on top of TCP/IP. This communication protocol now i want to use on Linux from my own application. My Linux application would write the read data into a shared memory on the Linux system and accept outgoing messages on a mailbox. See: http://pvbrowser.org http://pvbrowser.de/pvbrowser/pic/prinzip.png
Kelytha
2011-Jan-14 08:36 UTC
[Wine] Re: HOWTO develop a Linux application that uses a Windows LIB ?
I assume you are looking for Winelib: http://www.winehq.org/docs/winelib-guide/index
pvbrowser
2011-Jan-14 09:30 UTC
[Wine] Re: HOWTO develop a Linux application that uses a Windows LIB ?
Thank you for the hint. I assume that it will only be possible to create 32 bit applications.
Kelytha
2011-Jan-14 11:02 UTC
[Wine] Re: HOWTO develop a Linux application that uses a Windows LIB ?
Yes, that is correct I think. 64 bit Wine is still experimental.
oiaohm
2011-Jan-14 12:34 UTC
[Wine] Re: HOWTO develop a Linux application that uses a Windows LIB ?
pvbrowser. Only way will be making application dependent on wine loader for a part. This is not without its prices.. Since interfacing using winelib forces using of windows memory structure. Also forces you to be x86 locked. Worse of all forces you basically to have complete wine to operate your program. "communication protocol for automation industry" Ok what protocol. I know of many with Linux support one way or another. Some are java some are C and some are C++. And thanks to the creativity of gcc all those can be built into 1 binary. pvbrowser you need to be 100 percent sure Linux support lib does not exist or is not simple to write. Using winelib the way you are talking will not be light.