Web lists-archives.com

Re: Generating QtScript bindings for Qt5




On terça-feira, 26 de julho de 2016 03:07:09 PDT R.Harish Navnit wrote:
> Hi,
> 
> In Qt4, we had qtscriptgenerator which helped in generating Qt
> bindings, which are needed to import qt extensions to QScriptEngine
> etc. However, AFAIK this hasn't made it to Qt5 or at least there, is
> no official release yet.
> 
> Can anyone point me to or show me how one can generate Qt script
> bindings in Qt5 ?

The same tool should work. QtScript API is unchanged in Qt 5.

> I have considered using some unofficial Qt5 ports[1][2] of
> qscriptgenerator, but I faced errors while compiling/building them
> from source and they seem to be unmaintained too, since quite some
> time now. I have duly reported them as issues against the relevant
> repos.[3]
> 
> What's the best fix/workaround to this ? Any suggestions ?

Build it with Qt 4. The library it links to has nothing to do with the input 
or output.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center