This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Error generate ws.css in VS2013 build of Wireshark 2.0.5

0

Hi,

I open wireshark-2.0.5 VS2013 project (ALL_BUILD.vcxproj) and rebuild it in Debug configuration. During the build I receive the following output error message:

Generating ws.css
4>  Error copying file (if different) from "D:/Development/wireshark/docbook/ws.css" to "D:/Development/wireshark/docbook/ws.css".
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.

How do I solve this issue? Thanks.

asked 18 Sep '16, 05:55

ITCO's gravatar image

ITCO
6112
accept rate: 0%

edited 18 Sep '16, 08:39

grahamb's gravatar image

grahamb ♦
19.8k330206


One Answer:

0

The build seems to be attempting to copy the file onto itself. Are you attempting to build in-tree, i.e. in the sources directory? Is so, that isn't supported.

What was the CMake command line you used?

answered 18 Sep '16, 08:52

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thanks for the quick answer, I understand the problem and as you've suggested I build the solution in the Wireshark source tree. So I need to build it in another. Thanks.

(18 Sep '16, 09:46) ITCO

Please follow the Developers Guide, Section 2.2.10.2:

Create and change to the correct build directory. CMake is best used in an out-of-tree build configuration where the build is done in a separate directory to the source tree, leaving the source tree in a pristine state. 32 and 64 bit builds require a separate build directory. Create (if required) and change to the appropriate build directory.

If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.

(18 Sep '16, 09:56) grahamb ♦

Hi,

It worked without errors: ========== Rebuild All: 66 succeeded, 0 failed, 13 skipped ========== Thank You, Itamar.

(19 Sep '16, 04:28) ITCO