Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.1
-
None
-
Kubuntu 20.04 with CMake version 3.16.3
-
-
7be143f43849dc9a6917d4165a7ec459f53983b8 (qt/qtbase/dev) ab91acb96193f1dfbb0cfcee9874a711ab109a53 (qt/qtbase/6.2)
Description
Installed by official Online Installer sources of Qt 6.2.1 failed to install after successful build.
I do
./configure -nomake tests -nomake examples -skip qttest -skip qtwebengine -skip qtwebview -skip qtpositioning -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtnfc -skip qtcharts -skip qt3d -skip qtwayland -skip qtcoap -skip qtdatavis3d -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtquick3d -skip qtquicktimeline -skip qtremoteobjects -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebsockets -release -shared -skip qt5compat -skip qtdoc -skip qtscxml -skip qttranslations -skip qttools
Then
cmake --build . --parallel
Build is successful.
But
cmake --install .
Failed with removed moc executable.
The reason is in install scripts, that have
file(RPATH_CHECK FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/./libexec/moc" RPATH "\$ORIGIN/../lib")
But actual RPATH in binaries after build in my case is
::::::::::::::
And RPATH_CHECK deletes moc, and installation fails.
I'm on Kubuntu 20.04 with CMake version 3.16.3.
Not sure, don't remember, I did a lot of builds, but latest CMake release do the same with your projects, as I remember.
Attachments
Issue Links
- is duplicated by
-
QTBUG-97567 file INSTALL cannot find "/home/anon/Library/qt6.2/qtbase/libexec/moc": No such file or directory
- Closed
-
QTBUG-96061 Reconfiguring a top-level build without an explicit prefix turns it into a non-prefix build
- Closed