Re: Installing ExtUtils:::PkgConfig on windows



--- Daniel Kasak <dkasak nusconsulting com au> wrote:
If you *do* get it working, could you please document what you had to do?
I know I'm not the only person hanging out for Gtk2::GladeXML on Windows.

Well, I haven't gotten it to work yet. But here is where I stand now.

Here is what I had to do.

1. Downloaded and installed Microsoft Visual C++ Toolkit 2003
http://msdn.microsoft.com/visualc/vctoolkit2003/

2. Downloaded and installed Microsoft Platform SDK. (a huge download)
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/downlevel.htm

3. Downloaded and installed nmake15.exe
http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe

That "theoretically" finishes all components to be installed.

4. Open a new "Microsoft Platform SDK for Windows XP SP2 > Build Environment Window"

5. Run the vcvars32.bat under the C:\Program Files\Microsoft Visual C++ Toolkit 2003 (or wherever
you installed it)

That "theoretically" is enough to set-up the dev environment.

Now extract the Gtk2-GladeXML-1.004.tar and go the routine
  $ perl Makefile.pl
  $ nmake
  $ nmake test
  $ nmake install
  
But ofcourse, I run into issues here :)

perl Makefile.pl gives me the following (probably harmless) error.

[snip]
# --------------------------------------------------------- #
C:\Downloads\PERL_MODULES\Gtk2-GladeXML-1.004.tar\Gtk2-GladeXML-1.004>perl Makefile.pl
Found Glib in C:\Perl\site\lib\Glib\Install
Found Gtk2 in C:\Perl\site\lib\Gtk2\Install
Writing build/IFiles.pm
Note (probably harmless): No library found for msvcrt.lib
you are using MSVC... my condolences.
you are using MSVC... my condolences.
Writing Makefile for Gtk2::GladeXML
# --------------------------------------------------------- #
[\snip]

So I proceed to the next step. And bravely type nmake. And at that moment it explodes onto my face
!!!

[snip]
# --------------------------------------------------------- #
C:\Downloads\PERL_MODULES\Gtk2-GladeXML-1.004.tar\Gtk2-GladeXML-1.004>perl Makefile.pl
Found Glib in C:\Perl\site\lib\Glib\Install
Found Gtk2 in C:\Perl\site\lib\Gtk2\Install
Writing build/IFiles.pm
Note (probably harmless): No library found for msvcrt.lib
you are using MSVC... my condolences.
you are using MSVC... my condolences.
Writing Makefile for Gtk2::GladeXML

C:\Downloads\PERL_MODULES\Gtk2-GladeXML-1.004.tar\Gtk2-GladeXML-1.004>nmake

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

Skip blib\lib\Gtk2/GladeXML.pm (unchanged)
Skip blib\arch/Gtk2\GladeXML/Install/gladexmlperl.typemap (unchanged)
Skip blib\arch/Gtk2\GladeXML/Install/Files.pm (unchanged)
Skip blib\arch/Gtk2\GladeXML/Install/gladexmlperl.h (unchanged)
        cl -c  -IC:/GNU/GTK/2.0/include/libglade-2.0 -IC:/GNU/GTK/2.0/include/gtk-2.0
-IC:/GNU/GTK/2
.0/include/libxml2 -IC:/GNU/GTK/2.0/include -IC:/GNU/GTK/2.0/lib/gtk-2.0/include
-IC:/GNU/GTK/2.0/in
clude/atk-1.0 -IC:/GNU/GTK/2.0/include/pango-1.0 -IC:/GNU/GTK/2.0/include/glib-2.0
-IC:/GNU/GTK/2.0/
lib/glib-2.0/include -IC:\Perl\site\lib\Glib\Install -Ic:/usr/include/glib-2.0
-Ic:/usr/lib/glib-2.0
/include -I. -IC:\Perl\site\lib\Gtk2\Install -Ic:/usr/include/gtk-2.0 -Ic:/usr/lib/gtk-2.0/include
-
Ic:/usr/include/atk-1.0 -Ic:/usr/include/pango-1.0 -I./build  -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1
-
DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLIC
IT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1    -DVERSION=\"1.004\" 
-DXS_VERSION=
\"1.004\" /FoGladeXML.obj  "-IC:\Perl\lib\CORE"   GladeXML.c
GladeXML.c
c1 : warning C4349: /Gf is deprecated and will not be supported in future versions of Visual C++;
re
move /Gf or use /GF instead
Running Mkbootstrap for Gtk2::GladeXML ()
        C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 GladeXML.bs
