Winelib and windows.h

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
chrismcb
Newbie
Newbie
Posts: 3
Joined: Sun May 04, 2008 9:25 am

Winelib and windows.h

Post by chrismcb »

I installed winelib and ran winemaker on my project.
But running the makefile fails because it doesn't know where windows.h (or any other the other windows includes are)

How do I resolve this issue? Am I supposed to set the include path to windows.h on my windows drive?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Winelib and windows.h

Post by vitamin »

chrismcb wrote:I installed winelib and ran winemaker on my project.
But running the makefile fails because it doesn't know where windows.h (or any other the other windows includes are)

How do I resolve this issue? Am I supposed to set the include path to windows.h on my windows drive?
Winelib is not enough. You'll need whole Wine.
chrismcb
Newbie
Newbie
Posts: 3
Joined: Sun May 04, 2008 9:25 am

Post by chrismcb »

As far as I know I got the whole wine.
I followed the wine installation instructions at http://www.winehq.org/site/download-deb

I've followed the instructions http://www.winehq.org/site/docs/winelib ... ng-started in how to port my project over. (there isn't much to it)

I've read all of the documentation that can I find. And nothing mentions doing anything to point the Include variable, or where to point it to. Or what to do so windows.h and other system includes can be found.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

chrismcb wrote:As far as I know I got the whole wine.
I followed the wine installation instructions at http://www.winehq.org/site/download-deb

I've followed the instructions http://www.winehq.org/site/docs/winelib ... ng-started in how to port my project over. (there isn't much to it)

I've read all of the documentation that can I find. And nothing mentions doing anything to point the Include variable, or where to point it to. Or what to do so windows.h and other system includes can be found.
Include dirs would be "/usr/include" or "/usr/lib/wine/includr". Not sure you really need to look at where packages put that stuff.

Honestly if you consider porting your application to Linux winelib would be the bad choice. It ties your application to specific Wine version and impose number of restrictions. The most significant - you still have to run your program through Wine. It will not be a standalone app.

What is more suggested is to:
1. Make your application work properly under Wine by fixing Wine.
2. Write 100% native port of your application.

1) gives you an advantage of having same codebase for all OSes. 2) allows you to use OS specific features and better system integration.
chrismcb
Newbie
Newbie
Posts: 3
Joined: Sun May 04, 2008 9:25 am

Post by chrismcb »

#2 is never going to happen.

I don't understand #1. What is broken in Wine? Or rather what is broken in Wine, that would work using winelib.

So what is the advantage of rebuilding using winelib?
Dan Kegel

Winelib and windows.h

Post by Dan Kegel »

On Sun, May 4, 2008 at 5:45 PM, chrismcb <[email protected]> wrote:
I don't understand #1. What is broken in Wine?
Try running your app and find out.
Or rather what is broken in Wine, that would work using winelib.
Nothing. Winelib is wine.
So what is the advantage of rebuilding using winelib?
It's useful if you want to target non-x86 versions of Linux.
For instance, sparc, powerpc, or arm.

If all you want to target is x86, you're better off just running
your Windows app untouched under Wine, I think.
- Dan
Locked