[OS X] How to link kernel32.lib.so with OS X XCode project?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
NathanExplosions
Newbie
Newbie
Posts: 3
Joined: Thu May 26, 2011 7:21 am

[OS X] How to link kernel32.lib.so with OS X XCode project?

Post by NathanExplosions »

Hi

Please tell me how can I use parts of WINE / WineLib (mainly Kernel32 library implementation) in Mac OS XCode projects?
I tried to link kernel32.lib.so with a test application, which used one of the Kernel32 functions - GetCurrentDirectoryA(), but got a linker error, which was not able to resolve this function :?

The most puzzling thing is that if I run otool on Kernel32.lib.so, it says the shared library is linked with several OS X dynamic libraries and also with libWine.dylib... But what is libWine.dylib? I've installed WINE with MacPorts and there is no libWine.dylib on my system... Should I try to build WINE manually :cry: :cry: :cry: :cry: :cry:, probably selling my soul to the devil in order to resolve somehow unbelievably painful problems with 68 libraries, which WINE depends on...? :shock:

I'm desperate, please help!!!
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

[OS X] How to link kernel32.lib.so with OS X XCode project?

Post by jjmckenzie »

On Fri, May 27, 2011 at 4:39 AM, NathanExplosions
<[email protected]> wrote:
Hi

Please tell me how can I use parts of WINE / WineLib (mainly Kernel32 library implementation) in Mac OS XCode projects?
I tried to link kernel32.lib.so with a test application, which used one of the Kernel32 functions - GetCurrentDirectoryA(), but got a linker error,
which was not able to resolve this function :?
What EXACTLY are you trying to do with Wine? BTW, Wine DOES NOT
support the Aqua interface and requires the use of X11.

James McKenzie
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: [OS X] How to link kernel32.lib.so with OS X XCode proje

Post by vitamin »

NathanExplosions wrote:Please tell me how can I use parts of WINE / WineLib (mainly Kernel32 library implementation) in Mac OS XCode projects?
Simple answer: you can't.
Long answer: winelib requires entire Wine to run. You can not simply link to parts of Wine without major code modifications.
NathanExplosions
Newbie
Newbie
Posts: 3
Joined: Thu May 26, 2011 7:21 am

Post by NathanExplosions »

That's too bad :( Thanks for the answers though...
Locked