-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
CMake not spotting missing qtbase5-private-dev
#4273
Comments
I remember a discussion on Discord about this issue. We found that the problem is |
Here's the archive of the conversation that @lukas-w is talking about:
|
At the end, my proposal was to hack in a way to pick up the variables introduced by the parent project and not call |
@tresf We can certainly anticipate the need for private components LMMS-side. There shouldn't be a need to change anything within |
Can we work around this bug like this? IF(LMMS_BUILD_LINUX)
FIND_PACKAGE(Qt5Core COMPONENTS Private REQUIRED)
FIND_PACKAGE(Qt5 COMPONENTS X11Extras REQUIRED)
LIST(APPEND QT_LIBRARIES Qt5::X11Extras)
ELSE()
FIND_PACKAGE(Qt5 COMPONENTS Core REQUIRED)
ENDIF()
FIND_PACKAGE(Qt5 COMPONENTS Gui Widgets Xml REQUIRED) We should find the |
I also think we should eventually do that. If we do so, how about other submodules? Should we switch them to |
@PhysSong both proposals make sense to me. The first one can probably be commented with a
|
That's right. However, I think |
I just ran into this. Since this seems to be also caused by a missing package, should the corresponding Wiki pages with dependencies also updated? |
If the environment your building for is missing the instructions please feel free to edit the wiki to fix them or feel free to propose the change here. For example, in Ubuntu, it's in the VST section (not sure if that's the right place). |
I used Ubuntu, but did not install the things from the VST section as they seemed optional to me. So shell I change the section for that package? |
Sure, thanks. 🐚 Go ahead and bump it up to the main dependencies block if that's what you believe is required. Note, Qt5-downstream (from Ubuntu/Debian) repos don't offer the private headers by default and require the additional package however Qt5-upstream from Qt's website does, but this message still occurs when using Qt5-upstream due to the discussion above. Because of this, this building issue needs to remain open until we permanently fix this. A quick explanation is here above: #4273 (comment) |
Alright, done for Ubuntu. |
Still an issue it seems, but, since this thread exists, I at least knew which package to install. Thank you! |
Hi,
When trying to build LMMS on Debian Unstable, I got:
I opened an issue against qt5-x11embed. Finally, @lukas-w told me I was missing
qtbase5-private-dev
, that was indeed the problem, which should have been spotted by CMake in LMMS.The text was updated successfully, but these errors were encountered: