Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wireshark is not using qt5 anymore (by default) #844

Open
FederAndInk opened this issue Jul 18, 2024 · 1 comment
Open

wireshark is not using qt5 anymore (by default) #844

FederAndInk opened this issue Jul 18, 2024 · 1 comment

Comments

@FederAndInk
Copy link

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

@FederAndInk
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant