CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
problem with Win32::GUI

 



ysereckissy
New User

Mar 24, 2014, 9:50 AM

Post #1 of 4 (2220 views)
problem with Win32::GUI Can't Post

Hi guys,
I'm new to perl and have been unsuccessfully trying to install Win32::GUI for few days now.
I'm using strawberry 5.14. below is my cpan console output:


There seems to be running another CPAN process (pid 2880). Contacting...
Other job not responding. Shall I overwrite the lockfile 'D:\Dwimperl\cpan\.lock
'? (Y/n) [y] y

cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.


cpan> install Win32::GUI
Database was generated on Mon, 24 Mar 2014 16:19:51 GMT
Running install for module 'Win32::GUI'
Running make for R/RO/ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz
Checksum for D:\Dwimperl\cpan\sources\authors\id\R\RO\ROBERTMAY\Win32-GUI\Win32-
GUI-1.06.tar.gz ok
Scanning cache D:\Dwimperl\cpan\build for sizes
............................................................................DONE


CPAN.pm: Building R/RO/ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz



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

Checking if your kit is complete...
Looks good

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::BitmapInline
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::Constants - perfect.exe
Writing Makefile for Win32::GUI::Constants
Writing MYMETA.yml and MYMETA.json

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
Writing MYMETA.yml and MYMETA.json

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 MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::Scintilla
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI
Writing MYMETA.yml and MYMETA.json
cp GridLayout.pm blib\lib\Win32/GUI/GridLayout.pm
cp GUI.pm blib\lib\Win32/GUI.pm
cp BitmapInline.pm ..\blib\lib\Win32\GUI\BitmapInline.pm
cp Tags.pm ..\blib\lib\Win32\GUI/Constants/Tags.pm
AutoSplitting ..\blib\lib\Win32\GUI/Constants/Tags.pm (..\blib\lib\auto\Win32\GU
I\Constants\Tags)
cp Constants.pm ..\blib\lib\Win32\GUI/Constants.pm
gcc -O -fno-builtin-log2 -c lookupa.c
gcc: CreateProcess: No such file or directory
dmake: Error code 129, while making 'lookupa.o'
dmake: Error code 255, while making 'subdirs'
dmake.EXE: Error code 255, while making 'subdirs'
ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz
D:\Dwimperl\c\bin\dmake.EXE -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz : make NO


cpan>

Please Help!


FishMonger
Veteran / Moderator

Mar 24, 2014, 4:57 PM

Post #2 of 4 (2210 views)
Re: [ysereckissy] problem with Win32::GUI [In reply to] Can't Post

There are 3 key parts to the error message that tell you why it's failing.


Quote
Win32::GUI::AxWindow can only be built using MSVC, not 'gcc',
as it depends on the Microsoft Active Template Library (ATL).



Quote
At this time Win32::GUI::DIBitmap cannot be build using gcc.



Quote
Win32::GUI::Grid can only be built using MSVC, not 'gcc',
as it requires the MFC framework.


You need to install MSVC (Microsoft Visual C) compiler.

http://www.microsoft.com/en-us/download/details.aspx?id=34673


ysereckissy
New User

Mar 25, 2014, 1:02 PM

Post #3 of 4 (2149 views)
Re: [FishMonger] problem with Win32::GUI [In reply to] Can't Post

Dear FishMonger,
Thank you so very much for your response. I'm installed MSVC following the link you provided. However, I still cannot build the module successfully. Below is the new output traces.

cpanm (App::cpanminus) 1.7001 on perl 5.016003 built for MSWin32-x86-multi-thread
Work directory is C:\Users\ynamboy/.cpanm/work/1395768985.4992
You have make C:\PROGRA~2\MICROS~1.0\VC\bin\nmake.exe
You have LWP 6.04
Falling back to Archive::Tar 1.90
Searching Win32::GUI on cpanmetadb ...
--> Working on Win32::GUI
Fetching http://www.cpan.org/authors/id/R/RO/ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz
-> OK
Unpacking Win32-GUI-1.06.tar.gz
Entering Win32-GUI-1.06
Checking configure dependencies from META.yml
Configuring Win32-GUI-1.06
Running Makefile.PL


BUILDENV=vc Used build environment is: MSWin32 and Visual C++


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

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -latl
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for comctl32.lib
Note (probably harmless): No library found for msvcrt.lib
Note (probably harmless): No library found for -lmsvcprt
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for comctl32.lib
Note (probably harmless): No library found for msvcrt.lib
Note (probably harmless): No library found for -lcomctl32
Note (probably harmless): No library found for -lMfc42
Note (probably harmless): No library found for -lEafxis
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for comctl32.lib
Note (probably harmless): No library found for msvcrt.lib
Writing Makefile for Win32::GUI::AxWindow
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::BitmapInline
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::Constants - perfect.exe
Writing Makefile for Win32::GUI::Constants
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::DIBitmap
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::DropFiles
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::Grid
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::ReleaseNotes
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::Scintilla
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.63_02)
Building and testing Win32-GUI-1.06

Microsoft (R) Program Maintenance Utility Version 11.00.61030.0
Copyright (C) Microsoft Corporation. All rights reserved.

cp GridLayout.pm blib\lib\Win32/GUI/GridLayout.pm
cp GUI.pm blib\lib\Win32/GUI.pm
C:\PROGRA~2\MICROS~1.0\VC\bin\nmake.exe -f Makefile all -nologo W32G_CORE=1
cp AxWindow.pm ..\blib\lib\Win32\GUI\AxWindow.pm
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap -typemap typemap AxWindow.xs > AxWindow.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv -- AxWindow.xsc AxWindow.cpp
cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" "-IC:\Perl\lib\CORE" AxWindow.cpp
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\cl.EXE"' : return code '0xc0000135'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\nmake.exe' : return code '0x2'
Stop.
-> FAIL Installing Win32::GUI failed. See C:\Users\ynamboy\.cpanm\work\1395768985.4992\build.log for details. Retry with --force to force install it.

Thanks.


FishMonger
Veteran / Moderator

Mar 26, 2014, 7:06 AM

Post #4 of 4 (1916 views)
Re: [ysereckissy] problem with Win32::GUI [In reply to] Can't Post

Did you read the log file mentioned in the last line of that build process?

After installing MSVC did you run vcvars32.cmd (or it might be vcvars32.bat)? That sets the paths for the include dirs.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives