Hello,
Would a wine developer please revisit this page http://www.winehq.org/site/docs/winelib-guide/winelib-getting-started and modify it to have a step by step guide to take a Linux box without wine nor winelib to a running notepad exe built by the newbie (and not downloaded)?
Or if you are a wine-user, please provide such steps to this list.
As a newbie, the statement "It can be found in the programs subdirectory." had me lost. I don't know if the steps I took are correct, but somehow I found http://www.winehq.org/site/cvs. Perhaps the winelib-getting-started page could be modified to direct a newbie how to download the "test drive" at this point. Then I only checked out wine/programs/notepad since the statement "(but read the next section before actually doing this!)" intimidated me on the cvs page.
The first error after a make was "dialog.c:27:21: error windows.h: No such file or directory".
Then I had the brilliant idea to checkout all of wine, even though I was intimidated initially by the statement "(but read the next section before actually doing this!)". The make still failed with the same error, even though I now have the wine/include directory.
Not knowing any better, I modified the Makefile from INCLUDE_PATH = -I. to INCLUDE_PATH = -I.:/my/path/to/wine/include. I retried make and get the same error.
I'm stumped.
The 1.3.3 Step by step guide was too general for me. But maybe that's because I needed section 1.3.2 to be more detailed for the task at hand, building notepad. And perhaps 1.3.3 can be left alone for more general information.
Please advise.
Thanks, D
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dee Ayy wrote: | As a newbie, the statement "It can be found in the programs subdirectory." | had me lost.
It seems that the Winelib guide assumes that you know how to download the wine sources already. (Quick and dirty meathod of downloading the latest official tarball: On the main WineHQ page, the latest announcement "Wine 0.9.x released" or somesuch has a link "available now"; move it to an appropriate place, then unarchive it: $tar -xjf wine-0.9.15.tar.bz2 <or somesuch>)
At this point, the sentance that gave you problems could be modified to say: It can be found in the programs subdirectory of the wine source.
- -RFMuller
Robert Muller wrote:
Dee Ayy wrote: | As a newbie, the statement "It can be found in the programs subdirectory." | had me lost.
[...]
At this point, the sentance that gave you problems could be modified to say: It can be found in the programs subdirectory of the wine source.
There is one other part that is out-of-date: the procedure described won't create the 'notepad2' script. It would be better to change that part of section 1.3.2 to suggest you run 'wine notepad2.exe.so' or to run 'ln -s ../../tools/winewrapper notepad2' to create the script. Aside from that, the instructions look good to me.
Eric
Eric Frias efrias@syncad.com writes:
There is one other part that is out-of-date: the procedure described won't create the 'notepad2' script. It would be better to change that part of section 1.3.2 to suggest you run 'wine notepad2.exe.so' or to run 'ln -s ../../tools/winewrapper notepad2' to create the script. Aside from that, the instructions look good to me.
winegcc should create the script. If it doesn't it's probably because winemaker is not invoking it correctly.
Alexandre Julliard wrote:
Eric Frias efrias@syncad.com writes:
here is one other part that is out-of-date: the procedure described won't create the 'notepad2' script.
winegcc should create the script. If it doesn't it's probably because winemaker is not invoking it correctly.
That was the problem. Winemaker was invoking 'winegcc -o foo.exe.so', which suppresses the wrapper script. If it's invoked as 'winegcc -o foo.exe' it generates the wrapper script as desired. Something like the attached patch should fix the problem.
Eric
--- wine-0.9.15/tools/winemaker 2006-06-08 15:06:43.000000000 +0000 +++ ../wine-0.9.15/tools/winemaker 2006-06-20 14:17:36.000000000 +0000 @@ -1749,7 +1749,11 @@ } else { print FILEO "\t$(CC)"; } - print FILEO " $(${canon}_LDFLAGS) -o $@ $(${canon}_OBJS) $(${canon}_LIBRARY_PATH) $(DEFLIB) $(${canon}_DLLS:%=-l%) $(${canon}_LIBRARIES:%=-l%)\n"; + + # for .EXEs, tell winegcc to generate 'foo.exe', which will cause it + # to generate both 'foo.exe.so' and the 'foo' wrapper script. + my $output_file = @$target[$T_TYPE] == $TT_DLL ? "$@" : "$(${canon}_MODULE)"; + print FILEO " $(${canon}_LDFLAGS) -o $output_file $(${canon}_OBJS) $(${canon}_LIBRARY_PATH) $(DEFLIB) $(${canon}_DLLS:%=-l%) $(${canon}_LIBRARIES:%=-l%)\n"; print FILEO "\n\n"; } }