---------- Forwarded message ----------
From: Nathan Coulson <[email protected]>
Date: Mon, Apr 4, 2011 at 11:41 PM
Subject: Problems compiling qtscript-qt (dependency of amarok 2.4)
To: BLFS Development List <[email protected]>, [email protected]


to compile it,  I used the following

export QTDIR=/usr

cd gemerator

qmake && make
./generator

cd ../qtbindings
qmake && make

[no install directions, but haven't got that far].

So far, tried the following variations:
from http://code.google.com/p/qtscriptgenerator/
-version 1.0, although had a few places I had to #include <stdio.h>
and <string.h>

and from http://qt.gitorious.org/qt-labs/qtscriptgenerator
- master, and 4.6


1.0 from http://code.google.com/p/qtscriptgenerator/ had the following changes
added #include <stdio.h> to parser/rpp/pp.h,
and had the following failure:

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_PHONON_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore
-I/usr/include/QtGui -I/usr/include/QtScript -I/usr/include/phonon
-I/usr/include -I. -I/usr/include/phonon_compat -Irelease -o
release/qtscript_BackendCapabilities.o
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:53:1:
error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> struct QMetaTypeId'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:53:1:
error:   expected a type, got 'ObjectDescription'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:54:1:
error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> class QList'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:54:1:
error:   expected a type, got 'ObjectDescription'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:54:1:
error: template argument 1 is invalid
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:
In function 'QScriptValue
qtscript_BackendCapabilities_static_call(QScriptContext*,
QScriptEngine*)':
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:73:40:
error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> class QList'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:73:40:
error:   expected a type, got 'ObjectDescription'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:73:52:
error: invalid type in declaration before '=' token
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:73:109:
error: cannot convert
'QList<Phonon::ObjectDescription<(Phonon::ObjectDescriptionType)5u> >'
to 'int' in initialization
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:108:40:
error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> class QList'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:108:40:
error:   expected a type, got 'ObjectDescription'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:108:52:
error: invalid type in declaration before '=' token
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:108:112:
error: cannot convert
'QList<Phonon::ObjectDescription<(Phonon::ObjectDescriptionType)5u> >'
to 'int' in initialization
In file included from /usr/include/QtScript/QScriptEngine:1:0,
                from
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:1:
/usr/include/QtScript/qscriptengine.h: In function 'QScriptValue
qScriptValueFromSequence(QScriptEngine*, const Container&) [with
Container = int]':
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:74:69:
 instantiated from here
/usr/include/QtScript/qscriptengine.h:416:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:417:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:416:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:417:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
make[2]: *** [release/qtscript_BackendCapabilities.o] Error 1
make[2]: *** [release/qtscript_BackendCapabilities.o] Error 1
make[2]: Leaving directory
`/mnt/raid5/book/blfs/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_phonon'
make[1]: *** [release] Error 2
make[1]: Leaving directory
`/mnt/raid5/book/blfs/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_phonon'
make: *** [sub-qtscript_phonon-make_default] Error 2


4.6 from http://qt.gitorious.org/qt-labs/qtscriptgenerator gives the
following error

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore
-I/usr/include/QtGui -I/usr/include/QtScript -I/usr/include -I.
-Irelease -o release/qtscript_Qt.o
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp: In function
'QScriptValue qtscript_Qt_WindowFlags_toString(QScriptContext*,
QScriptEngine*)':
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp:823:90:
warning: comparison between signed and unsigned integer expressions
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp: In function
'QScriptValue qtscript_construct_Qt_KeyboardModifier(QScriptContext*,
QScriptEngine*)':
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp:3089:55:
warning: comparison between signed and unsigned integer expressions
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp: In function
'QScriptValue qtscript_Qt_KeyboardModifiers_toString(QScriptContext*,
QScriptEngine*)':
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp:3171:102:
warning: comparison between signed and unsigned integer expressions
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp: In function
'QScriptValue qtscript_Qt_InputMethodHints_toString(QScriptContext*,
QScriptEngine*)':
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp:3601:100:
warning: comparison between signed and unsigned integer expressions
In file included from /usr/include/QtScript/qscriptengine.h:27:0,
                from /usr/include/QtScript/QScriptEngine:1,
                from
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp:1:
/usr/include/QtCore/qmetatype.h: In static member function 'static int
QMetaTypeId2<T>::qt_metatype_id() [with T = Qt::GestureType]':
/usr/include/QtCore/qmetatype.h:230:44:   instantiated from 'int
qMetaTypeId(T*) [with T = Qt::GestureType]'
/usr/include/QtCore/qvariant.h:579:55:   instantiated from 'T
qvariant_cast(const QVariant&) [with T = Qt::GestureType]'
../../generated_cpp/com_trolltech_qt_core/qtscript_Qt.cpp:440:59:
instantiated from here
/usr/include/QtCore/qmetatype.h:169:80: error: 'qt_metatype_id' is not
a member of 'QMetaTypeId<Qt::GestureType>'
make[2]: *** [release/qtscript_Qt.o] Error 1
make[2]: Leaving directory
`/mnt/raid5/book/blfs/qt-labs-qtscriptgenerator/qtbindings/qtscript_core'
make[1]: *** [release] Error 2
make[1]: Leaving directory
`/mnt/raid5/book/blfs/qt-labs-qtscriptgenerator/qtbindings/qtscript_core'
make: *** [sub-qtscript_core-make_default] Error 2
root:/mnt/raid5/book/blfs/qt-labs-qtscriptgenerator/q
'qt_metatype_id' is not a member of 'QMetaTypeId<Qt::GestureType>'

