CMake Error: Missing DEPENDENCIES File During make install for qtdeclarative/tests/auto/qmlls
-
Hi all,
I'm trying to build and install the Qt dev source code from Git (dev branch). Everything builds fine, but the final make install step fails with the following error:
CMake Error at qtdeclarative/tests/auto/qmlls/modules/cmake_install.cmake:51 (file): file INSTALL cannot find "/home/ubuntuthinkpad/Suhas/qt-sourceCode/qt5/qtdeclarative/tests/auto/qmlls/modules/DEPENDENCIES": No such file or directory. Call Stack (most recent call first): qtdeclarative/tests/auto/qmlls/cmake_install.cmake:67 (include) qtdeclarative/tests/auto/cmake_install.cmake:107 (include) qtdeclarative/tests/cmake_install.cmake:47 (include) qtdeclarative/cmake_install.cmake:557 (include) cmake_install.cmake:72 (include)
-
It's all documented here and it works out of the box.
I personally don't use-skip
. I explicitly select the submodules I want to build.
I always build w/o prefix into directories outside the source tree. E.g. like that:../dev/configure -developer-build -xcb -nomake examples -make tests -submodules qtdeclarative ninja
-
Which Qt version exactly? You say dev branch which suggests newest, but then your folder is named Qt 5.
What commands did you run, did you follow some compilation guide? -
The missing DEPENDECIES isn't part of the sources, it never has been.
-
Which Qt version exactly? You say dev branch which suggests newest, but then your folder is named Qt 5.
What commands did you run, did you follow some compilation guide?@sierdzio said in CMake Error: Missing DEPENDENCIES File During make install for qtdeclarative/tests/auto/qmlls:
your folder is named Qt 5.
To be fair, that's the name of our top-level git repo for Qt 6: https://github.com/qt/qt5
-
I am building Qt 6.11 from the dev branch using Gerrit, not the official GitHub mirror. I am cloning the Qt source code into a qt5 directory and using the following configure command to set up the build:
../configure -prefix /home/ubuntuthinkpad/Suhas/qt-sourceCode/qt-fix -skip qttranslations -skip qt3d -skip qtandroidextras -skip webkit -skip qtwebengine -skip qtopcua -skip qtwebview -skip qtmultimedia -skip qtspeech -skip qtnetworkauth -skip qtwayland -skip qtpdf -skip qtgrpc -nomake examples -xcb -bundled-xcb-xinput -developer-build -- -DQT_BUILD_TESTS_BY_DEFAULT=ON -DQT_BUILD_TESTS=ON -DQT_FEATURE_openssl=ON
The configuration and build steps complete successfully. However, when I run the installation step with:
cmake --install .
The above error came when I ran cmake install command.
-
I can't reproduce this error on my PC and it also doesn't happen in our CI.
Out of interest: Why do you configure a developer build with a prefix? My personal use case of a developer build (which I literally use every day) is to build without prefix.- Have you seen this error before, i.e. with an earlier Qt version?
- What's your git HEAD at toplevel (i.e. in the qt5 directory) and in the qtdeclarative subdirectory?
The following hammer-fix should allow you to build without flaws. It basically wipes your build tree and resets the repository to the latest stable submodule update. The latter will destructively remove any changes you might have done in the source code. It cleans up the declarative subdirectory explicitly to make sure no DEPENDENCIES files are dangling around.
rm -rf /home/ubuntuthinkpad/Suhas/qt-sourceCode/qt-fix/*
cd /home/ubuntuthinkpad/Suhas/qt-sourceCode/qtdeclarative
git clean -fdx && git reset --hard
cd .. && git submodule update --recursive
-
@Axel-Spoerl I haven't seen this error before.
This is the HEAD 8f474fae0f after using these command and can you share the configure command to build the source code also can you Please guide the complete build process and commands. -
It's all documented here and it works out of the box.
I personally don't use-skip
. I explicitly select the submodules I want to build.
I always build w/o prefix into directories outside the source tree. E.g. like that:../dev/configure -developer-build -xcb -nomake examples -make tests -submodules qtdeclarative ninja
-