[CMake] [Temproraly Solution , may be bug in cmake] Re: cmake error in windows 7 , visual studio 2008
Bill Hoffman
bill.hoffman at kitware.com
Fri Mar 19 10:59:50 EDT 2010
Bill Hoffman wrote:
> Ramazan Girgin wrote:
>> I insert
>> SET(CMAKE_CXX_COMPILER_WORKS 1) in CMakeTestCXXCompiler.cmake file
>> and
>> SET(CMAKE_C_COMPILER_WORKS 1) in CMakeTestCCompiler.cmake file
>>
>> for disable testing of compiler.
>>
>> After that cmake generated make file correctly and i compiled may
>> application.
>> Another temp solution may be put this lines int to CMakeLists.txt file.
>> But this is temp solution.
>> May be any bug in cmake ?
>>
>> I found something about cl.exe gives errors like this if more than one
>> cpu in computer.It may be related to this. I have 4 core cpu too.
>> http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/b1d1bceb-06b6-47ef-a0ea-23ea752e0c4f
>>
>>
>>
>
> I would not trust the builds on this machine. Other try-compile type
> things are going to fail, and result in bad configurations.
>
>
> C:\Users\ramazan.girgin\Desktop\ma3BuildManager\New
> folder\CMakeFiles\CMakeTmp\testCCompiler.c : fatal error C1033: cannot
> open
> program database ''
>
>
> You should try this:
>
> cmake --debug-trycompile
>
> Then open the solution that cmake creates in the CMakeFiles/CMakeTmp
> directory and try it from the IDE. VS runs some sort of process to
> manage the pdb files, if that process gets created with incorrect
> permissions things do not work correctly....
>
> Anyway, I don't think this is a CMake issue, but I would predict more
> issues on the machine with the compiler... :(
>
I workd if this is the problem:
http://msdn.microsoft.com/en-us/library/4ks5fw35%28VS.71%29.aspx:
" * Disk error
In Visual C++ .NET (version 1300 of the compiler), the user locale must
be set correctly when the file name (or directory path to the file name)
contains MBCS characters. Setting the system locale is not sufficient;
the user locale must be set to process MBCS characters."
What is your locale?
-Bill
More information about the CMake
mailing list