Wireshark-dev: Re: [Wireshark-dev] Buildiing with Qt 5.8 fails on Windows
Hi, It looks like it’s this problem https://bugreports.qt.io/browse/QTBUG-58345?jql=text%20~%20%22Qt5CoreMacros%22
Change
Qt5CoreMacros.cmake Line 93 – 95 to: if (MSVC) Makes the build work. Regards Anders From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx]
On Behalf Of Anders Broman > You can also just nuke the build dir and run the CMake gen and a normal build command. This is what I did prior to building… In the moc file you can see that it is built with Qt 5.8 #include
"../../../wireshark/ui/qt/capture_file_dialog.h" #include
<QtCore/qbytearray.h> #include
<QtCore/qmetatype.h> #if
!defined(Q_MOC_OUTPUT_REVISION) #error
"The header file 'capture_file_dialog.h' doesn't include <QObject>." #elif
Q_MOC_OUTPUT_REVISION != 67 #error
"This file was generated using the moc from 5.8.0. It" #error
"cannot be used with the include files from this version of Qt." #error
"(The moc has changed too much.)" #endif But it looks like it’s not obeying From the .h file private
slots: #if
!defined(Q_OS_WIN)
void preview(const
QString & path);
void on_buttonBox_helpRequested(); #endif
// Q_OS_WIN Regards Anders From:
wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx]
On Behalf Of Graham Bloice General answer, not specific to the QT and VS versions, Have you previously built in this directory? If so delete CMakeCache.txt, run the CMake generation step and then add "/t:Rebuild" to the msbuild command line to force a total rebuild.
You can also just nuke the build dir and run the CMake gen and a normal build command. On 9 March 2017 at 11:43, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:
-- Graham Bloice Software Developer Trihedral UK Limited |
- References:
- [Wireshark-dev] Buildiing with Qt 5.8 fails on Windows
- From: Anders Broman
- Re: [Wireshark-dev] Buildiing with Qt 5.8 fails on Windows
- From: Graham Bloice
- Re: [Wireshark-dev] Buildiing with Qt 5.8 fails on Windows
- From: Anders Broman
- [Wireshark-dev] Buildiing with Qt 5.8 fails on Windows
- Prev by Date: Re: [Wireshark-dev] Buildiing with Qt 5.8 fails on Windows
- Next by Date: [Wireshark-dev] Many Qt UI bugs, help requested
- Previous by thread: Re: [Wireshark-dev] Buildiing with Qt 5.8 fails on Windows
- Next by thread: [Wireshark-dev] Many Qt UI bugs, help requested
- Index(es):
- Get Wireshark
- Download
- Code of Conduct