LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Failed compile of KCommander (https://www.linuxquestions.org/questions/linux-software-2/failed-compile-of-kcommander-37246/)

Obi Perrin 12-03-2002 07:17 PM

Failed compile of KCommander
 
Downloaded KCommander and went to compile it. ./configure seemed to go fine, but when I run make, it gives me this:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde3/include -I/usr/lib/qt2/include -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin -c mailer.cpp
In file included from /opt/kde3/include/kiconloader.h:34,
from options.h:30,
from mailer.h:35,
from mailer.cpp:1:
/opt/kde3/include/kicontheme.h:20:22: qptrlist.h: No such file or directory
In file included from /opt/kde3/include/kdialogbase.h:27,
from /opt/kde3/include/kicondialog.h:24,
from options.h:31,
from mailer.h:35,
from mailer.cpp:1:
/opt/kde3/include/kjanuswidget.h:23:22: qptrlist.h: No such file or directory
In file included from /opt/kde3/include/kdialogbase.h:29,
from /opt/kde3/include/kicondialog.h:24,
from options.h:31,
from mailer.h:35,
from mailer.cpp:1:
/opt/kde3/include/kstdguiitem.h:26:19: qpair.h: No such file or directory
In file included from /opt/kde3/include/kicondialog.h:24,
from options.h:31,
from mailer.h:35,
from mailer.cpp:1:
/opt/kde3/include/kdialogbase.h:30:22: qptrlist.h: No such file or directory


This seems strange really...the configure detected QT libs and headers in /usr/lib/qt2/lib and /usr/lib/qt2/include - yet, it's using kde3. It says in the g++ compile bit that it's using qt2 includes, but I've searched for the missing files on package manager and locate and they're only part of the qt3 devel package files. Sensing that this was just a problem of using kde3 along with qt2 instead of qt3, I changed the include and lib directories from the qt2 to qt3 ones in the Makefiles. Didn't work though, it gives exactly the same error, and the g++ line is actually unchanged, still citing the /usr/lib/qt2/include as before.

Can anyone help with this? I'm totally stumped what to do now. It's Mandrake 8.2 with the KDE 3 official RPMs.

Tinkster 12-03-2002 07:54 PM

Gidday!

Just to make sure ...

could you do a "rpm -aq | grep -i qt" and post the output?

Cheers,
Tink

Obi Perrin 12-03-2002 08:35 PM

Aye sure:

libqt3-devel-3.0.4-1mdk
libqt2-2.3.1-29mdk
libqt2-devel-2.3.1-29mdk
qt2-designer-2.3.1-29mdk
libqt3-3.0.4-1mdk

Sorry it took a while...I rebooted and X decided to go on a respawning frenzy, which was fun for about 2 seconds but quickly became tiring.

rootboy 12-03-2002 11:10 PM

Re: Failed compile of KCommander
 
Quote:

Originally posted by Obi Perrin
Downloaded KCommander and went to compile it. ./configure seemed to go fine, but when I run make, it gives me this:

Exactly which package did you download? I got both the binary (kcommander3-3.0-Beta2.i686.rpm) and the tarball (kcommander3-3.0Beta2.tar.gz). Did you get one of these or did you get it off of CVS?


Quote:


/opt/kde3/include/kicontheme.h:20:22: qptrlist.h: No such file or directory
In file included from /opt/kde3/include/kdialogbase.h:27,
from /opt/kde3/include/kicondialog.h:24,

Looks like you're missing both qptrlist.h & qpair.h. Chances are that these files reside in a different location on your Mandy box than they do on the developers box (I would of guessed SuSE, but it doesn't work for me either. Hmmm, just not for 8.1it seems, he uses an older version of SuSE...).

Hmmm, the binary dies with a "relocation error" on "__ti7QWidget" on my box.

This might be a good time to ask the developer for some pointers. He seems to be helpful... :)

(And they do have a phorum: http://www.kcommander.org/phorum/list.php?f=1)

Since you seem to be so close, one option would be to copy these files (qptrlist.h & qpair.h) to where the ./configue file expects them to be (wherever that might be). But keep in mind that it was developed on a SuSE box and that there might be other problems with the build.


John

Tinkster 12-04-2002 06:03 PM

Quote:

Originally posted by Obi Perrin
Aye sure:

libqt3-devel-3.0.4-1mdk
libqt2-2.3.1-29mdk
libqt2-devel-2.3.1-29mdk
qt2-designer-2.3.1-29mdk
libqt3-3.0.4-1mdk

Sorry it took a while...I rebooted and X decided to go on a respawning frenzy, which was fun for about 2 seconds but quickly became tiring.

No worries :)

I recommend you make a little shell-script (or two) that sets the paths, includes and such since you appear to have both qt3 and 2 installed....

when compiling KCommander source the one pointing to Qt3...

Cheers,
Tink


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