>Bang Jun-Young wrote:
>> 
>> While compiling my app with Wine-20000909, I've found some files are
>> missing in Wine header directory (typically /usr/local/include/wine).
>> The below patch should remedy this problem.
>
>can you explain which part of your winelib app is using builtin16.h ?
>(this is pure internal, and you shouldn't need it - 16 bit is not
>supported in winelib)
>
>(windef16 *shouldn't* be needed either, but since the 32/16 split
>is not properly done in header files, this is still needed. sigh)

Error messages are as follows:
...
bjy@krishna:~/mogualoader/wine$ make
gcc -c -g -O2 -Wall -I/usr/X11R6/include -I/usr/local/include/wine -DWINELIB -DS
TRICT -o mogualoader.spec.o mogualoader.spec.c
mogualoader.spec.c:3: builtin32.h: No such file or directory
In file included from /usr/local/include/wine/winnt.h:11,
                 from /usr/local/include/wine/winbase.h:5,
                 from mogualoader.spec.c:11:
/usr/local/include/wine/windef.h:345: wine/windef16.h: No such file or directory
make: *** [mogualoader.spec.o] Error 1
bjy@krishna:~/mogualoader/wine$ 
...

1. Every .spec.c file has #include "builtin32.h" statement, so I think it's 
a bug that builtin32.h isn't installed. 

2. windef.h needs wine/windef16.h (line 341-345):
/*----------------------------------------------------------------------------
** FIXME:  Better isolate Wine's reliance on the xxx16 type definitions.
**         For now, we just isolate them to make the situation clear.
**--------------------------------------------------------------------------*/
#include "wine/windef16.h"

3. After copying the above two files to /usr/local/include/wine, I got the
following result:
bjy@krishna:~/mogualoader/wine$ make
gcc -c -g -O2 -Wall -I/usr/X11R6/include -I/usr/local/include/wine -DWINELIB 
-DSTRICT -o mogualoader.spec.o mogualoader.spec.c
gcc -c -g -O2 -Wall -I/usr/X11R6/include -I/usr/local/include/wine -DWINELIB 
-DSTRICT -o ../common/winmain.o ../common/winmain.c
In file included from ../common/winmain.c:5:
/usr/local/include/wine/windows.h:12: shell.h: No such file or directory
make: *** [../common/winmain.o] Error 1
bjy@krishna:~/mogualoader/wine$         

windows.h (line 8-14):
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "shell.h" <--
#include "winreg.h"
#include "winnetwk.h"

But shell.h is not installed, either.

4. After copying shell.h, I've succeeded in making. builtin16.h is not needed.



-------------------------------------------------
DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!! http://search.dreamwiz.com/


Reply via email to