Project

General

Profile

Actions

Emulator Issues #13294

closed

Dolphin wont compile on Kubuntu 23.04 - Tries to use Qt5 instead of Qt6

Added by Luciosau92 11 months ago. Updated about 2 months ago.

Status:
Working as intended
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Linux
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What's the problem? Describe what went wrong.
Dolphin wont compile on my Kubuntu 23.04 machine. The compile error I get is :
[100%] Linking CXX executable ../../../Binaries/dolphin-emu
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.4.2: undefined reference to `qRegisterNormalizedMetaType_QDBusArgument(QByteArray const&)@Qt_6'
collect2: error: ld returned 1 exit status
make[2]: *** [Source/Core/DolphinQt/CMakeFiles/dolphin-emu.dir/build.make:3100: Binaries/dolphin-emu] Error 1
make[1]: *** [CMakeFiles/Makefile2:2024: Source/Core/DolphinQt/CMakeFiles/dolphin-emu.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

I have attached my build.make, Makefile2 and Makefile files for reference.

What steps will reproduce the problem?
Follow the global build instructions from here after cloning repository and installing the listed dependencies. https://github.com/dolphin-emu/dolphin/wiki/Building-for-Linux

What are your PC specifications? (CPU, GPU, Operating System, more)

Intel Core i9 11900k
16GB RAM
AMD RX 6800
Kubuntu 23.04
oibaf ppa


Files

build.make (426 KB) build.make Luciosau92, 07/02/2023 02:43 PM
Makefile2 (230 KB) Makefile2 Luciosau92, 07/02/2023 02:44 PM
Makefile (41 KB) Makefile Luciosau92, 07/02/2023 02:45 PM
Actions #1

Updated by Luciosau92 11 months ago

I was able to fix this issue. KDE Plasma depends on QT5 currently and cmake was trying to use QT5 even though QT6 was installed. I installed QT6.5.1 from the QT website and added 2 environment variables to my bashrc file.

  1. export LD_LIBRARY_PATH=/home/username/Qt/6.5.1/gcc_64/lib/
  2. export PATH=/home/username/Qt/6.5.1/gcc_64/lib/cmake:$PATH

With these variables pointing to my custom QT6 install I was able to successfully compile, install and run dolphin.

Actions #2

Updated by Billiard26 about 2 months ago

  • Subject changed from Dolphin wont compile on Kubuntu 23.04 to Dolphin wont compile on Kubuntu 23.04 - Tries to use Qt5 instead of Qt6
Actions #3

Updated by Billiard26 about 2 months ago

  • Operating system Linux added
  • Operating system deleted (N/A)

Is this still a problem?

Actions #4

Updated by Luciosau92 about 2 months ago

Billiard26 wrote in #note-3:

Is this still a problem?

No it is not. I have also switched to fedora as my main distro so i guess you can close this issue. Thanks.

Actions #5

Updated by Billiard26 about 2 months ago

  • Status changed from New to Working as intended
Actions

Also available in: Atom PDF