svalaskevicius / qtscriptgenerator

provide qt5 bindings for qtscript
http://gitorious.org/~svalaskevicius/qt-labs/svalaskevicius-qtscriptgenerator
Other
15 stars 8 forks source link

Build fails when compiling qtbindings #1

Open tinvaan opened 8 years ago

tinvaan commented 8 years ago

Following instructions in README, I get an error as following error when compiling qtbindings

~/devel/build/qtscriptgenerator/qtbindings (5.0 ✘)✭ ᐅ  qmake && make 
cd qtscript_core/ && ( test -e Makefile || /usr/bin/qmake-qt5 /home/harish/devel/build/qtscriptgenerator/qtbindings/qtscript_core/qtscript_core.pro -o Makefile ) && make -f Makefile 
make[1]: Entering directory '/home/harish/devel/build/qtscriptgenerator/qtbindings/qtscript_core'
make -f Makefile.Release all
make[2]: Entering directory '/home/harish/devel/build/qtscriptgenerator/qtbindings/qtscript_core'
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SCRIPT_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -I. -Iinclude -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtScript -isystem /usr/include/qt/QtConcurrent -isystem /usr/include/qt/QtCore -Irelease -I/usr/lib/qt/mkspecs/linux-g++ -o release/qtscript_QFuture.o ../../generated_cpp/com_trolltech_qt_core/qtscript_QFuture.cpp
In file included from ../../generated_cpp/com_trolltech_qt_core/qtscript_QFuture.cpp:7:0:
include/__package_shared.h:18:73: error: no member function ‘Create’ declared in ‘QtMetaTypePrivate::QMetaTypeFunctionHelper<QEvent, true>’
 inline void *QMetaTypeFunctionHelper<QEvent, true>::Create(const void *t)
                                                                         ^
../../generated_cpp/com_trolltech_qt_core/qtscript_QFuture.cpp:57:21: warning: ‘QScriptValue qtscript_QFuture_prototype_call(QScriptContext*, QScriptEngine*)’ defined but not used [-Wunused-function]
 static QScriptValue qtscript_QFuture_prototype_call(QScriptContext *context, QScriptEngine *)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile.Release:442: release/qtscript_QFuture.o] Error 1
make[2]: Leaving directory '/home/harish/devel/build/qtscriptgenerator/qtbindings/qtscript_core'
make[1]: *** [Makefile:42: release-all] Error 2
make[1]: Leaving directory '/home/harish/devel/build/qtscriptgenerator/qtbindings/qtscript_core'
make: *** [Makefile:49: sub-qtscript_core-make_first] Error 2

I'm using Qt version 5.7.0 provided by my distro. I'm on ArchLinux.

svalaskevicius commented 8 years ago

Hi! I haven't used this repo in quite a while, and iirc I've switched to https://github.com/svalaskevicius/qtjs-generator before really testing these changes (which hasn't been touched for a while too after reaching a "working experiment" phase!)

As you're interested in such functionality, would you like to take over the maintenance of any of the two?

svalaskevicius commented 8 years ago

Too add - there might be some config needed to make the new qt versions compatible - qtjs-generator should be more flexible for configuring though, just need to check if the new v8 hasn't changed too much and still works w/o major changes

tinvaan commented 8 years ago

So here's my usecase, I'm porting a project which needs these bindings in order to successfully import some qt extensions(viz. qt, qt.core and qt.xml).

I have plans to add qscriptgenerator(i.e your work, as there is no offical Qt5 release) as a dependency to the project, if it works as expected. That'd mean I'll be happy to take over the maintenance of any of the two projects that works for me - Ideally this one, as I'm guessing it'll likely involve less(er) porting headaches.

tinvaan commented 8 years ago

As far as qtjs-generator is concerned, I've encountered an issue when trying to test it : https://github.com/svalaskevicius/qtjs-generator/issues/24

JulienMaille commented 5 years ago

@harishnavnit Were you able to replace qtscriptgenerator with qtjs-generator or anything else Qt5 compatible?