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

git compile error ‘showScriptSelector’ was not declared

Tags: None
(comma "," separated)
User avatar
google01103
Manager
Posts
6668
Karma
25
Compiling from git, just up'ed to openSuse 11.4 and KDE 4.6 - compiled fine last time I tried which was probably last weekend or so (March 2nd or third)

git is up to date and ran make clean just to be sure

Full error:
In file included from /home/smiley/MyTemp/amarok/src/MainWindow.cpp:1329:0:
/home/smiley/MyTemp/amarok/src/MainWindow.moc: In member function ‘virtual int MainWindow::qt_metacall(QMetaObject::Call, int, void**)’:
/home/smiley/MyTemp/amarok/src/MainWindow.moc:150:37: error: ‘showScriptSelector’ was not declared in this scope
make[2]: *** [src/CMakeFiles/amaroklib.dir/MainWindow.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/amaroklib.dir/all] Error 2
make: *** [all] Error 2

thanks,


OpenSuse Leap 42.1 x64, Plasma 5.x

valoriez
KDE CWG
Posts
625
Karma
3
OS
I would start by deleting the build directory, and try again. If that doesn't help, delete the src dir also, and just start from scratch. It really only takes a few extra minutes.

Good luck!
User avatar
google01103
Manager
Posts
6668
Karma
25
Val need more good luck please:

Ok rm'ed build dir and it went past previous error but it can't find "gdk-pixbuf/gdk-pixbuf.h: No such file or directory" of course it is installed in /usr/include/gtk-2.0/gdk.

I'm thinking it's a pathing issue of sorts caused by openSuse changing the gtk directory(s) to gtk2.0 in anticipation of gtk3.0 (just a guess).

Ideas?


OpenSuse Leap 42.1 x64, Plasma 5.x

valoriez
KDE CWG
Posts
625
Karma
3
OS
Do you build locally? If so, delete your folders in ~/kde and start at Myriam's instructions, and work them step by step again.

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

A detailed information about git can be found here:

http://techbase.kde.org/Getting_Started ... t-tutorial
User avatar
google01103
Manager
Posts
6668
Karma
25
It was a location problem - after countless Googles found a Ubuntu thread with a solution

http://askubuntu.com/questions/5847/how ... -directory

"... In 10.10 it seems that the gdk-pixbuf includes are stored in their own directory off of /usr/include, whereas in previous versions they had been lumped in with gtk-2.0. If you have installed libgtk2.0-dev and libgdk-pixbuf2.0-dev then you'll need to execute:
sudo ln -s /usr/include/gdk-pixbuf-2.0/gdk-pixbuf /usr/include/gtk-2.0/gdk-pixbuf"

(of course still not @ 100%, different error but will find & fix or post in new thread)


OpenSuse Leap 42.1 x64, Plasma 5.x

valoriez
KDE CWG
Posts
625
Karma
3
OS
Myriam may want to add that to her excellent blog post, thanks.
User avatar
google01103
Manager
Posts
6668
Karma
25
valoriez wrote:Myriam may want to add that to her excellent blog post, thanks.


I emailed her already - great minds think alike xD


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
google01103 wrote:"... In 10.10 it seems that the gdk-pixbuf includes are stored in their own directory off of /usr/include, whereas in previous versions they had been lumped in with gtk-2.0. If you have installed libgtk2.0-dev and libgdk-pixbuf2.0-dev then you'll need to execute:
sudo ln -s /usr/include/gdk-pixbuf-2.0/gdk-pixbuf /usr/include/gtk-2.0/gdk-pixbuf"

(of course still not @ 100%, different error but will find & fix or post in new thread)


Strange, I use Kubuntu 10.10 as well and never had to do anything like that. Could it be you had more than one gtk version 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
google01103
Manager
Posts
6668
Karma
25
re: dual gtk versions, don't think so - at least if so it's not obvious

list of all rpms with "gtk" in name http://pastebin.com/U2Xcmher

the interesting thing is the solution I found was posted in an Ubuntu forum for 10.10


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Sentynel
KDE Developer
Posts
285
Karma
1
OS
Mamarok wrote:Strange, I use Kubuntu 10.10 as well and never had to do anything like that. Could it be you had more than one gtk version installed?

I hit this issue when I switched to the Kubuntu 10.10 beta and reported it. The cmake files were patched so it would look in the correct location.




Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]