Crypto++ 5.6.0: Patch to fix Windows x64-only compile

View: New views
1 Messages — Rating Filter:   Alert me  

Crypto++ 5.6.0: Patch to fix Windows x64-only compile

by Bugzilla from peter.klotz@aon.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


When you only compile for x64, not for Win32, then you obtain the
following error:

A tool returned an error code from "Performing Custom Build Step"

The reason is the hardcoded path "Win32\output\release\cryptest" in
cryptdll.vcproj.

The problem does not occur if you previously perform a Win32 build
since in this case directory "Win32\output\release\cryptest" exists.

I suggest the following patch which replaces the hardcoded "Win32" by $
(PlatformName).

Regards, Peter.

--- cryptdll.vcproj 2009-03-03 02:19:12.000000000 +0100
+++ cryptdll.vcproj.patched 2009-08-24 22:12:52.443397600 +0200
@@ -34,7 +34,7 @@
  />
  <Tool
  Name="VCCustomBuildTool"
- CommandLine="Win32\output\release\cryptest mac_dll "$
(TargetPath)" echo mac done > "$(OutDir)"
\cryptopp.mac.done "
+ CommandLine="$(PlatformName)\output\release\cryptest mac_dll
"$(TargetPath)" echo mac done > "$(OutDir)
"\cryptopp.mac.done "
  AdditionalDependencies=""
  Outputs="$(OutDir)\cryptopp.mac.done"
  />
@@ -134,7 +134,7 @@
  />
  <Tool
  Name="VCCustomBuildTool"
- CommandLine="Win32\output\release\cryptest mac_dll "$
(TargetPath)" echo mac done > "$(OutDir)"
\cryptopp.mac.done "
+ CommandLine="$(PlatformName)\output\release\cryptest mac_dll
"$(TargetPath)" echo mac done > "$(OutDir)
"\cryptopp.mac.done "
  AdditionalDependencies=""
  Outputs="$(OutDir)\cryptopp.mac.done"
  />
@@ -233,7 +233,7 @@
  />
  <Tool
  Name="VCCustomBuildTool"
- CommandLine="Win32\output\debug\cryptest mac_dll "$
(TargetPath)" echo mac done > "$(OutDir)"
\cryptopp.mac.done "
+ CommandLine="$(PlatformName)\output\debug\cryptest mac_dll "$
(TargetPath)" echo mac done > "$(OutDir)"
\cryptopp.mac.done "
  AdditionalDependencies=""
  Outputs="$(OutDir)\cryptopp.mac.done"
  />
@@ -328,7 +328,7 @@
  />
  <Tool
  Name="VCCustomBuildTool"
- CommandLine="Win32\output\debug\cryptest mac_dll "$
(TargetPath)" echo mac done > "$(OutDir)"
\cryptopp.mac.done "
+ CommandLine="$(PlatformName)\output\debug\cryptest mac_dll "$
(TargetPath)" echo mac done > "$(OutDir)"
\cryptopp.mac.done "
  AdditionalDependencies=""
  Outputs="$(OutDir)\cryptopp.mac.done"
  />

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---