LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 04-21-2004, 04:31 PM   #1
drenal
Member
 
Registered: Dec 2003
Location: Poland
Distribution: slackware current
Posts: 53

Rep: Reputation: 15
'make' errors...


Hello, I'm trying to compile a ksnuffle-2.2(http://tucows.mirror.ish.de/linux/fi...nuffle-2.2.tgz) , sniffer&analyzer for KDE. ./configure goes successfull:

Code:
.......
checking for Qt... (cached) libraries /usr/lib/qt/lib, headers /usr/lib/qt/include
checking if Qt compiles without flags... (cached) no
checking for moc... (cached) /usr/lib/qt/bin/moc
checking for uic... (cached) /usr/lib/qt/bin/uic
.......
but compilation not:/ :
Code:
.........
make[3]: Entering directory `/usr/local/src/ksnuffle-2.2/ksnuffle'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde/include -I/usr/lib/qt/include -I.  -I../libpcap-0.4 -I../include    -O0 -g -Wall -DKDECONF=\"/opt/kde/share/config\"                       -DBINDIR=\"/opt/kde/bin\"             -DDATADIR=\"/opt/kde/share/apps\"  -c knd_pkt.cpp
In file included from knd_pkt.cpp:35:
/usr/lib/qt/include/qtabbar.h: In constructor `
   KNDViewTab::KNDViewTab(KNDPlugin*)':
/usr/lib/qt/include/qtabbar.h:73: error: `QString QTab::label' is private
knd_view.h:106: error: within this context
knd_pkt.cpp: In member function `void KNDPacket::putPacket(PktInfo*, bool)':
knd_pkt.cpp:398: warning: array subscript has type `char'
knd_pkt.cpp:401: warning: array subscript has type `char'
knd_pkt.cpp:404: warning: array subscript has type `char'
knd_pkt.cpp:411: warning: array subscript has type `char'
knd_pkt.cpp:418: warning: array subscript has type `char'
knd_pkt.cpp:421: warning: array subscript has type `char'
knd_pkt.cpp: In member function `void KNDPacket::rightClicked(QListViewItem*,
   const QPoint&, int)':
knd_pkt.cpp:960: error: incomplete type 'QCursor' cannot be used to name a
   scope
make[3]: *** [knd_pkt.o] Błąd 1
.....
how to fix this errors? Maybe I should use older Qt package?

I have qt-3.3.1-i486-2 and kde-3.2.1 slackware packages installed.
 
Old 04-21-2004, 06:06 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,574

Rep: Reputation: 184Reputation: 184
"how to fix this errors? Maybe I should use older Qt package?"

The KDE/Qt dependencies are very rigid. I think that KDE 3.2.1 works only with Qt 3.2.3.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 04-21-2004, 06:53 PM   #3
drenal
Member
 
Registered: Dec 2003
Location: Poland
Distribution: slackware current
Posts: 53

Original Poster
Rep: Reputation: 15
I don't know exactly what you mean " .. works only with .. ", because I use some qt-based apps on my system, and I've just tried to compile another qt-based app dcgui-qt (http://download.berlios.de/dcgui/dc-0.2.21.tar.bz2) and it works fine.

Do you really think, I should reinstall my Qt?


I have another gui-sniffer ('ksniff'http://freshmeat.net/redir/ksniff/5369/url_tgz/ksniff-981101.tar.gz) and there is another problem ... but while './configure':

Code:
checking for xgettext... /usr/bin/xgettext
checking for KDE... libraries /opt/kde/lib, headers /opt/kde/include
checking for extra includes... no
checking for extra libs... no
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 googled & I got some answer that this app uses KDE version 1 . And now question: How can I have 2 different kde-base on my system if I want use this app? I should download kde's 1 source and just 'make install'? Won't it damage my current kde's files?
 
Old 04-21-2004, 08:51 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,574

Rep: Reputation: 184Reputation: 184
"I googled & I got some answer that this app uses KDE version 1 . And now question: How can I have 2 different kde-base on my system if I want use this app? I should download kde's 1 source and just 'make install'? Won't it damage my current kde's files?"

There is a difference in the dependency problems between the KDE desktop and KDE applications. The KDE desktop developers and the Qt developers (Trolltech) work very closely togather. As a result you often get into the situation where a version of KDE will work with exactly one version of Qt and not work on either earlier or later releases of Qt. However the problems with mismatched KDE/Qt versions tend to be minor and flaky as long as you are only off by a minor number or so.

KDE applications have to match both the KDE and Qt versions. Usually applications are much more lenient about working on a range of KDE/Qt applications than the KDE desktop is because the application programmers rarely use the latest features being put into Qt by Trolltech. However I do not think that a KDE application written for a major KDE release will work on a different KDE major release, i.e. a KDE application written for KDE 1, 2, or 3 has to run on KDE 1,2, or 3 respectively.

If is a very difficult trick to run two major versions of KDE on the same machine. So trying to run both KDE 1 and 3 at the same time is very difficult.

So I think that the way to straighten out your KDE version numbers problems is to install Qt 3.2.3 to match KDE 3.2.1. Then only install KDE applications that will run on KDE 3.

Also do not try to install a new version of KDE and/or Qt while running on KDE. Use the command line. Part way through a KDE/Qt update you may have the KDE desktop collapse from under you.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


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
Make errors lazwaz Linux - Software 1 05-21-2005 05:37 AM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 04:01 AM
errors with make xconfig dred Mandriva 1 01-15-2005 05:06 AM
Xine make errors natedogver31 Linux - Software 1 04-04-2004 11:05 AM
make modules errors out zmanea Linux - Newbie 2 02-26-2004 09:54 AM


All times are GMT -5. The time now is 04:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration