106>Done Building Project "D:\Development\msbuild64\ui\qt\qtui.vcxproj" (default targets). 40>Done Building Project "D:\Development\msbuild64\ui\qt\qtui.vcxproj.metaproj" (default targets). 2>Done Building Project "D:\Development\msbuild64\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED. 1>Done Building Project "D:\Development\msbuild64\Wireshark.sln" (default targets) -- FAILED. Build FAILED.
Time Elapsed 00:07:54.83 I just took the sources code and started building it. no idea wat is causing the build errors as i fallowed the procedure as mentioned in the developers guide. asked 24 Mar ‘17, 03:08 DhanuShalz |
One Answer:
The CMake output looks OK, the build errors were:
The first few errors are issues with building the documentation, some of which seem to be an inability to download required xml files from the internet. I repeat my question, does the build machine have direct internet access? The link error is an inability to locate gmodule-2.0.lib, this is because CMake has picked up some other form of gmodule (and gthread2) as can be seen by the CMake output:
To fix this you’ll need to locate where these are coming from, possibly Cygwin or something else on your PATH and either remove the items or remove them from your PATH, delete CMakecache.txt and re-run the CMake generation step. answered 27 Mar ‘17, 02:50 grahamb ♦ The first few errors are issues with building the documentation, some of which seem to be an inability to download required xml files from the internet. I repeat my question, does the build machine have direct internet access? the machine does have a direct internet connection (27 Mar ‘17, 02:59) DhanuShalz The download errors are:
(27 Mar ‘17, 03:38) grahamb ♦ You can modify the CMake command so that the documentation isn’t built so those xml errors won’t occur by deleting CMakeCache.txt and running the CMake generation step, but omitting the “-DENABLE_CHM_GUIDES=on” part, but note that if you try to build the installer that will fail. (27 Mar ‘17, 03:41) grahamb ♦ @grahamb – Checking for one of the modules ‘gmodule-2.0’ – GMODULE2 FOUND – GMODULE2 includes: /usr/include/glib-2.0;/usr/lib/glib-2.0/include – GMODULE2 libs: gmodule-2.0;glib-2.0;intl – Checking for one of the modules ‘gthread-2.0’ – GTHREAD2 FOUND – GTHREAD2 includes: /usr/include/glib-2.0;/usr/lib/glib-2.0/include – GTHREAD2 libs: gthread-2.0;glib-2.0;intl Can i get more insight on this, As i have tried removing the file from this location(/usr/include/glib-2.0), im facing the same error? and no such PATH is set. (28 Mar ‘17, 07:25) DhanuShalz Cmake uses “modules” to find libraries, for gmodule and gthread they are in the Wireshark source tree under cmake\modules\FINDGMODULE2.cmake and FINDGTHREAD2.cmake respectively. Both modules try to use pkgconfig to locate the libraries first, normally that doesn’t work on Windows as there is no pkgconfig, and then the modules take a hint which includes the Wireshark 3rd party libraries downloaded for the build (in your case Wireshark-win64-libs-2.2), and looks in there. However from your CMake output it seems that the Cygwin pkgconfig was found:
I suspect this is messing things up for you, probably because you have the Cygwin bin dir on your path (C:\cygwin64\bin). All my Wireshark build VM’s do NOT have Cygwin on the path because of issues like this, even extending back to the nmake days. (28 Mar ‘17, 08:47) grahamb ♦ @DhanuShalz I’m seeing the same errors you’re seeing related to glib…working with grahamb here: https://ask.wireshark.org/questions/59065/updating-custom-dissector-from-16-wireshark-to-22-wireshark Just so you know. Working on finding a solution right now. I will post an answer here when I do. (30 Mar ‘17, 13:45) aawale15 “D:\Development\msbuild\Wireshark.sln” (default target) (1) -> “D:\Development\msbuild\docbook\developer_guide_chm.vcxproj.metaproj” (default target) (16) -> “D:\Development\msbuild\docbook\developer_guide_chm.vcxproj” (default target) (101) -> (CustomBuild target) -> HHC5003 : error : Compilation failed while compiling ws.css. [D:\Development\msbuild\docbook\developer_guide_chm.vcxproj] “D:\Development\msbuild\Wireshark.sln” (default target) (1) -> “D:\Development\msbuild\docbook\all_guides.vcxproj.metaproj” (default target) (3) -> “D:\Development\msbuild\docbook\user_guides.vcxproj.metaproj” (default target) (30) -> “D:\Development\msbuild\docbook\user_guide_chm.vcxproj.metaproj” (default target) (33) -> “D:\Development\msbuild\docbook\user_guide_chm.vcxproj” (default target) (124) -> (CustomBuild target) -> HHC5003 : error : Compilation failed while compiling ws.css. [D:\Development\msbuild\docbook\user_guide_chm.vcxproj] not sure what is causing it to fail! @grahamb (05 Apr ‘17, 22:57) DhanuShalz You seemed to have moved on a bit. In the past I had issues with ws.css being created by Cygwin with odd permissions. Deleting ws.css in your build directory docbook directory fixed that for me and then rebuilding. (06 Apr ‘17, 01:43) grahamb ♦ showing 5 of 8 show 3 more comments |
The above was observed!
Does your build machine have internet access? Among other things it seems to be failing to download some xml files. You also have a problem with gmodule.
Please post the output (as text) of the CMake generation step, i.e.
I need to see what’s in cmake.txt
To post msbuild output use the following redirection to capture the build info:
cmake.txt
msbuid.txt
@grahamb please find the attached log