Search code examples
c++linuxqtwine.lib

How to use a windows .lib on linux using WINE


I have been using Qt (uses c++ code + Qt libraries) on the windows platform and am in the process of porting my project onto the Linux platform.

Using Qt this has been a very simple process and my project works on the Linux platform with barely any changes required.

However, we need to use a 3rd party windows compiled .lib with an associated header file. Clearly this file cannot work under Linux, but I have been reading posts that suggest I could use Wine to do this.

So in general my project will work as a normal Linux (Ubuntu) project, but I would like to include this .lib file using Wine. I have not been able to find a definitive answer "how to do this". I am not sure if you use Wine to translate the .lib into a .so file or if you have to statically link it in with some "Wine-like" convention...

Can anyone help point me in the right direction?

Thanks :)


Solution

  • Have you tried compiling under Windows and running the entire program under Wine?

    I'm not sure you can splice Wine and Linux programs.