LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2004, 03:57 PM   #1
drenal
Member
 
Registered: Dec 2003
Location: Poland
Distribution: slackware current
Posts: 53

Rep: Reputation: 15
compiling small KDE application


Hi, I've got Qt 3.1.2 and KDE 3.1.0 default installed on my Slackware 9.0 & I have problems with compiling small kde applications, for example 'caitoo', because there is an error when i run ./configure:

--------------------
checking for KDE headers installed... configure: error: your system is not able to compile a small KDE application!
Check, if you installed the KDE header files correctly.
--------------------

I made some corrections in my env, after querying google:

caitoo-0.6.6# echo $KDEDIR $QTDIR
/usr/include/kde /usr/include/qt
caitoo-0.6.6# ls -l /usr/include/kde /usr/include/qt
lrwxrwxrwx 1 root root 17 Dec 21 21:14 /usr/include/kde -> /opt/kde/include/
lrwxrwxrwx 1 root root 19 Dec 21 21:33 /usr/include/qt -> /usr/lib/qt/include

but there is still the same problem.

caitoo-0.6.6# tail -15 config.log
configure:4079: g++ -c -O2 -Wall -I/usr/include/kde -I/usr/include/qt conftest.C
conftest.C: In function `int main()':
conftest.C:6: no method `KApplication::kde_htmldir'
conftest.C:7: no method `KApplication::kde_appsdir'
conftest.C:8: no method `KApplication::kde_icondir'
conftest.C:9: no method `KApplication::kde_sounddir'
conftest.C:10: no method `KApplication::kde_datadir'
conftest.C:11: no method `KApplication::kde_localedir'
conftest.C:12: no method `KApplication::kde_cgidir'
conftest.C:13: no method `KApplication::kde_configdir'
conftest.C:14: no method `KApplication::kde_mimedir'
conftest.C:15: no method `KApplication::kde_toolbardir'
conftest.C:16: no method `KApplication::kde_wallpaperdir'
conftest.C:17: no method `KApplication::kde_bindir'
conftest.C:18: no method `KApplication::kde_partsdir'

whad did I miss?
 
Old 01-21-2004, 04:07 PM   #2
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
Can you build anything?
I'd probably need to see the first errors in the config script
but my first guess is you are missing 'probably' some c libraries.

What do you see when you type gcc -v
?
Just a guess...
 
Old 01-21-2004, 04:09 PM   #3
drenal
Member
 
Registered: Dec 2003
Location: Poland
Distribution: slackware current
Posts: 53

Original Poster
Rep: Reputation: 15
# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2.2
 
Old 01-21-2004, 04:12 PM   #4
drenal
Member
 
Registered: Dec 2003
Location: Poland
Distribution: slackware current
Posts: 53

Original Poster
Rep: Reputation: 15
& first error in config.log

configure:2459: warning: implicit declaration of function `XtMalloc'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../../i386-slackware-linux/bin/ld: cannot find -lX
t
collect2: ld returned 1 exit status
configure: failed program was:
#line 2456 "configure"
#include "confdefs.h"
 
Old 01-21-2004, 04:30 PM   #5
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
Hmmm. so it is a size thing? memory allocation?
Sorry can't help you there.
(But what about my question can you compile anything?)
It could still be missing libs...

Last edited by alar; 01-21-2004 at 04:34 PM.
 
Old 01-21-2004, 04:35 PM   #6
drenal
Member
 
Registered: Dec 2003
Location: Poland
Distribution: slackware current
Posts: 53

Original Poster
Rep: Reputation: 15
if compiling anything means like this:

# cat >a.c
#include <stdio.h>
main()
{
printf("testing\n");
return 0;
}

# gcc a.c
# ./a.out
testing

then, I say, YES, I can compile anything.

I try to download newest KDE source.. maybe this helps me
 
Old 01-21-2004, 04:44 PM   #7
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
Sorry, no I meant as in build: configure.
configure, make, make install.
Have you installed programs this way before?

If you are on a new install of slackware maybe
you aren't set up as a developer system yet?
 
Old 01-21-2004, 04:53 PM   #8
drenal
Member
 
Registered: Dec 2003
Location: Poland
Distribution: slackware current
Posts: 53

Original Poster
Rep: Reputation: 15
I have only problem with some kde progs like 'caitoo' as i sad and another app that I have is for example 'krabber'. Programs like newest samba, nmap:>, apache, etc compile succesfull. Only KDE progs fail.
 
Old 01-21-2004, 05:08 PM   #9
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
I googled
and found:
we show how caitoo's usage of the KDE libraries differs from other applications

http://www.cs.washington.edu/researc...age/rules.html

hope this helps,
alar

Maybe you should start another post about
caitoo's usage of the KDE libraries?
Prolly under software instead of Newbies

Last edited by alar; 01-21-2004 at 05:15 PM.
 
Old 01-21-2004, 05:44 PM   #10
drenal
Member
 
Registered: Dec 2003
Location: Poland
Distribution: slackware current
Posts: 53

Original Poster
Rep: Reputation: 15
I just tried to configure 'caitoo' remotely on my friend's machine. He has just installed Slackware 9.1,
and there is the same problem.

I'm just compiling the newest kde base&libs but It's the last thing I do for it.. If it won't work I'll just search for some another download manager for X
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ application with Glade: compiling problem dr_berta Linux - Software 10 10-03-2005 08:09 PM
Small fonts in Gnome application when running KDE Artik Debian 16 05-29-2005 12:25 PM
Help with Compiling and what's a good application to program with? johnnyICON Programming 11 01-12-2005 03:02 AM
Taking ideas for a new (small) application CatSC Linux - Software 5 11-27-2003 06:11 PM
Application Compiling Daxziz Linux - General 3 02-20-2002 04:21 AM


All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration