Registered Member
|
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 |
Moderator
|
Which Qt version are you using ?
|
Registered Member
|
I've tried to build ktorrent 3.3.2 and and occurred the same error
Dist openSuSE 11.1 libqt4 4.4.3
THERE IS NO KNOWLEDGE, THAT IS NOT POWER
|
Moderator
|
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. |
Registered Member
|
Tnx a lot, it is now built, but when executing, application crashes, causing the signal 6.
THERE IS NO KNOWLEDGE, THAT IS NOT POWER
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]