[QBS] unable to compile qbs under Ubuntu 11.10 with libqt4-dev package

Vladimir 'aLTer' Vladimirovich vladimir.alter at gmail.com
Fri Feb 17 04:33:39 CET 2012


Hello!

I was trying to build qbs, but failed with error.

$ make
cd src/lib/ && make -f Makefile
make[1]: Entering directory `/home/skylark/wc/qbs/src/lib'
g++ -c -m64 -pipe -O2 -fPIC -Wall -W -D_REENTRANT -DQT_CREATOR
-DQML_BUILD_STATIC_LIB -DBUILD_QTCONCURRENT -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64
-I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtScript
-I/usr/include/qt4 -Itools -I. -I../../src -I../../../qbs -Iparser
-Ibuildgraph -IQbs -Ilanguage -I. -o buildgraph.o
buildgraph/buildgraph.cpp
In file included from /usr/include/qt4/QtCore/QThreadStorage:1:0,
                 from buildgraph/buildgraph.h:57,
                 from buildgraph/buildgraph.cpp:38:
/usr/include/qt4/QtCore/qthreadstorage.h: In static member function
'static void QThreadStorage<T>::deleteData(void*) [with T =
QCache<qbs::BuildGraph*, QScriptEngine>]':
/usr/include/qt4/QtCore/qthreadstorage.h:136:43:   instantiated from
'QThreadStorage<T>::QThreadStorage() [with T =
QCache<qbs::BuildGraph*, QScriptEngine>]'
buildgraph/buildgraph.cpp:64:60:   instantiated from here
/usr/include/qt4/QtCore/qthreadstorage.h:133:7: error: invalid
conversion from 'void*' to 'int' [-fpermissive]
/usr/include/qt4/QtCore/qcache.h:134:8: error:   initializing argument
1 of 'QCache<Key, T>::QCache(int) [with Key = qbs::BuildGraph*, T =
QScriptEngine]' [-fpermissive]
/usr/include/qt4/QtCore/qthreadstorage.h:136:43:   instantiated from
'QThreadStorage<T>::QThreadStorage() [with T =
QCache<qbs::BuildGraph*, QScriptEngine>]'
buildgraph/buildgraph.cpp:64:60:   instantiated from here
/usr/include/qt4/QtCore/qthreadstorage.h:133:7: error: type 'class
QCache<qbs::BuildGraph*, QScriptEngine>' argument given to 'delete',
expected pointer
make[1]: *** [buildgraph.o] Error 1
make[1]: Leaving directory `/home/skylark/wc/qbs/src/lib'
make: *** [sub-src-lib-lib-pro-make_default-ordered] Error 2

I don't want to install/compile qt5 just to compile small qbs. Is
there any way to use qbs with qt4?



More information about the Qbs mailing list