Hi all When I try to setup the wireshark development env on Win7 64bits, there are always errors when build the project with "msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln", do you have some suggestion for the following errors? thanks !
asked 26 Oct '16, 03:23 scdma edited 26 Oct '16, 03:58 grahamb ♦ |
One Answer:
I can see two errors in the output:
Something up with the call to flex, not sure why it's trying to create _lex.h and:
which is something weird with running the python script asciidoc.py Normally I'd expect odd things on the path with issues like this, but for the first one at least it seems that the build is using the Cygwin version of flex. Note that we now recommend the use of winflexbison rather than the Cygwin version, see the last paragraph of setting up Cygwin in the Developers Guide. If you do install this, you'll need to either delete CMakeCache.txt in your build directory and re-run the CMake generation step, or just delete and recreate the build dir entirely. When debugging build output it's much better to turn off parallel builds (remove the /m flag given to msbuild) so that project steps are not comingled. answered 26 Oct '16, 04:07 grahamb ♦ |
Hello Mr.Grahamb,
thanks for your answer, I will try to install the winflexbsion.
do you have some idea for the second error? actually, I can find the file "release-notes.asciidoc" in the correct folder, I don't know why a2x can not find it.
thanks very much
Hello Mr.Grahamb, I used the winflexbison to build the wireshark-64bits on Win7-64bits & VS2013, the same error occurs, the error information is as below, would you like have some suggestion for it?
I think you meant to write the above answer as a comment!
Still not sure what's up with the docbook issue, but for the flex issue it seems that the build hasn't picked up win_flex as it is still using the Cygwin flex.
Can you please delete and recreate your build directory, rerun the CMake generation step and then try the build again this time removing the
/m
flag from the msbuild command line.