LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't compile KDE themes mandrake 9.1 qt missing (https://www.linuxquestions.org/questions/linux-newbie-8/cant-compile-kde-themes-mandrake-9-1-qt-missing-112997/)

dibblethewrecke 11-06-2003 06:18 AM

can't compile KDE themes mandrake 9.1 qt missing
 
This is really getting me down.

I'm trying to compile two KDE themes, just in case it's useful these are Plastik and Thinkeramik from kde-look.

They both need qt libraries, i get a message at the end of the compile, i think it says that my current ones are not new enough. So, being a resourceful guy i google for the error and libs, and check my mandrake rpm's for the files.

I found several that i thought it was but they all seemed unsuitable under scrutiny.

So, basically, give me an idiots guide to:

a) understanding what the hell i'm compiling!
b) how i'm doing that, i'm doing it but not really sure how, and what i need to get it to work and where i can find that and implement it on my system

please :jawa:

Mara 11-06-2003 03:21 PM

If you're running QT that comes with MDK 9.1, it should be OK. What was the error message, exactly?

Check if you have qt-devel installed. The command is something like
rpm -qa|grep devel|grep qt
If a file qt-devel (or similar (qt3-devel will also do) is not listed, you dont have it installed. It may be the reason the themes don't compile. Install it (it's somewhere on the installation cds) and try again.

dibblethewrecke 11-10-2003 02:05 PM

Make sure that you have compiled Qt with thread support!
 
Sorry, had a total cock up back there! I somehow managed to uninstall all the qt libs and kde wouldn't run - gave me a bit of a scare, had no idea what went wrong, thought it was X. Tried to run kde as root, got an error that qt lib was mssing, realised it was KDE, troed to run rpmdrake, couldn't in console so guessed at

startx -icewm

it worked :D ! ran rpmdrake, reinstall qt stuff! Hurrah! I am learning, come on be proud of me guys, i figured that all out myself!

So, back to the original prob. All qt libs reinstalled it seems. tried your command up there, got back:

libqt3-devel-3.1.1-13mdk

Tried to compile theme again:

checking for Qt... configure: error: Qt (>= Qt 3.1.0) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!

Wasn't getting the last bit about thread support before. have googled and found something about the wrong gcc complier???? That's well out of my depth i think. I don't really know what i am doing when i am compiling stuff (as i said up there) so it's a bit hard for me to understand where the process is going wrong!

Know you guys'll sort me out!

Mikhail_16 11-10-2003 03:21 PM

well make sure you are running at least qt version 3.1.0 or greater. btw, qt-devel and qt should be 2 different packages. also run 'ldconfig' command as root (thats from RH, i do not exactly know what it is in mandrake). If nothing works try figuring out where qt is intalled and make sure that your system actually finds it.

dibblethewrecke 11-10-2003 03:35 PM

Quote:

well make sure you are running at least qt version 3.1.0 or greater
i'm pretty sure i confirmed that above tho i may be wrong

Quote:

Check if you have qt-devel installed. The command is something like rpm -qa|grep devel|grep qt
Quote:

tried your command up there, got back: libqt3-devel-3.1.1-13mdk
er...i think that covers it

Mikhail_16 11-10-2003 03:55 PM

make sure that you have QT itself installed:

rpm -qa | grep -i 'qt'

As i said, QT and QT-devel are 2 different packages.

dibblethewrecke 11-10-2003 05:05 PM

ok, ran that one:

libqt3-3.1.1-13mdk
libqt3-devel-3.1.1-13mdk
libqt3-common-3.1.1-13mdk

how's that?

could you explain the commands i am using because i don't understand them!

Mara 11-10-2003 05:36 PM

The command "rpm -qa | grep -i 'qt'" gets all installed packages (rpm -qa does it) and shows only the ones with 'qt' string inside their names.

