Error compiling Wireshark with Visual Studio 2019: Previous IPDB not found return to full compilation
Hello ,
I am trying to compile Wireshark for the first time, following the tutorial available at:
https://www.wireshark.org/docs/wsdg_h...
I want to add my own dissector in C language, and for this I need to go through the Wireshark compile process.
After following all the instructions for downloading, setting up the environment variables and generating files, I proceeded to the compilation part and the compilation always crashes at the same part:
Previous IPDB not found fall back to full compilation
I tried to do the compilation directly from the terminal x64 Native Tools Commande Prompt for VS2019
and also directly from Visual Studio (opening the program file and clicking on debug).
I followed the instructions of a forum, recommending to pass the variable /LGTC: incremental to /LGTC but I still get the same compilation error.
After the compilation crashes, I get errors for files that exist but are not handled:
Gravité Code Description Projet Fichier Ligne État de la suppression
Erreur LNK1120 3686 externes non résolus wireshark C:\Development\wsbuild64\run\Release\Wireshark.exe 1
Thank you !
The issue you report
Previous IPDB not found ...
isn't usually a fatal error, it just meant that the intermediate file created by the compiler in a previous build hasn't been found and so the compiler will compile everything.Link error 1120 is just reporting the summary count of link errors, in this case 1. The actual error will have been reported with a LNK2001 or LNK2019. Are you using CMake 3.20, there have been some recent reported issues with it?
Finally, I would ignore other forums for advice on building Wireshark, it's often out of date or simply wrong, all the essential info is in the Wireshark Developers Guide, the Wireshark wiki or on this site.
I think that would translate to "LNK1120: 3686 unresolved externals"
When you set the environment variables, was it something like this:
Was the output of
cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark
clean?Can you run the build step
msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln
and capture the output to a file. Are there any warnings/errors before the final link error?I don't have
C:\Qt\5.15.2\msvc2019_64
I'm using:
C:\Qt\5.15.2\mingw81_64
Now I'll reinstall QT for use the msvc2019_64.
The output of cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark is not clean".
When I run "msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln" I don't have any warnings but I have 3000 erros of the untreated links