[Qt-interest] problem in building git version
Lorenzo Bettini
bettini at dsi.unifi.it
Tue Mar 9 15:01:01 CET 2010
Thiago Macieira wrote:
> Em Segunda-feira 8. Março 2010, às 23.51.28, Lorenzo Bettini escreveu:
>> Hi
>>
>> when trying to build the 4.7 git version of qt, after running configure
>> (in a shadow build directory) I get this error
>>
>> cd src/tools/moc/ && make -f Makefile
>> make[1]: Entering directory
>> `/home/bettini/install/qt-git/build/src/tools/moc'
>> qmake
>> QMAKE_ABSOLUTE_SOURCE_PATH=/home/bettini/install/qt-git/qt/src/tools/moc
>> -spec /home/bettini/install/qt-git/qt/mkspecs/linux-g++ -o Makefile
>> /home/bettini/install/qt-git/qt/src/tools/moc/moc.pro
>> /home/bettini/install/qt-git/build/.qmake.cache:2: Unknown replace
>> function: quote
>> /home/bettini/install/qt-git/build/.qmake.cache:3: Unknown replace
>> function: quote
>> Project LOAD(): Feature qt_config cannot be found.
>> make[1]: *** [Makefile] Error 3
>> make[1]: Leaving directory
>> `/home/bettini/install/qt-git/build/src/tools/moc'
>> make: *** [sub-moc-make_default-ordered] Error 2
>>
>> is it a known issue?
>
> Yes. Note how it ran the "qmake" command, instead of the full path to the
> qmake that you've just built.
>
> Please ensure you're building the 4.7 branch, not the master branch. The
> master branch has been frozen for two weeks to ensure people switch properly
> to the 4.7 one. And this bug is known in master, but is fixed in 4.7.
I tried yesterday the 4.7 and 4.7-stable branch on another computer and
the problem was still there...
today I tried on another computer and the right qmake seems to be called...
then I experienced this problem
/home/bettini/install/qt-git/build/bin/qmake
QMAKE_ABSOLUTE_SOURCE_PATH=/home/bettini/install/qt-git/qt/src/imports/widgets
-spec /home/bettini/install/qt-git/qt/mkspecs/linux-g++ -o Makefile
/home/bettini/install/qt-git/qt/src/imports/widgets/widgets.pro
WARNING: qimportbase.pri:25: Unable to find file for inclusion
../../qt_targets.pri
WARNING: copy2build: Cannot access directory
'/usr/local/Trolltech/Qt-4.7.0/imports/Qt/widgets'
make[2]: Leaving directory
`/home/bettini/install/qt-git/build/src/imports/widgets'
make[2]: Entering directory
`/home/bettini/install/qt-git/build/src/imports/widgets'
cp -f /home/bettini/install/qt-git/qt/src/imports/widgets/qmldir
/usr/local/Trolltech/Qt-4.7.0/imports/Qt/widgets/qmldir
cp: cannot create regular file
`/usr/local/Trolltech/Qt-4.7.0/imports/Qt/widgets/qmldir': No such file
or directory
make[2]: *** [/usr/local/Trolltech/Qt-4.7.0/imports/Qt/widgets/qmldir]
Error 1
make[2]: Leaving directory
`/home/bettini/install/qt-git/build/src/imports/widgets'
make[1]: *** [sub-widgets-make_default] Error 2
make[1]: Leaving directory `/home/bettini/install/qt-git/build/src/imports'
make: *** [sub-imports-make_default-ordered] Error 2
which seems to be due to the fact that during compiling the install
directory is being created and of course, since I compile it as
NON-root, I get permission denied errors... now I used the -prefix into
my home directory and it looks like it is being compiled fine...
but this looks like another issue/bug, isn't it?
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
More information about the Qt-interest-old
mailing list