master from http://qt.gitorious.org/qt-labs/qtscriptgenerator

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_PHONON_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore
-I/usr/include/QtGui -I/usr/include/QtScript -I/usr/include/phonon
-I/usr/include -I. -I/usr/include/phonon_compat -Irelease -o
release/qtscript_BackendCapabilities.o
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:68:1:
error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> struct QMetaTypeId'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:68:1:
error:   expected a type, got 'ObjectDescription'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:69:1:
error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> class QList'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:69:1:
error:   expected a type, got 'ObjectDescription'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:69:1:
error: template argument 1 is invalid
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:
In function 'QScriptValue
qtscript_BackendCapabilities_static_call(QScriptContext*,
QScriptEngine*)':
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:88:40:
error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> class QList'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:88:40:
error:   expected a type, got 'ObjectDescription'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:88:52:
error: invalid type in declaration before '=' token
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:88:109:
error: cannot convert
'QList<Phonon::ObjectDescription<(Phonon::ObjectDescriptionType)5u> >'
to 'int' in initialization
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:123:40:
error: type/value mismatch at argument 1 in template parameter list
for 'template<class T> class QList'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:123:40:
error:   expected a type, got 'ObjectDescription'
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:123:52:
error: invalid type in declaration before '=' token
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:123:112:
error: cannot convert
'QList<Phonon::ObjectDescription<(Phonon::ObjectDescriptionType)5u> >'
to 'int' in initialization
In file included from /usr/include/QtScript/QScriptEngine:1:0,
                from
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:1:
/usr/include/QtScript/qscriptengine.h: In function 'QScriptValue
qScriptValueFromSequence(QScriptEngine*, const Container&) [with
Container = int]':
../../generated_cpp/com_trolltech_qt_phonon/qtscript_BackendCapabilities.cpp:89:69:
 instantiated from here
/usr/include/QtScript/qscriptengine.h:416:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:417:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:416:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:417:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
/usr/include/QtScript/qscriptengine.h:418:40: error: 'int' is not a
class, struct, or union type
make[2]: *** [release/qtscript_BackendCapabilities.o] Error 1
make[2]: Leaving directory
`/mnt/raid5/book/blfs/qt-labs-qtscriptgenerator/qtbindings/qtscript_phonon'
make[1]: *** [release] Error 2
make[1]: Leaving directory
`/mnt/raid5/book/blfs/qt-labs-qtscriptgenerator/qtbindings/qtscript_phonon'
make: *** [sub-qtscript_phonon-make_default] Error 2


(My Apologies, posted to the dev list by mistake)

--
Nathan Coulson (conathan)
------
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com



-- 
Nathan Coulson (conathan)
------
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to