Re: Installing ExtUtils:::PkgConfig on windows

--- muppet <scott asofyet org> wrote:
Are you using some form of windows NT (including XP), and are you using 
cmd.exe rather than
If you just want it to link so you can use it, then you could edit the 
generated makefile manually to remove some of the unnecessary libraries 

Thank you for the wonderful suggestions once again :). I finally managed to build the
Gtk2::GladeXML on my Windows XP machine.

Here are the additional tasks that I had to perform since yesterday.

1. Download and install M$ .NET Framework SDK Version 1.1
I had to do that because msvcrt.lib was missing on my machine. Yes, even though I downloaded and
installed all those heavy M$ C++ and M$ Platform SDK etc etc.

2. Edit the Makefile generated to remove all the unwanted paths. (Thanks to muppet and Tyler). I
commented out the EXTRALIBS section in the make file. I trimmed the LDLOADLIBS section. I figured
the ideal combo through some trial and error. Here is what it looks like, finally. (I am attaching
the whole Makefile too, for reference).

LDLOADLIBS = 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 Files\Microsoft Platform SDK for Windows XP
SP2\Lib\gdi32.lib" C:\GNU\GTK\2.0\lib\pango-1.0.lib C:\GNU\GTK\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\lib\auto\Glib\Glib.lib C:\Perl\site\lib\auto\Gtk2\Gtk2.lib "C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrt.lib" "C:\Program Files\Microsoft Visual C++
Toolkit 2003\lib\oldnames.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Lib\kernel32.lib" "C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\user32.lib"
"C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\gdi32.lib" 

[ You may be able to trim it further. But this worked for me and I stopped it at that ]

3. Open a new cmd window. Run the following to set the env
  - C:\Program Files\Microsoft Platform SDK for Windows XP SP2\SetEnv.bat
  - C:\Program Files\Microsoft Visual C++ Toolkit 2003\vcvars32.bat
That should set the env for you.

4. Now boldly type nmake.
Ignore the following warning if you get one.
c1 : warning C4349: /Gf is deprecated and will not be supported in future versions of Visual C++;
remove /Gf or use /GF instead

5. That's it. Now nmake test and nmake install should do the job for you.

My next task is to learn how to make a ppm distribution of this :)



Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

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