The result you get is 100% correct. There must be something different. First, find if you have 'libqt-mt'. The command is
locate libqt-mt
It'll list you files beginning with 'libqt-mt'. You should get something like /usr/lib/qt3/lib/libqt-mt.so.3
(more than one entry, there are many symlinks to the main libarary; it's important to have libqt-mt.so)
Look at the directory you see before the library name. Write it down and try the following (change /usr/lib/qt3 to the right directory in your system)
export QTDIR=/usr/lib/qt3
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cd /directory/you/have/the/theme/in
./configure

dibblethewrecke 11-10-2003 05:42 PM

ok, my buddies and i, namely trial and error, have managed to ascertain that:

i had no (or the wrong) gcc compiler and i was missing several libs inc ljpeg and lpng

now the ./configure works fine but i can't make. i have suspicions that i'm it's because i'm not putting any options after the ./configure but i don't know what i am suppose to put! i've googled but no luck - it's a bit confusing to have instructions in install and read me that assume so much!

Mara 11-10-2003 06:01 PM

As I can se, we haven't asked you if you have gcc installed. What happens when you run
gcc

Mikhail_16 11-10-2003 06:42 PM

i wonder if you have to be root to actually do make for that stuff?

Try doing 'su' (become root)
then running 'make' and/or 'make install' on it.

dibblethewrecke 11-11-2003 02:03 AM

Quote:

Originally posted by Mara
The command "rpm -qa | grep -i 'qt'" gets all installed packages (rpm -qa does it) and shows only the ones with 'qt' string inside their names.

The result you get is 100% correct. There must be something different. First, find if you have 'libqt-mt'. The command is
locate libqt-mt
It'll list you files beginning with 'libqt-mt'. You should get something like /usr/lib/qt3/lib/libqt-mt.so.3
(more than one entry, there are many symlinks to the main libarary; it's important to have libqt-mt.so)
Look at the directory you see before the library name. Write it down and try the following (change /usr/lib/qt3 to the right directory in your system)
export QTDIR=/usr/lib/qt3
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cd /directory/you/have/the/theme/in
./configure

mara, i'll try this but i think you have seen that we may be passed the qt problem (tho i'm not sure)

I'll check the gcc by running

gcc

i guess that's right and i'll get back to you.

mikhail - i did the make stuff as root first time round, so it's not that

dibblethewrecke 11-11-2003 02:53 AM

ok, consider the first problem solved.

libqt-mt was there in the place suggested, i think was always there, i think the problem was i didn't have the gcc compiler, now i have. :)

I have done the configure stage using

./configure

i get the message

Good - your configure finished. Start make now

when i start make with

make

it doesn't work. it gives me all this but there is no error obvious to me in this one:

make all-recursive
make[1]: Entering directory `/mnt/win_d/Linux/plastik-0.3.9'
Making all in style
make[2]: Entering directory `/mnt/win_d/Linux/plastik-0.3.9/style'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/win_d/Linux/plastik-0.3.9/style'
Making all in client
make[2]: Entering directory `/mnt/win_d/Linux/plastik-0.3.9/client'
Making all in config
make[3]: Entering directory `/mnt/win_d/Linux/plastik-0.3.9/client/config'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/win_d/Linux/plastik-0.3.9/client/config'
make[3]: Entering directory `/mnt/win_d/Linux/plastik-0.3.9/client'
source='plastik.cpp' object='plastik.lo' libtool=yes \
depfile='.deps/plastik.Plo' tmpdepfile='.deps/plastik.TPlo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include -I/usr/include/kwin -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_PLUGIN -c -o plastik.lo `test -f 'plastik.cpp' || echo './'`plastik.cpp
plastik.cpp:24:28: kwin/workspace.h: No such file or directory
plastik.cpp:25:26: kwin/options.h: No such file or directory
In file included from plastik.cpp:28:
plastik.h:26:25: kwin/client.h: No such file or directory
In file included from plastik.cpp:30:
plastikclient.h:26:25: kwin/client.h: No such file or directory
In file included from plastik.cpp:30:
plastikclient.h:37: `Client' is not a class or namespace
plastikclient.h:40: parse error before `*' token
plastikclient.h:61: warning: ISO C++ forbids declaration of `MousePosition' with no type
plastikclient.h:61: `MousePosition' declared as a `virtual' field
plastikclient.h:61: parse error before `(' token
plastikclient.h:69: `QBoxLayout' was not declared in this scope
plastikclient.h:69: `layout' was not declared in this scope
plastikclient.h:69: parse error before `&' token
plastikclient.h:37: warning: `class KWinInternal::PlastikClient' has virtual functions but non-virtual destructor
plastikclient.h: In member function `QPixmap KWinInternal::PlastikClient::getTitleBarTile(bool) const':
plastikclient.h:44: return type `struct QPixmap' is incomplete
plastik.cpp: In member function `void KWinInternal::PlastikHandler::reset()':
plastik.cpp:59: `options' undeclared (first use this function)
plastik.cpp:59: (Each undeclared identifier is reported only once for each function it appears in.)
plastik.cpp:69: `Workspace' undeclared (first use this function)
plastik.cpp:69: parse error before `::' token
plastik.cpp: In static member function `static QColor KWinInternal::PlastikHandler::getColor(KWinInternal::ColorType, bool)':
plastik.cpp:106: `Options' undeclared (first use this function)
plastik.cpp:106: parse error before `::' token
plastik.cpp:108: parse error before `::' token
plastik.cpp:111: parse error before `::' token
plastik.cpp:115: parse error before `::' token
plastik.cpp:120: parse error before `::' token
plastik.cpp:125: parse error before `::' token
plastik.cpp:129: parse error before `::' token
plastik.cpp:131: parse error before `::' token
plastik.cpp:103: warning: unused parameter `const bool active'
plastik.cpp: At global scope:
plastik.cpp:145: syntax error before `*' token
plastik.cpp:165: parse error before `}' token
make[3]: *** [plastik.lo] Error 1
make[3]: Leaving directory `/mnt/win_d/Linux/plastik-0.3.9/client'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/win_d/Linux/plastik-0.3.9/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/win_d/Linux/plastik-0.3.9'
make: *** [all] Error 2

so close yet so far

what am i doing wrong now!

Mara 11-11-2003 12:24 PM

Quote:

Originally posted by dibblethewrecke

plastik.cpp:24:28: kwin/workspace.h: No such file or directory!

It means you don't have a file from kdebase-devel package. It may mean that you don't have kdebase-devel installed. So
rpm -qa|grep kdebase
If there's no kdebase-devel, use
urpmi kdebase-devel
to install it.

mep]-[isto 11-11-2003 01:07 PM

heya, this is related to this thread so i thought id post in here. i was in the same position as dibble, but i have managed to pull through! :D (after installing lots of libs, png gpl etc) but now my final problem in this momentous battle of installing....A THEME! lol no but seriously...ive done ./configure -prefix=/usr, make, make install and they all seem to have passed through fine with no errors..great!

my question now..wheres my theme and how do i go about applying it? ive gone to add theme in kde control centre, browsed to the dir where my theme was compiled in and no themese are anywhere to be found.

any hints? i would be most grateful!

thankyou!


All times are GMT -5. The time now is 08:45 AM.