[Development] How to build Qt5 out-of-source?

Loaden loaden at gmail.com
Sun May 13 10:41:34 CEST 2012


Here is the final error:

mv -f libxcb.so ../../../../plugins/platforms/
> make[3]: Leaving directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/plugins/platforms/xcb'
> make[2]: Leaving directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/plugins/platforms'
> make[1]: Leaving directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/plugins'
> + cd qtbase && make install
> cd src/tools/bootstrap/ && make -f Makefile install
> make[1]: Entering directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/bootstrap'
> make[1]: Nothing to be done for `install'.
> make[1]: Leaving directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/bootstrap'
> cd src/tools/moc/ && make -f Makefile install
> make[1]: Entering directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/moc'
> install -m 755 -p "../../../bin/moc"
> "/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/moc"
> install: `../../../bin/moc' and
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/moc' are the same file
> make[1]: [install_target] Error 1 (ignored)
> strip "/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/moc"
> make[1]: Leaving directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/moc'
> cd src/tools/rcc/ && make -f Makefile install
> make[1]: Entering directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/rcc'
> install -m 755 -p "../../../bin/rcc"
> "/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/rcc"
> install: `../../../bin/rcc' and
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/rcc' are the same file
> make[1]: [install_target] Error 1 (ignored)
> strip "/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/rcc"
> make[1]: Leaving directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/rcc'
> cd src/tools/qdoc/ && make -f Makefile install
> make[1]: Entering directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/qdoc'
> install -m 755 -p "../../../bin/qdoc"
> "/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/qdoc"
> install: `../../../bin/qdoc' and
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/qdoc' are the same file
> make[1]: [install_target] Error 1 (ignored)
> strip "/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/qdoc"
> make[1]: Leaving directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/qdoc'
> cd src/tools/uic/ && make -f Makefile install
> make[1]: Entering directory
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/src/tools/uic'
> install -m 755 -p "../../../bin/uic"
> "/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/uic"
> install: `../../../bin/uic' and
> `/home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin/uic' are the same file
> make[1]: [install_target] Error 1 (ignored)
>

2012/5/13 Loaden <loaden at gmail.com>

> In out-of-source build, I have to copy the 'build' and
> 'build.dependencies' from source directory into the build directory.
> Then these command lead failed with the log show below.
>
> #!/bin/bash
>>
>> export LANG=C
>>
>> unset QTDIR
>> export PATH="$PWD/../Qt5/qtbase/bin:$PATH"
>>
>> ../Qt5/configure -prefix $PWD/qtbase -opensource -confirm-license -fast
>> -nomake examples >>config.log 2>&1
>> ./build -j 2 >>build.log 2>&1
>>
>>
>> read -n1 -p "Press any key to continue..."
>>
>
> The error message:
>
>> Missing module qtlocation, ignored
>> Missing module qtwebkit, ignored
>> Missing module qtpim, ignored
>> Missing module qtimageformats, ignored
>> Missing module qtdeclarative, ignored
>> Missing module qlalr, ignored
>> Missing module qtquick1, ignored
>> Missing module qttranslations, ignored
>> Missing module qtwayland, ignored
>> Missing module qtqa, ignored
>> Missing module qtscript, ignored
>> Missing module qtfeedback, ignored
>> Missing module qtwebkit-examples-and-demos, ignored
>> Missing module qtconnectivity, ignored
>> Missing module qtxmlpatterns, ignored
>> Missing module qtsensors, ignored
>> Missing module qtdoc, ignored
>> Missing module qtmultimedia, ignored
>> Missing module qtdocgallery, ignored
>> Missing module qtgraphicaleffects, ignored
>> Missing module qtsvg, ignored
>> Missing module qt3d, ignored
>> Missing module qtjsbackend, ignored
>> Missing module qtjsondb, ignored
>> Missing module qtphonon, ignored
>> Missing module qttools, ignored
>> Missing module qtsystems, ignored
>> OS Name ........ linux
>> Verbose ........ no
>> Continue ....... no
>> Force qmake..... no
>> Jobs ........... 2
>> PATH
>> /home/loaden/qpSOFT/Projects/BuildQt5-2/qtbase/bin:/home/loaden/qpSOFT/Projects/BuildQt5-2/../Qt5/qtbase/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>> Modules to build:
>>     qtbase
>> build qtbase...
>> + cd qtbase && make -j 2
>>
>
>  It seems we can't use 'build' script, just only use make stuff.
> e.g.
>
>> #!/bin/bash
>>
>> export LANG=C
>>
>> unset QTDIR
>> export PATH="$PWD/../Qt5/qtbase/bin:$PATH"
>>
>> ../Qt5/configure -prefix $PWD/qtbase -opensource -confirm-license -fast
>> -nomake examples >>config.log 2>&1
>> make -j 2 >>build.log 2>&1
>>
>>
>> read -n1 -p "Press any key to continue..."
>>
>> Should works well for shadow build.
>
> 2012/5/12 Thiago Macieira <thiago.macieira at intel.com>
>
>> On sábado, 12 de maio de 2012 15.28.16, Loaden wrote:
>> > Hi, all!
>> > I want build Qt5 use out-of-source like this way, and final failed.
>>
>> What is this final that failed?
>>
>> Out-of-source buiding works for me, though not all the time. Sometimes
>> there
>> are issues that need fixing.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>  Software Architect - Intel Open Source Technology Center
>>     Intel Sweden AB - Registration Number: 556189-6027
>>     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
>>
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development
>>
>>
>
>
> --
> Please don't ask where I come from, It's a shame!
> Best Regards
> Yuchen
>
>


-- 
Please don't ask where I come from, It's a shame!
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120513/bf1c4e06/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BuildQt5-2.tar.gz
Type: application/x-gzip
Size: 95821 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120513/bf1c4e06/attachment.bin>


More information about the Development mailing list