Presumably you're asking why your build fails when attempting to compile dtd_parse.c?
This is a file generated during the build by flex, and as a generated file if it fails to compile it's likely that the generation process has failed. To see what's happened can you do the following:
Delete the generated file in C:\Development\wsbuild32\epan\dtd_parse.c
Run the build, turning off multiple cpu support and redirecting the output to a text file msbuild /p:Configuration=RelWithDebInfo Wireshark.sln > build.txt
It's not a file tracked by git, but a generated file, so it's generated into the build directory. Do you have any c files in C:\Development\wsbuild32\epan?
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 11/2/2017 3:41:00 PM.
1>Project "C:\Development\wsbuild32\Wireshark.sln" on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "RelWithDebInfo|X64".
ValidateProjects:
The project "INSTALL" is not selected for building in solution configuration "RelWithDebInfo|x64".
The project "checkAPI" is not selected for building in solution configuration "RelWithDebInfo|x64".
The project "checkAPIcapchild-base" is not selected for building in solution configuration "RelWithDebInfo|x64".
The project "checkAPIcapchild-todo" is not selected for building in solution configuration "RelWithDebInfo|x64".
The project "checkAPIcaputils-base" is not selected for building in solution configuration "RelWithDebInfo|x64".
The project "checkAPIcaputils-todo" is not selected for building in solution configuration "RelWithDebInfo|x64".
The project "checkAPIcodecs" is not selected for building in solution configuration "RelWithDebInfo|x64".
The project "checkAPIcrypt" is ...(more)
Your build output shows the build is failing for a few things, included generated files. The step to generate them doesn't appear in the build output which leads me to think you have missed a step in setting up (or have an error in) your build environment.
Can you please post the output of your CMake generate, i.e.
cmake "your parameters" 2>&1 > cmake.txt
On a side note you can look at the Wireshark build slave output for CMake and msbuild to compare with yours, the buildslaves are here and example CMake output is here and msbuild is here.
The output of the CMake step shows some issues with your build environment:
-- The following OPTIONAL packages have not been found:
* CAP
* Gettext
* M
** Qt5Core
** Qt5LinguistTools
** Qt5Multimedia
** Qt5PrintSupport
** Qt5Svg
** Qt5Widgets
** Qt5WinExtras
* SETCAP
* HTMLHelp
**ASCIIDOC
The double starred items are the issues, either you haven't installed QT, or you haven't set the QT5_BASE_DIR env var, see Developers Guide Sect 2.2.3, and you don't have the Cygwin asciidoc and docbook-xml45 packages installed, see the Developers Guide Sect. 2.2.4.
Presumably you're asking why your build fails when attempting to compile dtd_parse.c?
This is a file generated during the build by flex, and as a generated file if it fails to compile it's likely that the generation process has failed. To see what's happened can you do the following:
msbuild /p:Configuration=RelWithDebInfo Wireshark.sln > build.txt
There are no C file under wsbuild32 all C files are place under the source code that I'd clone using git
It's not a file tracked by git, but a generated file, so it's generated into the build directory. Do you have any c files in
C:\Development\wsbuild32\epan
?No , There are no C file in that location
here is the build.txt content
Microsoft (R) Build Engine version 14.0.25420.1 Copyright (C) Microsoft Corporation. All rights reserved.
Build started 11/2/2017 3:41:00 PM. 1>Project "C:\Development\wsbuild32\Wireshark.sln" on node 1 (default targets). 1>ValidateSolutionConfiguration: Building solution configuration "RelWithDebInfo|X64". ValidateProjects: The project "INSTALL" is not selected for building in solution configuration "RelWithDebInfo|x64". The project "checkAPI" is not selected for building in solution configuration "RelWithDebInfo|x64". The project "checkAPIcapchild-base" is not selected for building in solution configuration "RelWithDebInfo|x64". The project "checkAPIcapchild-todo" is not selected for building in solution configuration "RelWithDebInfo|x64". The project "checkAPIcaputils-base" is not selected for building in solution configuration "RelWithDebInfo|x64". The project "checkAPIcaputils-todo" is not selected for building in solution configuration "RelWithDebInfo|x64". The project "checkAPIcodecs" is not selected for building in solution configuration "RelWithDebInfo|x64". The project "checkAPIcrypt" is ...(more)
Unfortunately the text has been cut off. Can you post the text file on a publically accessible share somewhere, e.g. Google Drive, DropBox etc?
Also, please don't raise duplicate questions, I've deleted that other one.
here link to build.txt https://drive.google.com/file/d/1uSGB...
I'm very sorry I did not know there were 2 same questions
Your build output shows the build is failing for a few things, included generated files. The step to generate them doesn't appear in the build output which leads me to think you have missed a step in setting up (or have an error in) your build environment.
Can you please post the output of your CMake generate, i.e.
On a side note you can look at the Wireshark build slave output for CMake and msbuild to compare with yours, the buildslaves are here and example CMake output is here and msbuild is here.
https://drive.google.com/file/d/14Xt0...
The output of the CMake step shows some issues with your build environment:
The double starred items are the issues, either you haven't installed QT, or you haven't set the
QT5_BASE_DIR
env var, see Developers Guide Sect 2.2.3, and you don't have the Cygwin asciidoc and docbook-xml45 packages installed, see the Developers Guide Sect. 2.2.4.