This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem compiling ktorrent 3.1.1on ubuntu 8.04

Tags: None
(comma "," separated)
tvtg
Registered Member
Posts
1
Karma
0
I get error :
[ 87%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/fileselectdlg.o
/home/tal/kTorrent/ktorrent-3.3.1/ktorrent/fileselectdlg.cpp: In member function ‘void kt::FileSelectDlg::setShowFileTree(bool)’:
/home/tal/kTorrent/ktorrent-3.3.1/ktorrent/fileselectdlg.cpp:503: error: invalid use of incomplete type ‘struct QHeaderView’
/usr/include/qt4/QtGui/qtreeview.h:58: error: forward declaration of ‘struct QHeaderView’
/home/tal/kTorrent/ktorrent-3.3.1/ktorrent/fileselectdlg.cpp:516: error: invalid use of incomplete type ‘struct QHeaderView’
/usr/include/qt4/QtGui/qtreeview.h:58: error: forward declaration of ‘struct QHeaderView’
make[2]: *** [ktorrent/CMakeFiles/ktorrent.dir/fileselectdlg.o] Error 1
make[1]: *** [ktorrent/CMakeFiles/ktorrent.dir/all] Error 2
make: *** [all] Error 2

Please advice

Thanks for your help
George
Moderator
Posts
5421
Karma
1
Which Qt version are you using ?
Alphawell
Registered Member
Posts
2
Karma
0
George wrote:Which Qt version are you using ?


I've tried to build ktorrent 3.3.2 and and occurred the same error

Code: Select all
[ 81%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/fileselectdlg.o
/home/alphawell/soft/source/ktorrent-3.3.2/ktorrent/fileselectdlg.cpp: In member function ‘void kt::FileSelectDlg::setShowFileTree(bool)’:
/home/alphawell/soft/source/ktorrent-3.3.2/ktorrent/fileselectdlg.cpp:503: error: invalid use of incomplete type ‘struct QHeaderView’
/usr/include/QtGui/qtreeview.h:52: error: forward declaration of ‘struct QHeaderView’
/home/alphawell/soft/source/ktorrent-3.3.2/ktorrent/fileselectdlg.cpp:516: error: invalid use of incomplete type ‘struct QHeaderView’
/usr/include/QtGui/qtreeview.h:52: error: forward declaration of ‘struct QHeaderView’
make[2]: *** [ktorrent/CMakeFiles/ktorrent.dir/fileselectdlg.o] Error 1
make[1]: *** [ktorrent/CMakeFiles/ktorrent.dir/all] Error 2
make: *** [all] Error 2


Dist openSuSE 11.1 libqt4 4.4.3


THERE IS NO KNOWLEDGE, THAT IS NOT POWER
George
Moderator
Posts
5421
Karma
1
Open ktorrent/fileselectdlg.cpp and add the line:

#include <qheaderview.h>

There will be a whole bunch of include lines like this at the start of the file, just add it after the last include.

That should continue the compile, however you might run into other problems which might not be solved so easily.
Alphawell
Registered Member
Posts
2
Karma
0
Tnx a lot, it is now built, but when executing, application crashes, causing the signal 6.


THERE IS NO KNOWLEDGE, THAT IS NOT POWER


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]