This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

No CMAKE_C(XX)_COMPILER could be found

asked Dec 06 '17

updated Dec 07 '17

I try to compile wireshark in my windows(10) PC, Follow the instruction https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html#ChWin32Generate, I have setup the working environment,

set WIRESHARK_BASE_DIR=C:\Users\Me\DDisk\FWork\WireShark\  
set QT5_BASE_DIR=C:\Qt\Qt5.6.3\5.6.3\msvc2015_64  
set WIRESHARK_VERSION_EXTRA=-1.0.0  
set WIRESHARK_CYGWIN_INSTALL_PATH=C:\cygwin64  
set VisualStudioVersion=14.0

Visual Studio 2015, QT, Cygwin, python, git and cmake have been installed.

NOTE: I have VS2005 before, for the Wireshark compiling, I remove it after VS2015 has been installed, the removing may be unclear.

When I run the command at VS2015 command prompt: cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 14 2015 Win64" ..\wireshark

I got the following result:

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:22 (project):

No **CMAKE__C__COMPILER** could be found.

CMake Error at CMakeLists.txt:22 (project):
  No **CMAKE__CXX__COMPILER** could be found.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Me/DDisk/FWork/WireShark/wsbuild64/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Me/DDisk/FWork/WireShark/wsbuild64/CMakeFiles/CMakeError.log".

If you have any experience or idea about it, please help me. Thanks in advance!

Comments

my QT version is 5.6.3, is it a reason for the error? Since I found QT version is 5.9.1 in the instruction web page.

User 83903 ( Dec 06 '17 )

1 Answer

0

answered Dec 06 '17

I found the answer by myself,

"https://social.msdn.microsoft.com/For..."

The SDK is not installed, which is different pacakge, I just think it should be included when I installed the IDE.

Comments

I just think it should be included when I installed the IDE

Then complain about it to Microsoft; we aren't responsible for the packaging of Visual Studio.

User 87485 ( Dec 07 '17 )

Honestly, in the instruction web page the command : choco install VisualStudio2015Community --timeout 0 -package-parameters "--AdminFile path\to\msvc2015AdminDeployment.xml" Can't get the installation of VC++ automatically, I run the cammand for many times, is there any way what we can fix by modify the XML file.

User 83903 ( Dec 07 '17 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.