Emulator Issues #13294open
Dolphin wont compile on Kubuntu 23.04
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: *** [Source/Core/DolphinQt/CMakeFiles/dolphin-emu.dir/build.make:3100: Binaries/dolphin-emu] Error 1
make: *** [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
AMD RX 6800
Updated by Luciosau92 5 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.
- export LD_LIBRARY_PATH=/home/username/Qt/6.5.1/gcc_64/lib/
- 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.