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

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


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?

permanent link

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×254
×110

question asked: 18 Sep '16, 05:55

question was seen: 913 times

last updated: 19 Sep '16, 04:28

p​o​w​e​r​e​d by O​S​Q​A