Windows error building x64 build

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Locked
peters
Posts: 5
Joined: 2013-03-18T01:45:03-07:00
Authentication code: 6789

Windows error building x64 build

Post 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.

peters
Posts: 5
Joined: 2013-03-18T01:45:03-07:00
Authentication code: 6789

Re: Windows error building x64 build

Post by peters »

Building x86 takes about 1 minute to complete after solution is cleaned.

User avatar
dlemstra
Posts: 1625
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Windows error building x64 build

Post 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>
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

Locked