On 19.06.2016 20:12, Kornel Benko wrote:
Am Sonntag, 19. Juni 2016 um 19:52:25, schrieb racoon <xraco...@gmx.de>
On 19.06.2016 19:36, Kornel Benko wrote:
Am Sonntag, 19. Juni 2016 um 19:23:14, schrieb racoon <xraco...@gmx.de>
On 19.06.2016 18:20, Georg Baum wrote:
racoon wrote:

...


The most important question now is why cmake does not find your C compiler.

I have no clue. There is a cl.exe in

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

Daniel, please check if you have cl.exe in PATH.
1.) Open a command window.
2.) call 'cl -v'

In a common command window cl is not found.

But if I start

1) Open Developer Command Prompt for VS2015
2) call 'cl -v'

I get

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23918 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.
cl : Command line warning D9002 : ignoring unknown option '-v'
cl : Command line error D8003 : missing source filename

So I guess that's okay.

Alternatively you can specify the compiler via
        -DCMAKE_CXX_COMPILER="C:\Program Files (x86)\Microsoft Visual Studio 
14.0\VC\bin/cl.exe"

Not sure what that means. I tried

cmake-gui.exe -DCMAKE_CXX_COMPILER="C:\Program Files (x86)\Microsoft
Visual Studio 14.0\VC\bin/cl.exe"

The parameter was meant for 'cmake', not for 'cmake-gui'.

but probably there was a typo so I tried

Cmake and most other window programs understand '/' IMHO.

cmake-gui.exe -DCMAKE_CXX_COMPILER="C:\Program Files (x86)\Microsoft
Visual Studio 14.0\VC\bin\cl.exe"

Same problem.

or set CMAKE_CXX_COMPILER in cmake-gui.

So where how do I do that exactly? I tried to "+ Add Entry" and

Name: CMAKE_CXX_COMPILER
Type: FILEPATH
Value: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe

I would try to use '/' everywhere.
You may click on the button '...' near the file-path-value and select the 
compiler from the dialog.

Tried both in the cmake-gui.exe. Same errors.

If I should try cmake.exe instead I could make use of more instructions on how to use it. But I guess it would be the same result.

Reply via email to