Wireshark-dev: Re: [Wireshark-dev] Status Cmake Win32 support
From: Graham Bloice <[email protected]>
Date: Sun, 13 Oct 2013 12:42:59 +0100
wsutil has stopped linking for me.  It's looking for gmodule-2.0.lib.  Looking at the linker input the library is specified but without the full path to ...\wireshark-win-32-libs\gtk2\lib.
 
In fact the linker input for this target isn't very good at all, it has gmodule-2.0.lib, glib-2.0.lib and intl.lib all listed without paths and glib-2.0.lib listed with the path to the lib in ...\gtk3\lib!
 
Another question that might be more difficult to answer, why does CMake generate a linker command that has absolute paths to the libs and doesn't specify additional library directories:
 
/OUT:"E:\Wireshark\build\lib\Debug\wsutil.dll" /INCREMENTAL /NOLOGO /DLL "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib" "gmodule-2.0.lib" "glib-2.0.lib" "intl.lib" "e:\Wireshark\wireshark-win32-libs\gtk3\lib\glib-2.0.lib" "e:\Wireshark\wireshark-win32-libs\gnutls-2.12.18-1.2-win32ws\bin\libgcrypt-11.lib" "e:\Wireshark\wireshark-win32-libs\gnutls-2.12.18-1.2-win32ws\bin\libgpg-error-0.lib" "wsock32.lib" "ws2_32.lib" /MANIFEST /ManifestFile:"wsutil.dir\Debug\wsutil.dll.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"E:/Wireshark/build/lib/Debug/wsutil.pdb" /SUBSYSTEM:CONSOLE /PGD:"E:\Wireshark\build\lib\Debug\wsutil.pgd" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"E:/Wireshark/build/lib/Debug/wsutil.lib" /MACHINE:X86 /ERRORREPORT:QUEUE