NMAKE : fatal error U1095: expanded command line 'link
-out:blib\arch\auto\Gtk2\GladeXML\GladeXML.dl
l -dll -nologo -nodefaultlib -debug -opt:ref,icf  -libpath:"C:\Perl\lib\CORE"  -machine:x86
GladeXML
.obj   C:\Perl\lib\CORE\perl58.lib C:\GNU\GTK\2.0\lib\glade-2.0.lib
C:\GNU\GTK\2.0\lib\gtk-win32-2.0
.lib C:\GNU\GTK\2.0\lib\libxml2.lib C:\GNU\GTK\2.0\lib\libz.lib "C:\Program Files\Microsoft
Platform
 SDK for Windows XP SP2\Lib\ws2_32.lib" C:\GNU\GTK\2.0\lib\gdk-win32-2.0.lib
C:\GNU\GTK\2.0\lib\atk-
1.0.lib C:\GNU\GTK\2.0\lib\gdk_pixbuf-2.0.lib C:\GNU\GTK\2.0\lib\pangowin32-1.0.lib "C:\Program
File
s\Microsoft Platform SDK for Windows XP SP2\Lib\gdi32.lib" C:\GNU\GTK\2.0\lib\pango-1.0.lib
C:\GNU\G
TK\2.0\lib\gobject-2.0.lib C:\GNU\GTK\2.0\lib\gmodule-2.0.lib C:\GNU\GTK\2.0\lib\glib-2.0.lib
C:\GNU
\GTK\2.0\lib\intl.lib C:\GNU\GTK\2.0\lib\iconv.lib C:\GNU\GTK\2.0\lib\gthread-2.0.lib
C:\Perl\site\l
ib\auto\Glib\Glib.lib "C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib\oldnames.lib"
"C:\Prog
ram Files\Microsoft Visual C++ Toolkit 2003\lib\kernel32.lib" "C:\Program Files\Microsoft Platform
S
DK for Windows XP SP2\Lib\user32.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Li
b\gdi32.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\winspool.lib"
"C:\Progr
am Files\Microsoft Platform SDK for Windows XP SP2\Lib\comdlg32.lib" "C:\Program Files\Microsoft
Pla
tform SDK for Windows XP SP2\Lib\advapi32.lib" "C:\Program Files\Microsoft Platform SDK for
Windows
XP SP2\Lib\shell32.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\ole32.lib"
"
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\oleaut32.lib" "C:\Program
Files\Micro
soft Platform SDK for Windows XP SP2\Lib\netapi32.lib" "C:\Program Files\Microsoft Platform SDK
for
Windows XP SP2\Lib\uuid.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Lib\ws2_32.
lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\mpr.lib" "C:\Program
Files\Micr
osoft Platform SDK for Windows XP SP2\Lib\winmm.lib" "C:\Program Files\Microsoft Platform SDK for
Wi
ndows XP SP2\Lib\version.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Lib\odbc32
.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\odbccp32.lib"
-def:GladeXML.de
f' too long
Stop.
# --------------------------------------------------------- #
[/snip]

The line too long "NMAKE : fatal error U1095:" seems to be very notorious. Googled it for quite a
while and encountered this thread
http://www.mail-archive.com/makemaker perl org/msg01707.html
Michael G Schwern writes
Latest snapshot on makemaker.org should take care of this (thanks Tim).

So I downloaded and installed the latest version of ExtUtils-MakeMaker-6.25 from cpan. And tried
the whole thing again. Still no luck !

Searched the microsoft help center for the "NMAKE : fatal error U1095:" and found this
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/U1095.asp

expanded command line 'commandline' too long
After macro expansion, the given command line exceeded the limit on length of command lines >>
for the operating system.
MS-DOS permits up to 128 characters on a command line.
If the command is for a program that can accept command-line input from a file, change the
command and supply input from either a file on disk or an inline file. For example, LINK and >>
LIB accept input from a response file.

If one of the gurus here can comment on how to make that "supply input from either a file on disk
or an inline file" work, it'll be wonderful.

I am done for today. Will try again tomorrow with a clear mind.

(Attaching the error msg in a file. I think yahoo is going to wrap the lines and make the message
un-readable)

Thanks,

_Ofey.
http://ofey.blogspot.com/


                
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 
C:\Downloads\PERL_MODULES\Gtk2-GladeXML-1.004.tar\Gtk2-GladeXML-1.004>perl Makefile.pl
Found Glib in C:\Perl\site\lib\Glib\Install
Found Gtk2 in C:\Perl\site\lib\Gtk2\Install
Writing build/IFiles.pm
Note (probably harmless): No library found for msvcrt.lib
you are using MSVC... my condolences.
you are using MSVC... my condolences.
Writing Makefile for Gtk2::GladeXML

C:\Downloads\PERL_MODULES\Gtk2-GladeXML-1.004.tar\Gtk2-GladeXML-1.004>nmake

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

