Hi

New to protocol buffers, downloaded 3.2.0 and followed the guide in 
cmake/README.md

It fails at this step

*****
To start using a *Release* configuration:

     C:\Path\to\protobuf\cmake\build>mkdir release & cd release
     C:\Path\to\protobuf\cmake\build\release>cmake -G "NMake Makefiles" ^
     -DCMAKE_BUILD_TYPE=Release ^
     -DCMAKE_INSTALL_PREFIX=../../../../install ^
     ../..
*****
with the following error
********************************************************************************************************************************************************
CMake Error at C:/Program 
Files/CMake/share/cmake-3.8/Modules/CMakeTestCCompiler.cmake:51 (message):
  The C compiler "C:/Program Files (x86)/Microsoft Visual
  Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe" is
  not able to compile a simple test program.

  It fails with the following output:

   Change Dir: 
M:/SandBox/proto/cpp/protobuf-3.2.0/cmake/build/release/CMakeFiles/CMakeTmp



  Run Build Command:"nmake" "/NOLOGO" "cmTC_e9028\fast"

        "c:\Program Files (x86)\Microsoft Visual
  Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe"
  -f CMakeFiles\cmTC_e9028.dir\build.make /nologo -L
  CMakeFiles\cmTC_e9028.dir\build

  Building C object CMakeFiles/cmTC_e9028.dir/testCCompiler.c.obj


        
C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\cl.exe
  @C:\Users\Karsten\AppData\Local\Temp\nmEF9D.tmp

  testCCompiler.c

  Linking C executable cmTC_e9028.exe

        "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe
  --intdir=CMakeFiles\cmTC_e9028.dir --manifests --
  
C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX86\x86\link.exe
  /nologo @CMakeFiles\cmTC_e9028.dir\objects1.rsp
  @C:\Users\Karsten\AppData\Local\Temp\nmF0D7.tmp

  RC Pass 1 failed to run.

  NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' :
  return code '0xffffffff'

  Stop.

  NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual
  
Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe"'
  : return code '0x2'

  Stop.
********************************************************************************************************************************************************

I'm really an IDE user - so not that familiar with cmake and nmake - I 
can't find the exact spot where it fails - i managed to extract a few parts 
here and there to compile and link testCCompiler.c.exe

Any clues?



-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to