Since you build tests, and call your build tree `qt-bug`, I’d suggest that you 
configure a developer-build that doesn’t need to be installed.

I.e. pass

-DFEATURE_developer_build=ON

to cmake, or use the `configure` script from qt5.git.

I don’t think anyone ever tested whether it’s possible to install a Qt build 
with all tests compiled.

Volker


> On 24 Jul 2025, at 14:11, Nuno Santos via Interest <[email protected]> 
> wrote:
> 
> I don’t see you checking out any specific version.
> 
> Which version of Qt do you want to build?
> 
> Let’s you want to build v5.15.9. You need to checkout that tag
> 
> git checkout v5.15.9
> 
> To see available tags, git tag —list
> 
> See if that helps
> 
> Best,
> 
> Nuno
> 
>> On 24 Jul 2025, at 12:46, Suhas Krishanamurthy 
>> <[email protected]> wrote:
>> 
>> I am trying to build qt source code from gerrit using below command and 
>> steps:
>> ssh://[email protected]:29418/qt/qt5.git
>> cd qt5/
>> perl init-repository
>> mkdir qt5-build
>> cd qt5-build
>> //configuration command 
>> cmake -G Ninja \
>>      -DCMAKE_BUILD_TYPE=Debug \
>>      -DFEATURE_developer_build=ON \
>>      -DQT_BUILD_TESTS_BY_DEFAULT=ON\
>>      -DQT_BUILD_TESTS=ON\
>>      -DQT_BUILD_EXAMPLES=OFF \
>>      -DQT_BUILD_DOCS=ON \
>>      -DQT_BUILD_QML_DOC=ON \
>>      -DCMAKE_INSTALL_PREFIX=/Volumes/QtSource/qt-bug \
>> /Volumes/QtSource/qt5
>> cmake --build . --parallel 4
>> cmake --install .
>> 
>> and i am getting the below error when i try to install.
>> -- Installing: 
>> /Volumes/QtSource/qt-bug/tests/auto/quickwidgets/qquickwidget/data/tapHandler.qml
>> CMake Error at qtdeclarative/tests/auto/qmlls/modules/cmake_install.cmake:46 
>> (file):
>>  file INSTALL cannot find
>>  "/Volumes/QtSource/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:62 (include)
>>  qtdeclarative/tests/auto/cmake_install.cmake:102 (include)
>>  qtdeclarative/tests/cmake_install.cmake:42 (include)
>>  qtdeclarative/cmake_install.cmake:560 (include)
>>  cmake_install.cmake:67 (include)
>> 
>> i am facing this issue from last few weeks. can anyone please help me to fix 
>> this error or please correct me if i am doing wrong.
>> 
>> _______________________________________________
>> Interest mailing list
>> [email protected]
>> https://lists.qt-project.org/listinfo/interest
> 
> 
> _______________________________________________
> Interest mailing list
> [email protected]
> https://lists.qt-project.org/listinfo/interest

_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to