LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   'make' errors... (https://www.linuxquestions.org/questions/linux-newbie-8/make-errors-172989/)

drenal 04-21-2004 03:31 PM

'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.

jailbait 04-21-2004 05:06 PM

"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

drenal 04-21-2004 05:53 PM

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?

jailbait 04-21-2004 07:51 PM

"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


All times are GMT -5. The time now is 09:34 AM.