[Clam-devel] Missing qformlayout.h when compiling NE

Natanael Olaiz nolaiz at gmail.com
Fri Aug 8 02:32:22 PDT 2008


El 08/08/2008 04:20 AM, Han, Yushen escribió:
> Hi, Natanael
>
> Thank you for your answers!
> Unfortunately I did not find a binary of QT for my platform.
> So it took me 2+ hours to compile QT locally as you know.
>
> I think our uic_MainWindow.hxx is identical!
>
> Here is the problematic .hxx file
> ////////////////////////////////////////////
> #ifndef UIC_MAINWINDOW_H
> #define UIC_MAINWINDOW_H
>
> #include <QtCore/QVariant>
> #include <QtGui/QAction>
> #include <QtGui/QApplication>
> #include <QtGui/QButtonGroup>
> #include <QtGui/QHBoxLayout>
> #include <QtGui/QMainWindow>
> #include <QtGui/QMenu>
> #include <QtGui/QMenuBar>
> #include <QtGui/QStatusBar>
> #include <QtGui/QToolBar>
> #include <QtGui/QWidget>
>
> QT_BEGIN_NAMESPACE
>
> class Ui_MainWindow
> // this line gave error: src/generated/uic_MainWindow.hxx:27: error:
> expected constructor, destructor, or type conversion before 'class'
>
> // ......
> ////////////////////////////////////////////
>
> I think you are right about that it is related to QT.
> Now I wonder how I can specify QTDIR for it.
>
> Even if I set QTDIR by "export", it always gave the same warning:
> "scons: warning: QTDIR variable is not defined, using moc executable
> as a hint (QTDIR=/opt/local)"
>
>   
I don't know in Mac.. uses bash? others shells could use another command 
to set the environment var... Anyway, if you said that the var appears 
with "env"... I don't know.

> Do you have an alternative to set QTDIR? Thanks in advance!
>   
As a hard way you could move temporally the previous qt 4.3 files and 
make links to your newer ones. Or modify the 
CLAM/scons/sconstools/qt4.py, the right side of the definition of line 
246 from _detect(env) to '/path/to/your/qt4.4/installation'.


Best regards,
Natanael.

>
> Best regards,
> Han, Yushen
>   





More information about the clam-devel mailing list