<br>Hi, Dear CLAM group:<br><br>I tried to compile my ow application based on CLAM QT4 Designer widgets. However, every time, I obtained the following error message. I used the default repository installation of "deb <a href="http://clam-project.org/download/linux-debian-sid/svnsnapshots">http://clam-project.org/download/linux-debian-sid/svnsnapshots</a> ./", I'm using Ubuntu 9.04 .<br>
<br>/usr/include/CLAM/Mutex.hxx:26:2: error: #error USE_PTHREADS was not set to 1 in your settings.cfg file, but you are including files that require this. Please fix your settings.cfg<br><br><br>What's more, I tried to install my own CLAM by recompiling everything. However, there are two difficulties.<br>
1) Without installing the repository default packages, I manually installed clam-annotator-0.4.1~svn13031 ,  clam-chordata-1.0.0~svn13031 , clam-networkeditor-1.3.1~svn13031 . But I still failed to see the QT4 designer plugin widgets. How can I obtain those widgets in QT4 designer?<br>
2) So, it looks like I've got to install  clam-smstools-0.4.11~svn13031 before those widgets shown in QT4 designer, right? I guess so. So, I tried to install  clam-smstools-0.4.11~svn13031. But I got the following error messages<br>
<br><br>scons: Building targets ...<br>== Compiling vmqt/CLAM/QtWaitMessageImpl.cxx<br>vmqt/CLAM/QtWaitMessageImpl.cxx:1:21: error: qlayout.h: No such file or directory<br>vmqt/CLAM/QtWaitMessageImpl.cxx:2:20: error: qlabel.h: No such file or directory<br>
vmqt/CLAM/QtWaitMessageImpl.cxx:3:20: error: qtimer.h: No such file or directory<br>In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:4:<br>vmqt/CLAM/WaitMsgIndicator.hxx:4:20: error: qframe.h: No such file or directory<br>
In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:5:<br>vmqt/CLAM/QtWaitMessageImpl.hxx:5:21: error: qdialog.h: No such file or directory<br>In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:4:<br>vmqt/CLAM/WaitMsgIndicator.hxx:11: error: expected class-name before ‘{’ token<br>
vmqt/CLAM/WaitMsgIndicator.hxx:12: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type<br>vmqt/CLAM/WaitMsgIndicator.hxx:13: error: expected ‘;’ before ‘public’<br>vmqt/CLAM/WaitMsgIndicator.hxx:17: error: expected `:' before ‘slots’<br>
vmqt/CLAM/WaitMsgIndicator.hxx:18: error: expected primary-expression before ‘void’<br>vmqt/CLAM/WaitMsgIndicator.hxx:18: error: ISO C++ forbids declaration of ‘slots’ with no type<br>vmqt/CLAM/WaitMsgIndicator.hxx:18: error: expected ‘;’ before ‘void’<br>
vmqt/CLAM/WaitMsgIndicator.hxx:21: error: ‘QPaintEvent’ has not been declared<br>In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:5:<br>vmqt/CLAM/QtWaitMessageImpl.hxx:16: error: expected class-name before ‘{’ token<br>
vmqt/CLAM/QtWaitMessageImpl.hxx:18: error: expected `)' before ‘*’ token<br>vmqt/CLAM/QtWaitMessageImpl.hxx:24: error: ‘QCloseEvent’ has not been declared<br>vmqt/CLAM/QtWaitMessageImpl.cxx:11: error: expected `)' before ‘*’ token<br>
vmqt/CLAM/QtWaitMessageImpl.cxx: In member function ‘void CLAM::VM::QtWaitMessageImpl::LabelText(const std::string&)’:<br>vmqt/CLAM/QtWaitMessageImpl.cxx:32: error: invalid use of incomplete type ‘struct QLabel’<br>vmqt/CLAM/QtWaitMessageImpl.hxx:7: error: forward declaration of ‘struct QLabel’<br>
vmqt/CLAM/QtWaitMessageImpl.cxx: At global scope:<br>vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: variable or field ‘closeEvent’ declared void<br>vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: ‘QCloseEvent’ was not declared in this scope<br>
vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: ‘e’ was not declared in this scope<br>scons: *** [vmqt/CLAM/QtWaitMessageImpl.o] Error 1<br>scons: building terminated because of errors.<br><br><br><br><br>I'm just wondering, how can I orgnize those 6 folders to make all stuffs compile in my own laptop?<br>
The 6 folders are now orgnized in the same subfolder "clam" :<br><br>clam-1.3.1~svn13031<br>clam-annotator-0.4.1~svn13031<br>clam-chordata-1.0.0~svn13031<br>clam-networkeditor-1.3.1~svn13031<br>clam-plugins-1.3.1~svn13031<br>
clam-smstools-0.4.11~svn13031<br><br><br>BTW, what is "clam-plugins-1.3.1~svn13031" for? How to install it? Or, if it's possible to grab the corresponding packages directly from repository, without installing clam-plugins-1.3.1~svn13031 at all?<br>
<br><br>Please give me a hand at your earliest convenience.<br><br>Best Regards<br>JIA<br><br><br><br><br clear="all"><br>-- <br>Welcome to Vision Open<br><a href="http://www.visionopen.com">http://www.visionopen.com</a><br>