LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   no uitools in qtscriptgenerator?? (http://www.linuxquestions.org/questions/slackware-14/no-uitools-in-qtscriptgenerator-4175439673/)

_ZeD_ 12-02-2012 06:48 AM

no uitools in qtscriptgenerator??
 
Hi

I had problems with some amarok scripts; debugging a "modified" copy of the "Script console" script (the only difference is the add of a try/catch) I found I missed some libraries

Code:

try {
    Importer.loadQtBinding( "qt.uitools" );
}
catch (e) {
    Amarok.alert(e);
}

(the error message I see is "Error: Unable to import qt.uitools: no such extension")

These extensions are supposed to be offered by the qtscriptgenerator, but if I list the files in the package I see

Code:

$ grep so /var/log/packages/qtscriptgenerator-0.2.0-x86_64-1
usr/lib64/qt/plugins/script/libqtscript_gui.so.1.0.0
usr/lib64/qt/plugins/script/libqtscript_sql.so.1.0.0
usr/lib64/qt/plugins/script/libqtscript_xml.so.1.0.0
usr/lib64/qt/plugins/script/libqtscript_network.so.1.0.0
usr/lib64/qt/plugins/script/libqtscript_opengl.so.1.0.0
usr/lib64/qt/plugins/script/libqtscript_svg.so.1.0.0
usr/lib64/qt/plugins/script/libqtscript_core.so.1.0.0
$

there are a bunch of libraries, but no uitools.

I think the qtscriptgenerator is someway "out of sync" with the qt libraries.
Digging through the slackware logs (mixed from slackware 14/13.37, I hope I did not messed all), I see

Code:

Thu Aug 30 23:35:53 UTC 2012
l/qt-4.8.2-x86_64-4.txz: Rebuilt.
[....]
Thu Apr 5 21:15:52 UTC 2012
l/qtscriptgenerator-0.2.0-x86_64-1.txz: Upgraded.
[....]
Sun Mar 27 08:28:47 UTC 2011
l/qt-4.7.0_7abde40-x86_64-3.txz:  Rebuilt.

It's just a speculation, but I think qtscriptgenerator has been run over qt 4.7 and maybe the uitools module was not exported or something like that.

Honesty I'm not expert in this qtscript thing, so, maybe someone has some idea on what happened on my system? or how can i have this extension module?

knudfl 12-02-2012 09:15 AM

Some hints ...

Debian : Same source = qtscriptgenerator-0.2.0
http://packages.debian.org/source/wh...criptgenerator

libqtscript4-uitools' is a separate package.

File lists http://packages.debian.org/wheezy/i3...tools/filelist
http://packages.debian.org/wheezy/am...tools/filelist
/usr/lib/x86_64-linux-gnu/qt4/plugins/script/libqtscript_uitools.so
/usr/lib/x86_64-linux-gnu/qt4/plugins/script/libqtscript_uitools.so.1
/usr/lib/x86_64-linux-gnu/qt4/plugins/script/libqtscript_uitools.so.1.0
/usr/lib/x86_64-linux-gnu/qt4/plugins/script/libqtscript_uitools.so.1.0.0

Patch http://ftp.de.debian.org/debian/pool....debian.tar.gz
> debian/libqtscript4-uitools.install

Slackware :
ftp://ftp.slackware.org.uk/slackware...riptgenerator/ >
qtscriptgenerator.SlackBuild ftp://ftp.slackware.org.uk/slackware...tor.SlackBuild
→ → The files are not created. Can't see exactly why.
Solution : When 'qtscriptgenerator.SlackBuild' has been run :
cd qtscriptgenerator-src-0.2.0/qtbindings/qtscript_uitools/ && make
→ The files libqtscript_uitools.so, libqtscript_uitools.so.1.0,
libqtscript_uitools.so.1, libqtscript_uitools.so.1.0.0
are created and moved to qtscriptgenerator-src-0.2.0/plugins/script/

.


All times are GMT -5. The time now is 07:23 PM.