andrew1986
2009-Jun-25 09:01 UTC
[Wine] Compiling and linking QT project with Wine libraries
Hi! Sorry if my question very nooby, but I couldn't find answer in others posts. I'm trying to compile QT project which using some functions from kernel32.dll (SetEvent, Sleep, ExitThread etc.). I include Wine lib in my QT project file: Code: LIBS += /usr/lib/wine/kernel32.dll.so When I linking my project I have errors such as: Code: undefined reference to 'SetEvent' undefined reference to 'Sleep' undefined reference to 'ExitThread' ................................................ I can't understand why linker couldn't "see" functions from SO file. Thanks for any help.
Thunderbird
2009-Jun-25 09:11 UTC
[Wine] Re: Compiling and linking QT project with Wine libraries
Winelib isn't a simple library against which you can link. All our libraries are a sort of hybrid win32/linux libraries. You need to use winegcc/wineg++ to compile your program. The program will depend on wine (e.g. the wine binary, wineserver ..) because Wine needs to do a lot of magic behind your back to work (it needs a windows kernel, registry, file system ....) Roderick