Page 1 of 1

Windows error building x64 build

Posted: 2013-03-19T23:59:09-07:00
by peters
Hi,

What steps will reproduce the problem?
1. Configure imagemagick via VisualMagick\configure\configure.exe
2. Choose x64 build
3. Create a new configuration via Configuration Manager (copy from Win32)
and apply to all projects.
4. Clean solution
5. Build solution

What is the expected output? What do you see instead?
Error 481 error MSB6003: The specified task executable "CL.exe" could not be run. The process cannot access the file 'C:\Users\peters\Documents\imagemagick\ImageMagick-6.8.3-10\ImageMagick-6.8.3\VisualMagick\coders\x64\Release\cl.write.1.tlog' because it is being used by another process. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 347 5 IM_MOD_debug

This output happens for all IM_MOD_* projects.

What version of the product are you using?
Visual Studio 2012
Windows 7.1 SDK
Windows 8 SDK

ImageMagick: ImageMagick-6.8.3-10

Please provide any additional information below.
Would just like to note that the x86 edition is building just fine for Q8, Q16 and Q32.

Re: Windows error building x64 build

Posted: 2013-03-20T00:01:44-07:00
by peters
Building x86 takes about 1 minute to complete after solution is cleaned.

Re: Windows error building x64 build

Posted: 2013-05-04T15:38:56-07:00
by dlemstra
When you create the new x64 configuration Visual Studio (i am using 2012) forgets to copy some of the settings. I ran into the same problem so i edited all my project files and copied the missing settings.

Here is an example for 'CORE_bzlib_mt_dll.vcxproj'.

Before:

Code: Select all

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  <OutDir>..\lib\</OutDir>
  <IntDir>..\Release\CORE_bzlib\</IntDir>
  <LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64">
  <LinkIncremental>false</LinkIncremental>
</PropertyGroup>
After:

Code: Select all

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  <OutDir>..\lib\</OutDir>
  <IntDir>..\Release\CORE_bzlib\</IntDir>
  <LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64">
  <OutDir>..\lib\</OutDir>
  <IntDir>..\Release\CORE_bzlib\</IntDir>
  <LinkIncremental>false</LinkIncremental>
</PropertyGroup>