t-artistik / qtscriptgenerator

Automatically exported from code.google.com/p/qtscriptgenerator
0 stars 0 forks source link

qtscriptshell_QFutureIterator.cpp fails to compile. #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Got source from git
2. Tried to compile it

What is the expected output? What do you see instead?

It should compile fine, instead I got:

x86_64-pc-linux-gnu-g++ -c -pipe -march=core2 -msse4.1 -O2 -pipe -fomit-
frame-pointer -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++ -
I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/
QtScript -I/usr/include/qt4 -I. -Irelease -I. -o release/
qtscriptshell_QFutureIterator.o ../../generated_cpp/com_trolltech_qt_core/
qtscriptshell_QFutureIterator.cpp                                               

../../generated_cpp/com_trolltech_qt_core/
qtscriptshell_QFutureIterator.cpp: In constructor 
‘QtScriptShell_QFutureIterator::QtScriptShell_QFutureIterator
()’:                                                                          

../../generated_cpp/com_trolltech_qt_core/
qtscriptshell_QFutureIterator.cpp:10: error: no matching function for call 
to ‘QFutureIterator<QScriptValue>::QFutureIterator
()’                                                                           

/usr/include/qt4/QtCore/qfuture.h:191: note: candidates are: 
QFutureIterator<T>::QFutureIterator(const QFuture<T>&) [with T = 
QScriptValue]                                                                   

/usr/include/qt4/QtCore/qfuture.h:191: note:                 
QFutureIterator<QScriptValue>::QFutureIterator(const 
QFutureIterator<QScriptValue>&)                                                 

make[2]: *** [release/qtscriptshell_QFutureIterator.o] Błąd 1
make[2]: Opuszczenie katalogu `/var/tmp/portage/x11-libs/
qtscriptgenerator-9999/work/qtscriptgenerator-9999/qtbindings/
qtscript_core'
make[1]: *** [release] Błąd 2
make[1]: Opuszczenie katalogu `/var/tmp/portage/x11-libs/
qtscriptgenerator-9999/work/qtscriptgenerator-9999/qtbindings/
qtscript_core'
make: *** [sub-qtscript_core-make_default] Błąd 2

What version of the product are you using? On what operating system?

Latest git, gentoo, qt 4.5 final

Original issue reported on code.google.com by Mieszkoslusarczyk on 9 Mar 2009 at 11:30

Attachments:

GoogleCodeExporter commented 8 years ago
I'm getting the same error. Not using the git version (instead I'm using
qtscriptgenerator-src-0.1.0.tar.gz), and I'm using Qt 4.5 (Fedora 10).

[eelko@eelko qtbindings]$ qmake-qt4 && make
cd qtscript_core/ && /usr/bin/qmake-qt4 qtscript_core.pro -unix -o Makefile
cd qtscript_core/ && make -f Makefile
make[1]: Entering directory
`/home/eelko/Software/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_core'
make -f Makefile.Release
make[2]: Entering directory
`/home/eelko/Software/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_core'
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/main.o 
../../generated_cpp/com_trolltech_qt_core/main.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscript_QFuture.o
../../generated_cpp/com_trolltech_qt_core/qtscript_QFuture.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscript_QFutureIterator.o
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureIterator.cpp
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureIterator.cpp:45: 
warning:
‘QScriptValue qtscript_QFutureIterator_prototype_call(QScriptContext*,
QScriptEngine*)’ defined but not used
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscript_QFutureSynchronizer.o
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureSynchronizer.cpp
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureSynchronizer.cpp:45:
warning: ‘QScriptValue 
qtscript_QFutureSynchronizer_prototype_call(QScriptContext*,
QScriptEngine*)’ defined but not used
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscript_QFutureSynchronizerVoid.o
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureSynchronizerVoid.cpp
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureSynchronizerVoid.cpp:4
5:
warning: ‘QScriptValue
qtscript_QFutureSynchronizerVoid_prototype_call(QScriptContext*, 
QScriptEngine*)’
defined but not used
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscript_QFutureVoid.o
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureVoid.cpp
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureVoid.cpp:47: warning:
‘QScriptValue qtscript_QFutureVoid_prototype_call(QScriptContext*, 
QScriptEngine*)’
defined but not used
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscript_QFutureWatcher.o
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureWatcher.cpp
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureWatcher.cpp:45: 
warning:
‘QScriptValue qtscript_QFutureWatcher_prototype_call(QScriptContext*,
QScriptEngine*)’ defined but not used
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscript_QFutureWatcherVoid.o
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureWatcherVoid.cpp
../../generated_cpp/com_trolltech_qt_core/qtscript_QFutureWatcherVoid.cpp:45:
warning: ‘QScriptValue 
qtscript_QFutureWatcherVoid_prototype_call(QScriptContext*,
QScriptEngine*)’ defined but not used
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscriptshell_QFuture.o
../../generated_cpp/com_trolltech_qt_core/qtscriptshell_QFuture.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtScript 
-I/usr/include -I.
-Irelease -I. -o release/qtscriptshell_QFutureIterator.o
../../generated_cpp/com_trolltech_qt_core/qtscriptshell_QFutureIterator.cpp
../../generated_cpp/com_trolltech_qt_core/qtscriptshell_QFutureIterator.cpp: In
constructor 
‘QtScriptShell_QFutureIterator::QtScriptShell_QFutureIterator()’:
../../generated_cpp/com_trolltech_qt_core/qtscriptshell_QFutureIterator.cpp:10:
error: no matching function for call to
‘QFutureIterator<QScriptValue>::QFutureIterator()’
/usr/include/QtCore/qfuture.h:191: note: candidates are:
QFutureIterator<T>::QFutureIterator(const QFuture<T>&) [with T = QScriptValue]
/usr/include/QtCore/qfuture.h:191: note:                
QFutureIterator<QScriptValue>::QFutureIterator(const 
QFutureIterator<QScriptValue>&)
make[2]: *** [release/qtscriptshell_QFutureIterator.o] Error 1
make[2]: Leaving directory
`/home/eelko/Software/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_core'
make[1]: *** [release] Error 2
make[1]: Leaving directory
`/home/eelko/Software/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_core'
make: *** [sub-qtscript_core-make_default] Error 2

