Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have fatal error LNK1181 when rebuild wireshark on Window

0

I am trying follow this instruction to build Wireshark on window: https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html#ChWin32Generate

The build was successful and I was be able to run Wireshark.exe, so I started to follow this instruction to add the plugins for wireshark: https://blog.fjh1997.top/2019/03/29/show-you-how-to-compile-the-c-language-plugin-for-wireshark-3.1-step-by-step-(windows-platform-2019-3-20)/#step-four-recompile-the-wireshark-source-code

But after follow each steps, my plugins does not show the foo.ddl, I thought that I did something wrong for configuration of the plugins, so I decided to delete the build directory and build wireshark again just to make sure.

After doing everything I did the first time I built, it show this error:

 Build FAILED.

   "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\Development\wsbuild64\wireshark.vcxproj.metaproj" (default target) (2) ->
   "C:\Development\wsbuild64\wireshark.vcxproj" (default target) (147) ->
   (Link target) ->
     LINK : fatal error LNK1181: cannot open input file 'C:\Development\wsbuild64\ui\qt\qtui.dir\RelWithDebInfo\mocs_compilation_Debug.obj' [C:\Development\wsbuild64\wireshark.vcxproj]

0 Warning(s)
1 Error(s)

I have tried to clean and then recompile again, but it still showing errors. So I decided to delete the directory, try to build it once more time, but unfortunately I still got this error and I do not know why. Can someone help me? I really appreciate, this is my first time working with Wireshark.

I have fatal error LNK1181 when rebuild wireshark on Window

0

I am trying follow this instruction to build Wireshark on window: https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html#ChWin32Generate

The build was successful and I was be able to run Wireshark.exe, so I started to follow this instruction to add the plugins for wireshark: https://blog.fjh1997.top/2019/03/29/show-you-how-to-compile-the-c-language-plugin-for-wireshark-3.1-step-by-step-(windows-platform-2019-3-20)/#step-four-recompile-the-wireshark-source-code

But after follow each steps, my plugins does not show the foo.ddl, I thought that I did something wrong for configuration of the plugins, so I decided to delete the build directory and build wireshark again just to make sure.

After doing everything I did the first time I built, it show this error:

 Build FAILED.

   "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\Development\wsbuild64\wireshark.vcxproj.metaproj" (default target) (2) ->
   "C:\Development\wsbuild64\wireshark.vcxproj" (default target) (147) ->
   (Link target) ->
     LINK : fatal error LNK1181: cannot open input file 'C:\Development\wsbuild64\ui\qt\qtui.dir\RelWithDebInfo\mocs_compilation_Debug.obj' [C:\Development\wsbuild64\wireshark.vcxproj]

0 Warning(s)
1 Error(s)

I have tried to clean and then recompile again, but it still showing errors. So I decided to delete the directory, try to build it once more time, but unfortunately I still got this error and I do not know why. Can someone help me? I really appreciate, this is my first time working with Wireshark.

Edit: When I open folder C:\Development\wsbuild64\ui\qt\qtui.dir\RelWithDebInfo\ as shown in the error, there is no mocs_compilation_Debug.obj, does this mean that I am missing 1 file? Is there any way I can add it?