[CMake] Cmake issue compiling CLucene

Hatchi jonas.poelmans at gmail.com
Sun Jan 6 14:03:05 EST 2013


Dear Bill

After your email I reinstalled WinSDK 7.1 and Microsoft Visual Studio
Express for C++ 2010.

In Cmake I indicated the visual studio 2010 compiler but now I get these
messages:

What do you suggest could be the problem?

The C compiler identification is MSVC 16.0.30319.1

The CXX compiler identification is MSVC 16.0.30319.1

Check for working C compiler using: Visual Studio 10

Check for working C compiler using: Visual Studio 10 -- broken

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:/CLucene/CMakeFiles/CMakeTmp

 Run Build Command:C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

cmTryCompileExec3404150544.vcxproj /p:Configuration=Debug

/p:VisualStudioVersion=10.0

Microsoft (R) Build Engine versie 4.0.30319.17929

[Microsoft .NET Framework versie 4.0.30319.17929]

Copyright (C) Microsoft Corporation. Alle rechten voorbehouden.

 Opbouwen gestart 6/01/2013 19:57:44.

Project C:\CLucene\CMakeFiles\CMakeTmp\cmTryCompileExec3404150544.vcxproj

op knooppunt 1 (standaarddoelen).

PrepareForBuild:

De map cmTryCompileExec3404150544.dir\Debug\ wordt gemaakt.

De map C:\CLucene\CMakeFiles\CMakeTmp\Debug\ wordt gemaakt.

InitializeBuildStatus:

cmTryCompileExec3404150544.dir\Debug\cmTryCompileExec3404150544.unsuccessfulbuild
wordt gemaakt omdat AlwaysCreate is opgegeven.

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"cmTryCompileExec3404150544.dir\Debug\\"
/Fd"C:/CLucene/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3404150544.pdb"
/Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000

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"cmTryCompileExec3404150544.dir\Debug\\"
/Fd"C:/CLucene/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3404150544.pdb"
/Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000

testCCompiler.c

 ManifestResourceCompile:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo
/fo"cmTryCompileExec3404150544.dir\Debug\cmTryCompileExec3404150544.exe.embed.manifest.res"
cmTryCompileExec3404150544.dir\Debug\cmTryCompileExec3404150544_manifest.rc

Link:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe
/ERRORREPORT:QUEUE
/OUT:"C:\CLucene\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec3404150544.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:"cmTryCompileExec3404150544.dir\Debug\cmTryCompileExec3404150544.exe.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
/PDB:"C:/CLucene/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3404150544.pdb"
/SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"C:/CLucene/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3404150544.lib"
/MACHINE:X86
cmTryCompileExec3404150544.dir\Debug\cmTryCompileExec3404150544.exe.embed.manifest.res

cmTryCompileExec3404150544.dir\Debug\testCCompiler.obj /machine:X86 /debug

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid

or corrupt

[C:\CLucene\CMakeFiles\CMakeTmp\cmTryCompileExec3404150544.vcxproj]

Project C:\CLucene\CMakeFiles\CMakeTmp\cmTryCompileExec3404150544.vcxproj

is gebouwd (standaarddoelen). -- MISLUKT.

 Opbouwen MISLUKT.

 C:\CLucene\CMakeFiles\CMakeTmp\cmTryCompileExec3404150544.vcxproj

(standaarddoel) (1) ->

(Link doel) ->

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid
or corrupt
[C:\CLucene\CMakeFiles\CMakeTmp\cmTryCompileExec3404150544.vcxproj]

 0 waarschuwing(en)

1 fout(en)

 Verstreken tijd 00:00:01.88

  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt:1 (PROJECT)

Configuring incomplete, errors occurred!


2013/1/4 Bill Hoffman [via CMake] <ml-node+s3232098n7582777h28 at n2.nabble.com
>

> On 1/4/2013 5:47 PM, Michael Jackson wrote:
> > Don't use a "Regular Command Prompt". Use instead one of the "Visual
> > Studio 9 Command Prompt" that are provided with a normal Visual
> > Studio installation. Those command prompts have all the necessary
> > paths setup for Visual Studio. This also assumes you have Visual
> > Studio 9 installed and not Visual Studio 8 or 10 and are just getting
> > confused about which one to pick. --
>
>
> You should not have to start from a VS command prompt if you are using
> the IDE to build. You only need to do that if you are using command line
> tools.  Do you have VS 9 installed?  Sounds like cmake can not find
> devenv.  How did you install VS, and what version is it?
>
> --
> Bill Hoffman
> Kitware, Inc.
> 28 Corporate Drive
> Clifton Park, NY 12065
> [hidden email] <http://user/SendEmail.jtp?type=node&node=7582777&i=0>
> http://www.kitware.com
> 518 881-4905 (Direct)
> 518 371-3971 x105
> Fax (518) 371-4573
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://cmake.3232098.n2.nabble.com/Cmake-issue-compiling-CLucene-tp7582775p7582777.html
>  To unsubscribe from Cmake issue compiling CLucene, click here<http://cmake.3232098.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7582775&code=am9uYXMucG9lbG1hbnNAZ21haWwuY29tfDc1ODI3NzV8MjAzODk4MjU1Mw==>
> .
> NAML<http://cmake.3232098.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://cmake.3232098.n2.nabble.com/Cmake-issue-compiling-CLucene-tp7582775p7582786.html
Sent from the CMake mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130106/d74fce89/attachment.htm>


More information about the CMake mailing list