Hi Stefano,
I am trying to build the program on Windows 64-bit, but am running into some problems. I am a complete novice with all this, but I have installed CMake and Visual Studio 2010 Express. I have tried to follow the WIKI instructions, but get a little lost around the CMake part. Please see the attached screenshot, where I have tried to define the source code and binaries (I tried to follow the image in the Linux build section above). Upon pressing configure I get an error message, shown briefly in the screenshot but the full extent of which is:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/pdoolan.MEDPHYS/Desktop/NiftyRec-1.6.9/build/CMakeFiles/CMakeTmp
Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
cmTryCompileExec4002676725.vcxproj /p:Configuration=Debug
/p:VisualStudioVersion=10.0
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.17929]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 16/10/2013 11:03:13.
Project
"C:\Users\pdoolan.MEDPHYS\Desktop\NiftyRec-1.6.9\build\CMakeFiles\CMakeTmp\cmTryCompileExec4002676725.vcxproj"
on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec4002676725.dir\Debug\".
Creating directory "C:\Users\pdoolan.MEDPHYS\Desktop\NiftyRec-1.6.9\build\CMakeFiles\CMakeTmp\Debug\".
InitializeBuildStatus:
Creating "cmTryCompileExec4002676725.dir\Debug\cmTryCompileExec4002676725.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec4002676725.dir\Debug\\" /Fd"cmTryCompileExec4002676725.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec4002676725.dir\Debug\\" /Fd"cmTryCompileExec4002676725.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
testCCompiler.c
ManifestResourceCompile:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec4002676725.dir\Debug\cmTryCompileExec4002676725.exe.embed.manifest.res" cmTryCompileExec4002676725.dir\Debug\cmTryCompileExec4002676725_manifest.rc
Link:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\pdoolan.MEDPHYS\Desktop\NiftyRec-1.6.9\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec4002676725.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec4002676725.dir\Debug\cmTryCompileExec4002676725.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/Users/pdoolan.MEDPHYS/Desktop/NiftyRec-1.6.9/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec4002676725.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/pdoolan.MEDPHYS/Desktop/NiftyRec-1.6.9/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec4002676725.lib" /MACHINE:X86 cmTryCompileExec4002676725.dir\Debug\cmTryCompileExec4002676725.exe.embed.manifest.res
cmTryCompileExec4002676725.dir\Debug\testCCompiler.obj /machine:X86 /debug
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid
or corrupt
[C:\Users\pdoolan.MEDPHYS\Desktop\NiftyRec-1.6.9\build\CMakeFiles\CMakeTmp\cmTryCompileExec4002676725.vcxproj]
Done Building Project
"C:\Users\pdoolan.MEDPHYS\Desktop\NiftyRec-1.6.9\build\CMakeFiles\CMakeTmp\cmTryCompileExec4002676725.vcxproj"
(default targets) -- FAILED.
Build FAILED.
"C:\Users\pdoolan.MEDPHYS\Desktop\NiftyRec-1.6.9\build\CMakeFiles\CMakeTmp\cmTryCompileExec4002676725.vcxproj"
(default target) (1) ->
(Link target) ->
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\Users\pdoolan.MEDPHYS\Desktop\NiftyRec-1.6.9\build\CMakeFiles\CMakeTmp\cmTryCompileExec4002676725.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.79
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:31 [/color](PROJECT)[/color]
Configuring incomplete, errors occurred!
See also "C:/Users/pdoolan.MEDPHYS/Desktop/NiftyRec-1.6.9/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/pdoolan.MEDPHYS/Desktop/NiftyRec-1.6.9/build/CMakeFiles/CMakeError.log".
----------------
You probably know this from looking above, but the NiftyRec folder is located on my desktop.
Thanks again for any help you can provide!
Paul
|