[Clam-devel] clam installation with pthread supports...

Hernán Ordiales h at ordia.com.ar
Wed Sep 16 06:43:55 PDT 2009


On Tue, Sep 15, 2009 at 5:56 AM, JIA Pei <jp4work at gmail.com> wrote:
>
> Hi, Dear CLAM group:
>
> 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
> http://clam-project.org/download/linux-debian-sid/svnsnapshots ./", I'm
> using Ubuntu 9.04 .
>
> /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
>
>
> What's more, I tried to install my own CLAM by recompiling everything.
> However, there are two difficulties.
> 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?
> 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
>
>
> scons: Building targets ...
> == Compiling vmqt/CLAM/QtWaitMessageImpl.cxx
> vmqt/CLAM/QtWaitMessageImpl.cxx:1:21: error: qlayout.h: No such file or
> directory
> vmqt/CLAM/QtWaitMessageImpl.cxx:2:20: error: qlabel.h: No such file or
> directory
> vmqt/CLAM/QtWaitMessageImpl.cxx:3:20: error: qtimer.h: No such file or
> directory
> In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:4:
> vmqt/CLAM/WaitMsgIndicator.hxx:4:20: error: qframe.h: No such file or
> directory
> In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:5:
> vmqt/CLAM/QtWaitMessageImpl.hxx:5:21: error: qdialog.h: No such file or
> directory
> In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:4:
> vmqt/CLAM/WaitMsgIndicator.hxx:11: error: expected class-name before ‘{’
> token
> vmqt/CLAM/WaitMsgIndicator.hxx:12: error: ISO C++ forbids declaration of
> ‘Q_OBJECT’ with no type
> vmqt/CLAM/WaitMsgIndicator.hxx:13: error: expected ‘;’ before ‘public’
> vmqt/CLAM/WaitMsgIndicator.hxx:17: error: expected `:' before ‘slots’
> vmqt/CLAM/WaitMsgIndicator.hxx:18: error: expected primary-expression before
> ‘void’
> vmqt/CLAM/WaitMsgIndicator.hxx:18: error: ISO C++ forbids declaration of
> ‘slots’ with no type
> vmqt/CLAM/WaitMsgIndicator.hxx:18: error: expected ‘;’ before ‘void’
> vmqt/CLAM/WaitMsgIndicator.hxx:21: error: ‘QPaintEvent’ has not been
> declared
> In file included from vmqt/CLAM/QtWaitMessageImpl.cxx:5:
> vmqt/CLAM/QtWaitMessageImpl.hxx:16: error: expected class-name before ‘{’
> token
> vmqt/CLAM/QtWaitMessageImpl.hxx:18: error: expected `)' before ‘*’ token
> vmqt/CLAM/QtWaitMessageImpl.hxx:24: error: ‘QCloseEvent’ has not been
> declared
> vmqt/CLAM/QtWaitMessageImpl.cxx:11: error: expected `)' before ‘*’ token
> vmqt/CLAM/QtWaitMessageImpl.cxx: In member function ‘void
> CLAM::VM::QtWaitMessageImpl::LabelText(const std::string&)’:
> vmqt/CLAM/QtWaitMessageImpl.cxx:32: error: invalid use of incomplete type
> ‘struct QLabel’
> vmqt/CLAM/QtWaitMessageImpl.hxx:7: error: forward declaration of ‘struct
> QLabel’
> vmqt/CLAM/QtWaitMessageImpl.cxx: At global scope:
> vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: variable or field ‘closeEvent’
> declared void
> vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: ‘QCloseEvent’ was not declared in
> this scope
> vmqt/CLAM/QtWaitMessageImpl.cxx:35: error: ‘e’ was not declared in this
> scope
> scons: *** [vmqt/CLAM/QtWaitMessageImpl.o] Error 1
> scons: building terminated because of errors.
>

take into account smstools still uses qt3

>
>
> I'm just wondering, how can I orgnize those 6 folders to make all stuffs
> compile in my own laptop?
> The 6 folders are now orgnized in the same subfolder "clam" :
>
> clam-1.3.1~svn13031
> clam-annotator-0.4.1~svn13031
> clam-chordata-1.0.0~svn13031
> clam-networkeditor-1.3.1~svn13031
> clam-plugins-1.3.1~svn13031
> clam-smstools-0.4.11~svn13031

i think the best option is to download all the code from svn

svn co http://clam-project.org/clam/trunk clam
(http://clam-project.org/wiki/Devel)

also take into account there are detailed instructions in README and
INSTALL files of each folder


> 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?

is a bunch plugins, not related between them. Check out CLAM/plugins dir.

> Please give me a hand at your earliest convenience.
>
> Best Regards
> JIA

cheers

>
>
>
>
> --
> Welcome to Vision Open
> http://www.visionopen.com
>
> _______________________________________________
> Clam-devel mailing list
> Clam-devel at llistes.projectes.lafarga.org
> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel
>
>



-- 
Hernán
http://h.ordia.com.ar
GnuPG: 0xEE8A3FE9




More information about the clam-devel mailing list