This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Unable to find QtScript Qt Bindings

Tags: None
(comma "," separated)
User avatar
Shaan7
Registered Member
Posts
26
Karma
0
OS
Mamarok wrote:Did you erase your build folder an ran cmake again first? Else your CMakeCache.txt still has the old values.


I'm building inside a 'build' dir in amarok src. I delete it everytime and make it again, followed by cmake inside the build dir-
cmake .. -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$KDEDIRS

I tried re building the qtscriptengine but still the bindingstest inside amarok says-
"qt.core" not found :((
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Are you sure you have all qt4*-dev packages installed?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
Shaan7
Registered Member
Posts
26
Karma
0
OS
Mamarok wrote:Are you sure you have all qt4*-dev packages installed?


Here's the output of sudo aptitude search "qt4*" | grep "^i"
http://pastebin.ca/1562901

Is something missing?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you done all three stages of the qtscriptgenerator build?

make in generator/
./generator in generator/
make in qtbindings/


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Shaan7
Registered Member
Posts
26
Karma
0
OS
bcooksley wrote:Have you done all three stages of the qtscriptgenerator build?

make in generator/
./generator in generator/
make in qtbindings/


Yes I've performed all those steps as given in the README file.
I've found one more thing, maybe it'll help debug the problem. In the README its given that-

"
There is a simple script interpreter / launcher in path/to/this/project/qtbindings/qs_eval
that imports all the bindings. You can use it to run the examples found in
path/to/this/project/examples. E.g., with the examples directory being the working directory:

../qtbindings/qs_eval/qs_eval CollidingMice.qs
"

When I run this, it works fine. This means that the bindings were successfully built. (hopefully)
User avatar
Shaan7
Registered Member
Posts
26
Karma
0
OS
Ok, after help from IRC i found the solution. I was copying the .so files from qtscriptengine/plugins/script to $QTDIR/lib/ but it has to be copied to $QTDIR/plugins/script . Depends on configuration, normally the right dir can be found by searching for, say, libqtscriptdbus.so and put there all .so files in qtscriptengine/plugins/script.
Amaroks !!
User avatar
Shaan7
Registered Member
Posts
26
Karma
0
OS
Recently my hard disk crashed and I had to recompile everything again. As said in the last post, I copied the plugins in $QTDIR/plugins/script and tried to build amarok.
Amarok cmake fails and the bindingstest ( amarok/cmake/modules/bindingstest ) says ' "qt.uitools" not found ' . I can't find this qt uitools in the qtscriptbindings I cloned from gitorious. Any idea what might be wrong?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Using the existing Kubuntu packages for the qtscriptgenerator would be much easier...

You can check here what might be missing in your case:

http://blogs.fsfe.org/myriam/2009/09/co ... l-summary/

While this is for a local installation, it's enough changing the prefix in cmake for a system wide one (and of course no need to set the PATH to the local folders, then).

Make sure you erase the previous CMakeList.txt once you have installed and/or change the PATH, else it will still try with the old settings.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
SeaJey
Registered Member
Posts
166
Karma
0
OS
I think in kubuntu 9.10 you need qtscript-tools


kubuntu 10.04 AMD64 - KDE 4.4
AMD - radeonHD - M-Audio revolution 5.1
User avatar
Shaan7
Registered Member
Posts
26
Karma
0
OS
Mamarok wrote:Using the existing Kubuntu packages for the qtscriptgenerator would be much easier...

You can check here what might be missing in your case:

http://blogs.fsfe.org/myriam/2009/09/co ... l-summary/

While this is for a local installation, it's enough changing the prefix in cmake for a system wide one (and of course no need to set the PATH to the local folders, then).

Make sure you erase the previous CMakeList.txt once you have installed and/or change the PATH, else it will still try with the old settings.


Thanks for the suggestion :) I've found out that its some problem with the qtscript I downloaded, its not compiling correctly. I'll try to fix it up and post here once I find a solution.
erb139
Registered Member
Posts
1
Karma
0
Hello,

My workstation encountered similar errors with QtScript generator and its compiled libraries. The KDE environment is set to run under my local /home account.

I tried copying [plugins/] to the [$QTDIR/lib/] folder with no results.

The solution in the end was to copy the [plugins/scripts/*] library files to the location [$QTDIR/plugins/script/]. I doubt this is standard practice, but it at least got Amarok to find QtScript and compile. I did have to refresh the amarok [CMakeCache.txt] file in the build directory, as expected.

Hope this helps in future compilings!

Thanks,


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]