Yikes

Right, first off you need to get the Microsoft Platform SDK. This
contains all the windows header files and system header files that will
be required when compiling. It's free to download, get it here:

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

It's a massive download. You probably only want the core SDK and perhaps
the Internet SDK if you're that way inclined.

Then you want the Microsoft .NET Framework SDK. This contains the
compiler (cl.exe and linker (link.exe)). Don't worry - the stuff you
compile with it won't require the .NET framework to be installed on your
user's machines:

http://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-4
070-9F41-A333C6B9181D&displaylang=en

Then you need to set your environment variables so the compiler can find
the headers and other files it needs when compiling. Mine are set to:

INCLUDE=C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\.;C:\Program Files\Microsoft SDK\include\.
LIB=C:\Program Files\Microsoft SDK\Lib\.;C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\lib\.

You should also add this to your PATH environment variable:
C:\Perl\bin\;C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin;C:\Program Files\Microsoft SDK\Bi
n\Win64;C:\Program Files\Microsoft SDK\Bin

Now nmake, cl, and link will all work, and you MIGHT even be able to
compile FreeImage. GOOD LUCK :)

Note that using the downloadable .NET SDK means that you cannot optimize
your binaries (so they will be big and slow). I recommend grabbing a
copy of VS .NET 2003 (what I have at home). If you're in education you
can get it extra-cheap (like I did...)

Steve


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: 22 January 2004 09:13
> Cc: perl-win32-gui-users@lists.sourceforge.net
> Subject: [perl-win32-gui-users] How can I install Win32-GUI-DIBitmap
> without MSVC?
> 
> 
> Hi All,
> 
> I am trying to install Win32-GUI-DIBitmap. At first I install ppm, but
> when I tryed to run demo.pl sample script I got a error:
> 
> Can't call method "ConvertToBitmap" on an undefined value at 
> D:\IPSwitch\test\de
> mo.pl line 14.
> 
> then I tryed to install this module from scratch, how it wrotten in
> Readme.txt :
> 
> SP> INSTALLATION
> SP> 
> SP> Download FreeImage source code at 
> http://freeimage.sourceforge.net/
> SP> Build the FreeImage static lib with MSVC project.
> SP> Copy the FreeImage.lib and FreeImage.h in the extlib directory.
> 
> Instead I am copied FreeImage\Dist\FreeImage.lib in extlib directory.
> Is it the same file???
> 
> SP> To install this module type the following:
> SP> 
> SP>    perl Makefile.PL
> ....
> Writing Makefile for Win32::GUI::DIBitmap
> SP>    make        # nmake
> Searching EXE: E:/WINDOWS/EXE/NMAKE.EXE
>   Inflating: NMAKE.ERR
>   Inflating: NMAKE.EXE
> PKSFX: (W18) Warning! README.TXT already exists.  Overwrite (y/n)?y
>   Inflating: README.TXT
> SP>    make install    # nmake install
> ....
> Der Befehl "cl" ist entweder falsch geschrieben oder   # from German:
> konnte nicht gefunden werden.                          # cl not found
> 
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x1'
> Stop.
> 
> Have I to have a linker programm too?
> 
> Thanks in advance.
> 
> --
> Pavel
> 
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> 

Reply via email to