openembedded/meta-openembedded

wireshark is not using qt5 anymore (by default)

Opened this issue · 1 comments

When trying to build wireshark with qt5 packageconfig enabled, I get this error:

| CMake Error at CMakeLists.txt:1242 (find_package):
|   By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
|   asked CMake to find a package configuration file provided by "Qt6", but
|   CMake did not find one.
|
|   Could not find a package conf-- Configuring incomplete, errors occurred!
| iguration file provided by "Qt6" with any of
|   the following names:
|
|     Qt6Config.cmake
|     qt6-config.cmake
|
|   Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
|   to a directory containing one of the above files.  If "Qt6" provides a
|   separate development package or SDK, be sure it has been installed.
|
|
| WARNING: exit code 1 from a shell command.

Wireshark is now using qt6 by default, there appears to be an option to build for qt5 too. Maybe a modification to the qt5 packageconfig is needed? And qt6 could be added too?

See their cmake options: https://gitlab.com/wireshark/wireshark/-/blob/v4.2.6/CMakeOptions.txt?ref_type=tags

using this package config works (using -DUSE_qt6=OFF):

PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON -DBUILD_wireshark=ON -DUSE_qt6=OFF, -DENABLE_QT5=OFF -DBUILD_wireshark=OFF, qttools-native qtmultimedia qtsvg"

I think adding a qt6 option while keeping the qt5 option would be great.