DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.66k stars 562 forks source link

CMake (Win64): problems finding message compiler #1065

Open derekbruening opened 9 years ago

derekbruening commented 9 years ago

From meph...@gmail.com on February 01, 2013 13:21:03

I tried to build trunk on Windows x64 with Visual Studio Express 2012 and SDK 7.1, and ran into the problem when CMake picks up Cygwin's Midnight Commander instead of the real message compiler.

The following patch fixed this problem:

diff --git a/CMakeLists.txt b/CMakeLists.txt index 64a51af..415ac7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -506,13 +506,16 @@ else (UNIX)

this path is only present for 2008+, but we currently require PATH to

 # be set up anyway
 get_filename_component(sdk_dir "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows;CurrentInstallFolder]" REALPATH)

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=1065

derekbruening commented 9 years ago

From bruen...@google.com on July 01, 2013 14:09:40

Cygwin vs VS Professional is documented on HowToBuild .wiki:

"Note that you need Visual Studio's bin directories on your PATH before Cygwin's as there are conflicts: both have mc.exe and link.exe."

Owner: meph...@gmail.com
Labels: OpSys-Windows Component-Build