![]() |
|
Could NOT find QT (missing: QT_DIR) - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Support (https://forums.dolphin-emu.org/Forum-support) +--- Thread: Could NOT find QT (missing: QT_DIR) (/Thread-could-not-find-qt-missing-qt-dir) Pages:
1
2
|
Could NOT find QT (missing: QT_DIR) - GenerationI - 10-31-2022 Sorry to trouble you again, but I can't find an answer anywhere to this problem. When building 5.0-17764 in Linux Mint 20.3 this morning, I found it needed Qt 5.15 (which isn't available in 20.3). I installed Linux Mint 21 which has it, but when executing "cmake .." it fails because it cannot find Qt5. My problem is, which of all the many Qt5 paths should I set QT_DIR to? Is there any particular Qt5 related dependency that I should install? I have the following ones at present: libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5svg5 libqt5widgets5 There are dozens of others in the repository, but I know almost nothing about Qt and I would appreciate any help at all. Thank you. RE: Could NOT find QT (missing: QT_DIR) - mbc07 - 10-31-2022 AFAICT Dolphin fully switched to Qt6 on 5.0-16393, so unless you're trying to build Dolphin versions older than that, I don't think installing any of those Qt5 packages will help fixing the building process on your machine... RE: Could NOT find QT (missing: QT_DIR) - GenerationI - 10-31-2022 (10-31-2022, 02:47 PM)mbc07 Wrote: AFAICT Dolphin fully switched to Qt6 on 5.0-16393, so unless you're trying to build Dolphin versions older than that, I don't think installing any of those Qt5 packages will help fixing the building process on your machine... Yes, I see now that Qt6 is included in the submodules, so I probably didn't need to upgrade to Linux Mint 21. I will study the build process more carefully. Thank you for your reply. RE: Could NOT find QT (missing: QT_DIR) - KHg8m3r - 11-01-2022 You should install qt6-base-dev and qt6-base-private-dev RE: Could NOT find QT (missing: QT_DIR) - GenerationI - 11-01-2022 (11-01-2022, 03:41 AM)KHg8m3r Wrote: You should install qt6-base-dev and qt6-base-private-dev Thank you very much! That solved the problem; I've now built 5.0-17772 successfully. I'll add them to my list of dependencies. RE: Could NOT find QT (missing: QT_DIR) - JosJuice - 11-01-2022 (10-31-2022, 02:47 PM)mbc07 Wrote: AFAICT Dolphin fully switched to Qt6 on 5.0-16393, so unless you're trying to build Dolphin versions older than that, I don't think installing any of those Qt5 packages will help fixing the building process on your machine... Dolphin still supports building with Qt 5. (10-31-2022, 05:11 PM)GenerationI Wrote: Yes, I see now that Qt6 is included in the submodules, so I probably didn't need to upgrade to Linux Mint 21. I will study the build process more carefully. Thank you for your reply. The submodule contains a precompiled Qt for Windows. It won't help on other operating systems. RE: Could NOT find QT (missing: QT_DIR) - GenerationI - 11-01-2022 (11-01-2022, 05:18 AM)JosJuice Wrote: Dolphin still supports building with Qt 5. Perhaps it would have worked with Qt 5.15, but it stopped working with Qt 5.12 because of this error: ‘class QComboBox’ has no member named ‘setPlaceholderText’ 108 | m_search_address->setPlaceholderText(tr("Search Address")); | ^~~~~~~~~~~~~~~~~~ Migrating to Linux Mint 21 required a complete reinstallation, and I may have misssed out a dependency at first which was included in a later attempt. Still, having Qt6 and Mint 21 should future-proof my build environment for a while and give me more time to learn how everything works; then I may be better able to solve these problems myself. It is interesting to know that the precompiled Qt is for Windows only. (I stopped using Windows 10 for Dolphin because I found it sometimes caused network latency for the BBA, which I use a lot.) RE: Could NOT find QT (missing: QT_DIR) - Bladeforce - 11-07-2022 I am getting this error too after upgrading to KDE Neon 22.04 Could NOT find QT (missing: QT_DIR) even though i have QT 5.15.7 I am wondering if this is a similar issue to what puNES had and solved here: https://github.com/punesemu/puNES/issues/239#issuecomment-1304874580 RE: Could NOT find QT (missing: QT_DIR) - GenerationI - 11-07-2022 Have you got pkg-config installed? (Just a longshot - I'm new and not a developer.) RE: Could NOT find QT (missing: QT_DIR) - KHg8m3r - 11-09-2022 @bladeforce: If you just did a system update, you might want to remove your build folder `rm -rf <build_folder>`, then rerun cmake since your system build packages have changed. If that doesn't help, try updating to qt6 (your packages should be named the same as the ones I mentioned earlier). |