Compiling Wine with MSVC
Martin Fuchs
martin-fuchs at gmx.net
Tue Oct 5 08:27:01 CDT 2004
Hello Francois,
> It looks like it does not find the $wine_dir declaration. We are
> supposed to import it from the config module which in fact imports it
> from the setup module. Does it work better if you edit
> tools/winapi/msvcmaker as follows?
It seems, that's not enough. Then it can't find Main::get_spec_files.
I tried a bit (I don't know Perl), and found the following fix:
Index: tools/winapi/msvcmaker
===================================================================
RCS file: /home/wine/wine/tools/winapi/msvcmaker,v
retrieving revision 1.28
diff -u -p -d -r1.28 msvcmaker
--- tools/winapi/msvcmaker 4 Oct 2004 19:14:49 -0000 1.28
+++ tools/winapi/msvcmaker 5 Oct 2004 13:19:14 -0000
@@ -7,9 +7,11 @@ use strict;
BEGIN {
$0 =~ m%^(.*?/?tools)/winapi/msvcmaker$%;
require "$1/winapi/setup.pm";
+ require "$1/winapi/config.pm";
}
-use config qw(&file_directory &get_spec_files &get_makefile_in_files $current_dir $wine_dir);
+use setup qw($current_dir $wine_dir);
+use config qw(&file_directory &get_spec_files &get_makefile_in_files);
use output qw($output);
use util qw(replace_file);
Running msvcmaker prints a number of warnings:
Subroutine import redefined at /usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/config.pm line 11.
Subroutine myconfig redefined at /usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/config.pm line 87.
Subroutine fetch_string redefined at /usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/config.pm line 1119.
Subroutine fetch_virtual redefined at /usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/config.pm line 1162.
Subroutine FETCH redefined at /usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/config.pm line 1197.
But well - it seems to run. :-)
More information about the wine-devel
mailing list