Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails when compiling qtbindings #1

Open
tinvaan opened this issue Jul 25, 2016 · 5 comments
Open

Build fails when compiling qtbindings #1

tinvaan opened this issue Jul 25, 2016 · 5 comments

Comments

@tinvaan
Copy link

tinvaan commented Jul 25, 2016

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

tinvaan commented Jul 25, 2016

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
Copy link
Author

tinvaan commented Jul 25, 2016

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

@JulienMaille
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants