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

Using Qt6 but Qt5 GammaRay version is being built #821

Closed
7ymekk opened this issue Aug 1, 2023 · 4 comments
Closed

Using Qt6 but Qt5 GammaRay version is being built #821

7ymekk opened this issue Aug 1, 2023 · 4 comments

Comments

@7ymekk
Copy link

7ymekk commented Aug 1, 2023

OS: ArchLinux with Qt6 installed in /opt/Qt/6.5.2/gcc_64, Qt 5.15 installed from package manager as KDE and others require it.

I tried building GammaRay with Qt6.5.2 using QtCreator but also command line. It builds properly but when I run it, there's only 1 probe to select: Qt 5.15 (x86_64).

In a build dir I noticed build-GammaRay-Release/lib/gammaray/2.11/qt5_15-x86_64/

I also tried https://github.com/KDAB/GammaRay/blob/master/INSTALL.md#force-a-probe-only-build and it built 5.15 probe again.

Could you please advise if I'm missing something or there might be some bug? IMO when loading project to QtCreator and building GammaRay, it should by default build the probe for Qt I'm building with.

@Waqar144
Copy link
Contributor

Waqar144 commented Aug 4, 2023

Have you tried running it from the command line? Perhaps launching it from Qt creator messes something. Also check the executable using ldd to make sure it really was built with Qt6

@Waqar144 Waqar144 closed this as completed Aug 4, 2023
@7ymekk
Copy link
Author

7ymekk commented Aug 7, 2023

yeah, bin/gammaray is linked to Qt5 from PATH in both cases: using QtCreator and command line:

cmake -G Ninja -DCMAKE_PREFIX_PATH=/opt/Qt/6.5.2/gcc_64 -DGAMMARAY_BUILD_DOCS=OFF -DGAMMARAY_BUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/opt/gammaray /home/kuba/workspace/GammaRay

any suggestions?

I'm trying v2.11.3

edit: in all CMakeLists over whole GammaRay codebase I can find find_package(Qt5..., find_package(Qt5Core and others. Am I missing something here? Shall I pull some other repo or branch?

@winterz
Copy link
Member

winterz commented Aug 7, 2023

the 2.11 source code has not been ported to Qt6.
you need to use the master branch for Qt6

@7ymekk
Copy link
Author

7ymekk commented Aug 7, 2023

thanks for a quick reply, that was it. It would be great to have this info in INSTALL.md or README.md, as I usually use latest TAG and not the master.

@7ymekk 7ymekk changed the title Wrong Probe version being built Using Qt6 but Qt5 GammaRay version is being built Aug 7, 2023
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

3 participants