This is a report for 1.08. Trying to compile with Visual Studio 2013 on a Windows 7 box.
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
Warning (mostly harmless): No library found for -latl
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::AxWindow
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::BitmapInline
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::Constants - perfect.exe
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::Constants
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::DIBitmap
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::DropFiles
Writing MYMETA.yml and MYMETA.json
Warning (mostly harmless): No library found for -lMfc42
Warning (mostly harmless): No library found for -lEafxis
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::Grid
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::ReleaseNotes
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::Scintilla
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI
Writing MYMETA.yml and MYMETA.json
C:\third_party\emsng_build\sandbox\Win32-GUI-1.08>nmake
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
cp GridLayout.pm blib\lib\Win32/GUI/GridLayout.pm
cp GUI.pm blib\lib\Win32/GUI.pm
nmake -f Makefile all -nologo W32G_CORE=1
cp AxWindow.pm ..\blib\lib\Win32\GUI\AxWindow.pm
Running Mkbootstrap for Win32::GUI::AxWindow ()
C:\Install\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 AxWindo
w.bs
C:\Install\perl\bin\perl.exe C:\install\perl\lib\ExtUtils\xsubpp -typem
ap C:\Install\perl\lib\ExtUtils\typemap -typemap typemap AxWindow.xs > AxWindow
.xsc && C:\Install\perl\bin\perl.exe -MExtUtils::Command -e mv -- AxWindow.xsc A
xWindow.cpp
cl -c -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DN
O_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_
SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -O1 -MD -Zi -DN
DEBUG -GL -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" "-IC:\Install\perl\lib\C
ORE" AxWindow.cpp
AxWindow.cpp
C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE\atlwin.h(3761) :
error C2440: 'return' : cannot convert from 'INT_PTR (__stdcall *)(HWND,UINT,WP
ARAM,LPARAM)' to 'DLGPROC'
This conversion requires a reinterpret_cast, a C-style cast or function-
style cast
C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE\atlwin.h
(3760) : while compiling class template member function 'DLGPROC ATL::CDialogImp
lBaseT<ATL::CWindow>::GetDialogProc(void)'
C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE\atlwin.h
(4395) : see reference to class template instantiation 'ATL::CDialogImplBaseT<AT L::CWindow="">' being compiled
C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE\atlwin.h
(4435) : see reference to class template instantiation 'ATL::CSimpleDialog<t_wDl gTemplateID,t_bCenter="">' being compiled
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BI
N\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\third_party\emsng_build\bin\nmake.EXE' : return c
ode '0x2'
Stop.
Summary of my perl5 (revision 5 version 20 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=6.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSO
LE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TE
XTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO',
optimize='-O1 -MD -Zi -DNDEBUG -GL',
cppflags='-DWIN32'
ccversion='18.00.21005.1', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksi
ze=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -ltcg -libpa
th:"c:\Install\perl\lib\CORE" -machine:x86 "/manifestdependency:type='Win32' na
me='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='
' publicKeyToken='6595b64144ccf1df' language=''"'
libpth=\lib
libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.l
ib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32
.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.
lib
perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg
32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws
2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msv
crt.lib
libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl520.lib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -l
tcg -libpath:"c:\Install\perl\lib\CORE" -machine:x86 "/manifestdependency:type
='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArc
hitecture='' publicKeyToken='6595b64144ccf1df' language=''"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE
PERL_PRESERVE_IVUV USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under MSWin32
Compiled at Oct 28 2014 14:54:23
@INC:
C:/install/perl/site/lib
C:/install/perl/lib
.
The bug also appears in versions 1.06, 1.07, and 1.08_07.
try latest dev release from https://metacpan.org/release/KMX/Win32-GUI-1.08_10
if it still fails you can skip AxWindows by:
set SKIP_WIN32_GUI_AXWINDOW=1
before installing Win32-GUI
This is what I get now without adding the SKIP environment var.
Last edit: Dez 2014-11-04
with the SKIP environment variable set:
Tested with _11:
you will probably need to set not only:
set SKIP_WIN32_GUI_AXWINDOW=1
but also
set SKIP_WIN32_GUI_DIBITMAP=1
set SKIP_WIN32_GUI_GRID=1
Ad ATL linking failure: I have unfortunately nearly zero knowledge about ATL therefore I have no idea what are the correct linker options. I have on my PC only Visual C++ 2008 Express which comes even without ATL headers so it is hard to debug for me.
Tested with _12. Setting all 3 does indeed allow the build to complete. And all tests except the ones requiring Win32::API (It is not installed.) passed. I'll have to get with the application team to make sure that the features they use are still supported.
Thanks.