Skip blib\lib\Gtk2/GladeXML.pm (unchanged)
Skip blib\arch/Gtk2\GladeXML/Install/gladexmlperl.typemap (unchanged)
Skip blib\arch/Gtk2\GladeXML/Install/Files.pm (unchanged)
Skip blib\arch/Gtk2\GladeXML/Install/gladexmlperl.h (unchanged)
        cl -c  -IC:/GNU/GTK/2.0/include/libglade-2.0 -IC:/GNU/GTK/2.0/include/gtk-2.0 -IC:/GNU/GTK/2
.0/include/libxml2 -IC:/GNU/GTK/2.0/include -IC:/GNU/GTK/2.0/lib/gtk-2.0/include -IC:/GNU/GTK/2.0/in
clude/atk-1.0 -IC:/GNU/GTK/2.0/include/pango-1.0 -IC:/GNU/GTK/2.0/include/glib-2.0 -IC:/GNU/GTK/2.0/
lib/glib-2.0/include -IC:\Perl\site\lib\Glib\Install -Ic:/usr/include/glib-2.0 -Ic:/usr/lib/glib-2.0
/include -I. -IC:\Perl\site\lib\Gtk2\Install -Ic:/usr/include/gtk-2.0 -Ic:/usr/lib/gtk-2.0/include -
Ic:/usr/include/atk-1.0 -Ic:/usr/include/pango-1.0 -I./build  -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -
DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLIC
IT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1    -DVERSION=\"1.004\"  -DXS_VERSION=
\"1.004\" /FoGladeXML.obj  "-IC:\Perl\lib\CORE"   GladeXML.c
GladeXML.c
c1 : warning C4349: /Gf is deprecated and will not be supported in future versions of Visual C++; re
move /Gf or use /GF instead
Running Mkbootstrap for Gtk2::GladeXML ()
        C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 GladeXML.bs
NMAKE : fatal error U1095: expanded command line 'link -out:blib\arch\auto\Gtk2\GladeXML\GladeXML.dl
l -dll -nologo -nodefaultlib -debug -opt:ref,icf  -libpath:"C:\Perl\lib\CORE"  -machine:x86 GladeXML
.obj   C:\Perl\lib\CORE\perl58.lib C:\GNU\GTK\2.0\lib\glade-2.0.lib C:\GNU\GTK\2.0\lib\gtk-win32-2.0
.lib C:\GNU\GTK\2.0\lib\libxml2.lib C:\GNU\GTK\2.0\lib\libz.lib "C:\Program Files\Microsoft Platform
 SDK for Windows XP SP2\Lib\ws2_32.lib" C:\GNU\GTK\2.0\lib\gdk-win32-2.0.lib C:\GNU\GTK\2.0\lib\atk-
1.0.lib C:\GNU\GTK\2.0\lib\gdk_pixbuf-2.0.lib C:\GNU\GTK\2.0\lib\pangowin32-1.0.lib "C:\Program File
s\Microsoft Platform SDK for Windows XP SP2\Lib\gdi32.lib" C:\GNU\GTK\2.0\lib\pango-1.0.lib C:\GNU\G
TK\2.0\lib\gobject-2.0.lib C:\GNU\GTK\2.0\lib\gmodule-2.0.lib C:\GNU\GTK\2.0\lib\glib-2.0.lib C:\GNU
\GTK\2.0\lib\intl.lib C:\GNU\GTK\2.0\lib\iconv.lib C:\GNU\GTK\2.0\lib\gthread-2.0.lib C:\Perl\site\l
ib\auto\Glib\Glib.lib "C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib\oldnames.lib" "C:\Prog
ram Files\Microsoft Visual C++ Toolkit 2003\lib\kernel32.lib" "C:\Program Files\Microsoft Platform S
DK for Windows XP SP2\Lib\user32.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Li
b\gdi32.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\winspool.lib" "C:\Progr
am Files\Microsoft Platform SDK for Windows XP SP2\Lib\comdlg32.lib" "C:\Program Files\Microsoft Pla
tform SDK for Windows XP SP2\Lib\advapi32.lib" "C:\Program Files\Microsoft Platform SDK for Windows
XP SP2\Lib\shell32.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\ole32.lib" "
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\oleaut32.lib" "C:\Program Files\Micro
soft Platform SDK for Windows XP SP2\Lib\netapi32.lib" "C:\Program Files\Microsoft Platform SDK for
Windows XP SP2\Lib\uuid.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\ws2_32.
lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\mpr.lib" "C:\Program Files\Micr
osoft Platform SDK for Windows XP SP2\Lib\winmm.lib" "C:\Program Files\Microsoft Platform SDK for Wi
ndows XP SP2\Lib\version.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\odbc32
.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\odbccp32.lib" -def:GladeXML.de
f' too long
Stop.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]