Code: Select all
m_stream << " AdditionalDependencies=\"/MACHINE:AMD64 ";
Code: Select all
m_stream << " AdditionalDependencies=\"";
Code: Select all
m_stream << " AdditionalDependencies=\"/MACHINE:AMD64 ";
Code: Select all
m_stream << " AdditionalDependencies=\"";
I know it well, I'm just trying to understand how I should be handling the situation and what it means.We're a victim of too much to do, too little time. As always, keep in mind that ImageMagick is open source.
Well, not anyone can do it. For example, you don't to a 32-bit solution for a 64-bit problem, else I'd say the fix is to revert to the previous.Anyone can submit a fix for this problem-- or you can wait until we can get around to fixing it.
fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
Code: Select all
C:\ImageMagick\PerlMagick>nmake install
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -I.. -I..\xlib\include -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL
-fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS
-DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_
PERLIO -MD -Zi -DNDEBUG -Ox -GL -fp:precise -DVERSION=\"6.80\" -DXS_VERSION=\"6.80\" "-IC:\Perl64\lib\CORE"
-D_VISUALC_ -D_WINDOWS Magick.c
Magick.c
MagickCore lib DLL import interface
MagickCore module DLL export interface
Running Mkbootstrap for Image::Magick ()
C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 Magick.bs
C:\Perl64\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"
Image::Magick\", 'DLBASE' => 'Magick', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
link -out:blib\arch\auto\Image\Magick\Magick.dll -dll -nologo -nodefault
lib -debug -opt:ref,icf -ltcg -libpath:"C:\Perl64\lib\CORE" -machine:AMD64 Magick.obj
C:\Perl64\lib\CORE\perl514.lib C:\ImageMagick\VisualMagick\lib\CORE_RL_magick_.lib
-def:Magick.def
Magick.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\link.EXE"' : return code '0x458'
Stop.
Ha, thanks! Good grief, I even looked at that. Both versions of Perl are on the system and PATH had the 32-bit first in the list... weird.magick wrote:Looks like your building with the x64 version of Perl. Try the x86 version.
Code: Select all
C:\ImageMagick\PerlMagick>perl Makefile.nt
Checking if your kit is complete...
Looks good
Warning: '-L../VisualMagick/lib' changed to '-LC:/ImageMagick/PerlMagick/../Visu
alMagick/lib'
Warning: '-L../VisualMagick/bin' changed to '-LC:/ImageMagick/PerlMagick/../Visu
alMagick/bin'
Note (probably harmless): No library found for -lCORE_DB_magick_.lib
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 Image::Magick
Writing MYMETA.yml and MYMETA.json
Code: Select all
C:\ImageMagick\PerlMagick>vcvars32
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
C:\ImageMagick\PerlMagick>nmake install
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -I.. -I..\xlib\include -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWI
N32 -D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IM
PLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -MD -Zi -DND
EBUG -O1 -DVERSION=\"6.80\" -DXS_VERSION=\"6.80\" "-IC:\Perl\lib\CORE" -D_
VISUALC_ -D_WINDOWS Magick.c
Magick.c
MagickCore lib DLL import interface
MagickCore module DLL export interface
Running Mkbootstrap for Image::Magick ()
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Magick.bs
C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"Im
age::Magick\", 'DLBASE' => 'Magick', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPO
RTS' => { }, 'DL_VARS' => []);"
link -out:blib\arch\auto\Image\Magick\Magick.dll -dll -nologo -nodefault
lib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86 Magick.obj
C:\Perl\lib\CORE\perl516.lib C:\ImageMagick\VisualMagick\lib\CORE_RL_magick_.lib
-def:Magick.def
Creating library blib\arch\auto\Image\Magick\Magick.lib and object blib\arch\
auto\Image\Magick\Magick.exp
Magick.obj : error LNK2001: unresolved external symbol __fltused
Magick.obj : error LNK2019: unresolved external symbol __ftol2 referenced in fun
ction _ClampToQuantum
Magick.obj : error LNK2019: unresolved external symbol _strcmp referenced in fun
ction _constant
Magick.obj : error LNK2019: unresolved external symbol __imp___errno referenced
in function _constant
Magick.obj : error LNK2019: unresolved external symbol __imp__fprintf referenced
in function _GetList
Magick.obj : error LNK2019: unresolved external symbol ___security_cookie refere
nced in function _GetPackageInfo
Magick.obj : error LNK2019: unresolved external symbol @__security_check_cookie@
4 referenced in function _GetPackageInfo
Magick.obj : error LNK2019: unresolved external symbol __chkstk referenced in fu
nction _GetPackageInfo
Magick.obj : error LNK2019: unresolved external symbol __imp__strtol referenced
in function _StringToLong
Magick.obj : error LNK2019: unresolved external symbol __imp__strrchr referenced
in function _XS_Image__Magick_Average
Magick.obj : error LNK2019: unresolved external symbol _strlen referenced in fun
ction _XS_Image__Magick_DESTROY
Magick.obj : error LNK2019: unresolved external symbol __imp__sscanf referenced
in function _XS_Image__Magick_Get
Magick.obj : error LNK2019: unresolved external symbol __ftol2_sse referenced in
function _XS_Image__Magick_Get
Magick.obj : error LNK2019: unresolved external symbol __imp__ceil referenced in
function _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol _sqrt referenced in funct
ion _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol __imp__strchr referenced
in function _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol _sin referenced in functi
on _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol _cos referenced in functi
on _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol _tan referenced in functi
on _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol _fmod referenced in funct
ion _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol _fabs referenced in funct
ion _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol _memset referenced in fun
ction _XS_Image__Magick_Mogrify
Magick.obj : error LNK2019: unresolved external symbol __imp__floor referenced i
n function _XS_Image__Magick_QueryColor
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
blib\arch\auto\Image\Magick\Magick.dll : fatal error LNK1120: 24 unresolved exte
rnals
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.
Code: Select all
INCLUDE=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include;
LIB=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB;c:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib;
LIBPATH=c:\Windows\Microsoft.NET\Framework\v4.0.30319;c:\Windows\Microsoft.NET\Framework\v3.5;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB;
MAGICK_HOME=C:\ImageMagick\VisualMagick\bin