[CMake] Issues with VS2005 Pro, CMake 2.4.8, Win XP, ParaView

Bill Hoffman bill.hoffman at kitware.com
Fri May 23 10:28:44 EDT 2008


Mike Jackson wrote:
> Here ya go.. Hope this helps.
> 


OK, so the error log has this:

Determining the endianes of the system passed. The system is big 
endianTest produced following output:
Microsoft (R) Visual Studio Version 8.0.50727.42.
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
------ Build started: Project: cmTryCompileExec, Configuration: Debug 
Win32 ------
Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 
for 80x8
Copyright (C) Microsoft Corporation.  All rights reserved.
cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" 
/D "_MBCS" /FD /EHsc /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\" 
/Fd"D:/workspace/ParaView3/vs2005/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" 
/W3 /c /Zi /TC   /Zm1000
"..\..\..\..\..\Applications\CMake_2.4.8\share\cmake-2.4\Modules\TestBigEndian.c"
TestBigEndian.c
Compiling manifest to resources...
Linking...
Embedding manifest...
Build log was saved at 
"file://d:\workspace\ParaView3\vs2005\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"
cmTryCompileExec - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
Exit code 0xc0150004

So, cmTryCompileExec builds just fine.  When CMake tries to run it, it 
gets an Exit code 0xc0150004.  I think that means that it can not find a 
dll.

I would recommend cmake --debug-trycompile on a simple project:

project(foo C)
include(TestBigEndian)
TEST_BIG_ENDIAN(TEST_BIG)

Run cmake once on this without --debug-trycompile.  Then delete the 
TEST_BIG stuff from the CMakeCache.txt, and re-run cmake on the project 
with --debug-trycompile.  This will leave cmTryCompileExec.exe on your 
disk and you can try to run it.

You may want to try this tool: http://www.dependencywalker.com/

It will help figure out what dll's are missing.

-Bill




More information about the CMake mailing list