Discussion:
[perl-win32-gui-users] Installing Win32::GUI (cpan) on perl/mingw/dmake
Waldemar Biernacki
2007-04-22 19:54:03 UTC
Permalink
Hi!
I've decided to install Win32::GUI on my machine (WinXPHE) via cpan port.
I've compiled perl from source using mingw+dmake and everything pass OK.
BUT...

when I was installing Win32:GUI (1.05) from cpan (using polish mirror)
I've noticed two problems:

1. the file GUI.rc (in root install directory) has readonly attribute
and installation stops. When I change it to read/write attribute all
pass OK. Is it a very small bug or I did something incorrectly?
2. Actually it has passed but not all! I'v got the note:

=====================================================
BUILDENV=mingw Used build environment is: MSWin32 and MinGW

NOTE: Makefile.PL will add the instruction to use the Resource Compiler to
your Makefile; if you don't want to compile resources with your extension,
call this script with this additional argument:

perl Makefile.PL USERESOURCE=0

Win32::GUI::AxWindow can only be built using MSVC, not 'gcc',
as it depends on the Microsoft Active Template Library (ATL).
Win32::GUI::AxWindow will be skipped during the current build process.

Writing Makefile for Win32::GUI::Constants - perfect.exe
Writing Makefile for Win32::GUI::Constants

At this time Win32::GUI::DIBitmap cannot be build using gcc.
Win32::GUI::DIBitmap will be skipped during the current build process.

Writing Makefile for Win32::GUI::DropFiles

Win32::GUI::Grid can only be built using MSVC, not 'gcc',
as it requires the MFC framework.
Win32::GUI::Grid will be skipped during the current build process.

Writing Makefile for Win32::GUI::ReleaseNotes
Writing Makefile for Win32::GUI::Scintilla
Writing Makefile for Win32::GUI
=====================================================


My question: is it possible to install these uninstalled modules without
installing MSVC and the mentioned libs: ATL and MFC?

wb
Reini Urban
2007-04-23 13:23:44 UTC
Permalink
Hi Waldemar,
Post by Waldemar Biernacki
I've decided to install Win32::GUI on my machine (WinXPHE) via cpan port.
I've compiled perl from source using mingw+dmake and everything pass OK.
BUT...
when I was installing Win32:GUI (1.05) from cpan (using polish mirror)
1. the file GUI.rc (in root install directory) has readonly attribute
and installation stops. When I change it to read/write attribute all
pass OK. Is it a very small bug or I did something incorrectly?
Thanks, this is a bug indeed.
Post by Waldemar Biernacki
=====================================================
BUILDENV=mingw Used build environment is: MSWin32 and MinGW
NOTE: Makefile.PL will add the instruction to use the Resource Compiler to
your Makefile; if you don't want to compile resources with your extension,
perl Makefile.PL USERESOURCE=0
Win32::GUI::AxWindow can only be built using MSVC, not 'gcc',
as it depends on the Microsoft Active Template Library (ATL).
Win32::GUI::AxWindow will be skipped during the current build process.
Writing Makefile for Win32::GUI::Constants - perfect.exe
Writing Makefile for Win32::GUI::Constants
At this time Win32::GUI::DIBitmap cannot be build using gcc.
Win32::GUI::DIBitmap will be skipped during the current build process.
We assume that with mingw you don't have the original MSVC ATL libraries.
This is most likely wrong for you, so you have to fix the Makefile.PL
Post by Waldemar Biernacki
Writing Makefile for Win32::GUI::DropFiles
Win32::GUI::Grid can only be built using MSVC, not 'gcc',
as it requires the MFC framework.
Win32::GUI::Grid will be skipped during the current build process.
We assume that with mingw you don't have the original MSVC MFC
libraries. This is most likely wrong for you, so you have to fix the
Makefile.PL
Post by Waldemar Biernacki
Writing Makefile for Win32::GUI::ReleaseNotes
Writing Makefile for Win32::GUI::Scintilla
Writing Makefile for Win32::GUI
=====================================================
My question: is it possible to install these uninstalled modules without
installing MSVC and the mentioned libs: ATL and MFC?
You only need the libraries and to fix the Makefile.
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
http://spacemovie.mur.at/ http://helsinki.at/
Robert May
2007-04-24 19:14:45 UTC
Permalink
Post by Reini Urban
Hi Waldemar,
Post by Waldemar Biernacki
1. the file GUI.rc (in root install directory) has readonly attribute
and installation stops. When I change it to read/write attribute all
pass OK. Is it a very small bug or I did something incorrectly?
Thanks, this is a bug indeed.
Hmm. I don't see that here (WinZip and Win98). What tools are used
for unpacking, and what OS?
Post by Reini Urban
Post by Waldemar Biernacki
=====================================================
Win32::GUI::AxWindow can only be built using MSVC, not 'gcc',
as it depends on the Microsoft Active Template Library (ATL).
Win32::GUI::AxWindow will be skipped during the current build process.
At this time Win32::GUI::DIBitmap cannot be build using gcc.
Win32::GUI::DIBitmap will be skipped during the current build process.
We assume that with mingw you don't have the original MSVC ATL libraries.
This is most likely wrong for you, so you have to fix the Makefile.PL
Post by Waldemar Biernacki
Win32::GUI::Grid can only be built using MSVC, not 'gcc',
as it requires the MFC framework.
Win32::GUI::Grid will be skipped during the current build process.
We assume that with mingw you don't have the original MSVC MFC
libraries. This is most likely wrong for you, so you have to fix the
Makefile.PL
You only need the libraries and to fix the Makefile.
If anyone has further information or success building these modules
with mingw, then I'd be very interested in making this happen - I
spent a long time looking at it last year, and drew a blank. I'm not
convinced it's a simple problem.