Original comment by kaboon@gmail.com on 10 Mar 2009 at 10:17

GoogleCodeExporter commented 8 years ago
Btw, I am getting the same error with the latest SVN version (r889) too.

Original comment by kaboon@gmail.com on 10 Mar 2009 at 10:30

GoogleCodeExporter commented 8 years ago
Svn is deprcaed, and will be removed soon, try git:
git://labs.trolltech.com/qtscriptgenerator

Original comment by Mieszkoslusarczyk on 10 Mar 2009 at 10:45

GoogleCodeExporter commented 8 years ago
If you get the qfutureiterator error I believe that just means you need to set 
QTDIR
before running generator. Note that generator should say that its generated 
400-500
classes when it finishes, not just 7. :)

Original comment by ian.mon...@gmail.com on 10 Mar 2009 at 12:54

GoogleCodeExporter commented 8 years ago
ditto here, Fedora-10, qt-4.5.0, x86_64.  setting QTDIR makes no difference.

Original comment by rdieter@gmail.com on 10 Mar 2009 at 2:16

GoogleCodeExporter commented 8 years ago
OK, seems the build fails for anyone using qt built with custom -headerdir 
and/or
-libdir that doesn't match QTDIR/include QTDIR/lib

Original comment by rdieter@gmail.com on 10 Mar 2009 at 2:26

GoogleCodeExporter commented 8 years ago
In particular, generator/main.h hard-codes QTDIR/include

Original comment by rdieter@gmail.com on 10 Mar 2009 at 2:31

GoogleCodeExporter commented 8 years ago
(sorry for the spam, but)... workaround:  set INCLUDE env var pointing to qt's 
notion of headerdir (for example, on fedora, INCLUDE=/usr/include)

Original comment by rdieter@gmail.com on 10 Mar 2009 at 2:33

GoogleCodeExporter commented 8 years ago
Comment #8 indeed works perfectly fine for me, thanks. :)

Original comment by kaboon@gmail.com on 10 Mar 2009 at 3:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Comment 4 solved my problem. I had the same issue, running Kubuntu 8.10

I set $QTDIR multiple times, and it never seemed to recognize it, so 
eventually, I
just did the following:

./generate --include-paths=$QTDIR

and it worked fine, generating the 100s of files.

Original comment by chaines51@gmail.com on 23 Mar 2009 at 5:04

GoogleCodeExporter commented 8 years ago
i have fedora 10, here is how i solved it
export QTDIR=/usr/lib/qt4
export INCLUDE=/usr/include

instead of qmake i used qmake-qt4

Original comment by CKu...@gmail.com on 7 Apr 2009 at 9:09

GoogleCodeExporter commented 8 years ago
I tried compiling via the instructions on Kubuntu 9.04 and the qtbindings qmake 
&&
make stage was erroring out as in this report.

I exported QTDIR  (export QTDIR=/usr/lib/qt4) and INCLUDE as suggested in some 
of the
comments but got nowhere. Eventually running "generator" as follows

export INCLUDE=/usr/include/qt4
./generator

OR optionally, do not export INCLUDE and just run
./generator --include-paths=/usr/include/qt4

I believe the comment at #11 should be:
./generator --include-paths=/usr/include/qt4
rather than QTDIR - I don't think exporting QTDIR does anything really.

This resulted in the following output:

Classes in typesystem: 522
Generated:
  - classes...: 503 (501)
  - header....: 339 (337)
  - impl......: 339 (337)
  - modules...: 10 (10)
  - pri.......: 10 (10)

Done, 3 warnings (848 known issues)

Before I was getting "Classes : 7 .... etc etc"

Once that was done, the qtbindings qmake && make error'd out at the phonon 
stage,
which is another issue but I'll note it here for completeness.

The solution for that was to find the Qt4 phonon package in Kubuntu, which is
unhelpfully called libphonon4 (all the others are called libqt4-xxxx) in 
Jaunty. I
believe that is renamed in Karmic to libqt4-phonon
The phonon stage kept erroring out, I realised that the phonon dev package need 
to be
installed (libphonon-dev in Jaunty). After this was installed the qtbindings 
qmake &&
make stage then ended successfully.

I noticed /usr/include/qt4/phonon is a symlink to /usr/include/phonon which 
obviously
helps with path issues

qtscriptgenerator source was via Git for this little adventure.

Hope this helps others out who have tried and failed on Jaunty :)

Original comment by james.el...@gmail.com on 24 May 2009 at 5:35

GoogleCodeExporter commented 8 years ago
comment 13 fixed it for me on ubuntu 9.10

Original comment by benk...@gmail.com on 19 Mar 2010 at 3:46

GoogleCodeExporter commented 8 years ago
small addition to previous comment. I had to create the following symlink
/usr/include/qt4/phonon to /usr/include/qt4/QtPhonon

Original comment by benk...@gmail.com on 19 Mar 2010 at 4:07

GoogleCodeExporter commented 8 years ago
./generator --include-paths=$QTDIR/lib

Mac OS X 10.6, qt 4.7.1 installed with Homebrew, qtscript from git. No success 
with qtscript 0.1.0.

Original comment by ska...@gmail.com on 18 Jan 2011 at 12:40