Regards,
Rob.
Waldemar Biernacki
2007-04-24 20:21:19 UTC
Permalink
Post by Reini Urban
Hi Waldemar,
Post by Waldemar Biernacki
1. the file GUI.rc (in root install directory) has readonly attribute
and installation stops. When I change it to read/write attribute all
pass OK. Is it a very small bug or I did something incorrectly?
Thanks, this is a bug indeed.
Hmm. I don't see that here (WinZip and Win98). What tools are used
for unpacking, and what OS?
======================================
OS = Windows XPHE [ver 5.1.2600]
======================================
Mingw with gcc 3.4.5 (date is 2006-01-18)
======================================
dmake 4.8-20070327-SHAY (Windows / MS Visual C++)
======================================
After standard perl installation (sources "stable.tar.gz" version 5.8.8
date 06-02-01 unpacked using the 7z software): dmake dmake test dmake
install.
During the installation I installed additional software it wanted (gpg,
gzip, tar ... and so on a lot of questions!)
Then I modified the files Config.pm and Config_heavy.pl properly.

The module Win32::GUI I installed using standard cpan command: "cpan
install Win32::GUI". I noticed the problem with the
attribute. I pointed installation directory as "c:\perl\.cpan" and in
the subdirectory of the packet
I have changed the attribute (being in cpan shell in another cmd shell),
returned to cpan shell and push the cpan command again.
that's it.
I have to admit I wanted to install perl (and libraries including
DBD::Pg instead DBD::PgPP and my own too) from source last 6 months
trying various
perl/mingw/dmake/nmake/make software. At last I did it!

I've just compiled Wn32::GUI again downloading it from cpan again. No
atribute problem. Was the packet exchanged? No compilation problems!
Some tests (after "dmake test") have not passed but no errors.
Post by Reini Urban
Post by Waldemar Biernacki
=====================================================
Win32::GUI::AxWindow can only be built using MSVC, not 'gcc',
as it depends on the Microsoft Active Template Library (ATL).
Win32::GUI::AxWindow will be skipped during the current build process.
At this time Win32::GUI::DIBitmap cannot be build using gcc.
Win32::GUI::DIBitmap will be skipped during the current build process.
We assume that with mingw you don't have the original MSVC ATL libraries.
This is most likely wrong for you, so you have to fix the Makefile.PL
Post by Waldemar Biernacki
Win32::GUI::Grid can only be built using MSVC, not 'gcc',
as it requires the MFC framework.
Win32::GUI::Grid will be skipped during the current build process.
We assume that with mingw you don't have the original MSVC MFC
libraries. This is most likely wrong for you, so you have to fix the
Makefile.PL
You only need the libraries and to fix the Makefile.
If anyone has further information or success building these modules
with mingw, then I'd be very interested in making this happen - I
spent a long time looking at it last year, and drew a blank. I'm not
convinced it's a simple problem.
Regards,
Rob.
Loading...