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

Han, Yushen yushen.han at gmail.com
Thu Aug 7 22:22:59 PDT 2008


Hi, Natanael and David

Thanks for the thread! You are right about that:
I just updated qt from 4.3 to qt4.4.0 (which took about 2+ hours to
compile) and the Qt problem seemed to go away.

However, I encountered the following compiling error in
src/generated/uic_MainWindow.hxx.

I don't know how to look into this "ic_MainWindow.hxx" file ( it seems
to be generated by the script).
But I vaguely remembered that when I checked out the latest NE, the
only change was made to
the MainWindow.cxx/hxx.

Is this a problem with the latest NE or my system?
( I am running the latest QT and SCons now.)

Best regards,
Han, Yushen


156-56-219-141:NetworkEditor yushen$ sudo scons install
prefix=/usr/local clam_prefix=/usr/local
Password:
scons: Reading SConscript files ...

scons: warning: QTDIR variable is not defined, using moc executable as
a hint (QTDIR=/opt/local)
File "/usr/local/share/clam/sconstools/qt4.py", line 208, in _detect
Loading nsis tool...
Loading Bundle tool
Lodading dmg tool...
Version:  1.3.0
Package version:  1.3.0~svn11858
scons: done reading SConscript files.
scons: Building targets ...
== Compiling src/main.cxx
src/generated/uic_MainWindow.hxx:27: error: expected constructor,
destructor, or type conversion before 'class'
src/generated/uic_MainWindow.hxx:356: error: expected class-name
before '{' token
/Library/Frameworks/QtGui.framework/Headers/qtextoption.h:44: error:
expected constructor, destructor, or type conversion before 'extern'
/Library/Frameworks/QtGui.framework/Headers/qpainter.h:350: error:
expected ',' or '...' before '&' token
/Library/Frameworks/QtGui.framework/Headers/qpainter.h:356: error:
expected ',' or '...' before '&' token
src/generated/uic_DummyProcessingConfig.hxx:28: error: expected
constructor, destructor, or type conversion before 'class'
src/generated/uic_DummyProcessingConfig.hxx:165: error: expected
class-name before '{' token
src/NetworkCanvas.hxx:911: error: expected constructor, destructor, or
type conversion before 'class'
/Library/Frameworks/QtGui.framework/Headers/qtextedit.h:176: error:
'WrapMode' in class 'QTextOption' does not name a type
/Library/Frameworks/QtGui.framework/Headers/qtextedit.h:177: error:
'struct QTextOption::WrapMode' has not been declared
src/generated/uic_About.hxx:28: error: expected constructor,
destructor, or type conversion before 'class'
src/generated/uic_About.hxx:265: error: expected class-name before '{' token
/usr/local/include/CLAM/FlattenedNetwork.hxx:41: error: expected
constructor, destructor, or type conversion before 'namespace'
/usr/local/include/CLAM/Network.hxx:37: error: expected class-name
before '{' token
src/MainWindow.hxx:523: error: ISO C++ forbids declaration of
'ClamNetworkCanvas' with no type
src/MainWindow.hxx:523: error: expected ';' before '*' token
src/MainWindow.hxx: In constructor 'MainWindow::MainWindow()':
src/MainWindow.hxx:56: error: 'class Ui::MainWindow' has no member
named 'setupUi'
src/MainWindow.hxx:64: error: '_canvas' was not declared in this scope
src/MainWindow.hxx:64: error: expected type-specifier before 'ClamNetworkCanvas'
src/MainWindow.hxx:64: error: expected `;' before 'ClamNetworkCanvas'
src/MainWindow.hxx:65: error: no matching function for call to
'QScrollArea::setWidget(<type error>)'
/Library/Frameworks/QtGui.framework/Headers/qscrollarea.h:63: note:
candidates are: void QScrollArea::setWidget(QWidget*)
src/MainWindow.hxx:81: error: 'class Ui::About' has no member named 'setupUi'
src/MainWindow.hxx:83: error: 'class Ui::About' has no member named
'versionInfo'
src/MainWindow.hxx:97: error: 'class Ui::MainWindow' has no member
named 'action_White_colors_Option'
src/MainWindow.hxx:99: error: 'class Ui::MainWindow' has no member
named 'action_Embed_SVG_Diagrams_Option'
src/MainWindow.hxx:101: error: 'class CLAM::Network' has no member
named 'AddFlowControl'
src/MainWindow.hxx:133: error: 'class CLAM::Network' has no member
named 'SetPlayer'
src/MainWindow.hxx:143: error: 'class Ui::MainWindow' has no member
named 'action_Show_processing_toolbox'
src/MainWindow.hxx:144: error: 'class Ui::MainWindow' has no member
named 'action_Show_processing_toolbox'
src/MainWindow.hxx:145: error: 'class Ui::MainWindow' has no member
named 'action_Print'
src/MainWindow.hxx:146: error: no matching function for call to
'MainWindow::connect(<type error>, const char [11], MainWindow* const,
const char [17])'
/Library/Frameworks/QtCore.framework/Headers/qobject.h:191: note:
candidates are: static bool QObject::connect(const QObject*, const
char*, const QObject*, const char*, Qt::ConnectionType)
/Library/Frameworks/QtCore.framework/Headers/qobject.h:292: note:
           bool QObject::connect(const QObject*, const char*, const
char*, Qt::ConnectionType) const
src/MainWindow.hxx:147: error: no matching function for call to
'MainWindow::connect(<type error>, const char [42], MainWindow* const,
const char [49])'
/Library/Frameworks/QtCore.framework/Headers/qobject.h:191: note:
candidates are: static bool QObject::connect(const QObject*, const
char*, const QObject*, const char*, Qt::ConnectionType)
/Library/Frameworks/QtCore.framework/Headers/qobject.h:292: note:
           bool QObject::connect(const QObject*, const char*, const
char*, Qt::ConnectionType) const
src/MainWindow.hxx: In member function 'void
MainWindow::updatePlayStatusIndicator()':
src/MainWindow.hxx:153: error: '_canvas' was not declared in this scope
src/MainWindow.hxx:155: error: 'class CLAM::Network' has no member
named 'IsStopped'
src/MainWindow.hxx: In member function 'void MainWindow::updateRecentMenu()':
src/MainWindow.hxx:162: error: 'class Ui::MainWindow' has no member
named 'menuOpen_recent'
src/MainWindow.hxx:164: error: 'class Ui::MainWindow' has no member
named 'action_OpenToolbar'
src/MainWindow.hxx:171: error: 'class Ui::MainWindow' has no member
named 'menuOpen_recent'
src/MainWindow.hxx: In member function 'bool MainWindow::askUserSaveChanges()':
src/MainWindow.hxx:194: error: '_canvas' was not declared in this scope
src/MainWindow.hxx:202: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void MainWindow::load(const QString&)':
src/MainWindow.hxx:211: error: no matching function for call to
'CLAM::XmlStorage::Restore(CLAM::Network&, std::string&)'
/usr/local/include/CLAM/XMLStorage.hxx:115: note: candidates are:
static void CLAM::XmlStorage::Restore(CLAM::Component&, std::istream&)
/usr/local/include/CLAM/XMLStorage.hxx:147: note:
static void CLAM::XmlStorage::Restore(CLAM::Component&, const
std::string&)
src/MainWindow.hxx:221: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void MainWindow::save(const QString&)':
src/MainWindow.hxx:233: error: '_canvas' was not declared in this scope
src/MainWindow.hxx:234: error: no matching function for call to
'CLAM::XmlStorage::Dump(CLAM::Network&, const char [8], std::string&)'
/usr/local/include/CLAM/XMLStorage.hxx:103: note: candidates are:
static void CLAM::XmlStorage::Dump(const CLAM::Component&, const
std::string&, std::ostream&, bool)
/usr/local/include/CLAM/XMLStorage.hxx:142: note:
static void CLAM::XmlStorage::Dump(const CLAM::Component&, const
std::string&, const std::string&)
src/MainWindow.hxx:235: error: '_canvas' was not declared in this scope
src/MainWindow.hxx:236: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void MainWindow::clear(bool)':
src/MainWindow.hxx:243: error: 'class CLAM::Network' has no member named 'Stop'
src/MainWindow.hxx:245: error: 'class CLAM::Network' has no member named 'Clear'
src/MainWindow.hxx:246: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'virtual void
MainWindow::closeEvent(QCloseEvent*)':
src/MainWindow.hxx:260: error: '_canvas' was not declared in this scope
src/MainWindow.hxx:261: error: 'class Ui::MainWindow' has no member
named 'action_White_colors_Option'
src/MainWindow.hxx: In member function 'void MainWindow::updateCaption()':
src/MainWindow.hxx:270: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void
MainWindow::openFileWithExternalApplicationFromProcessing()':
src/MainWindow.hxx:276: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void
MainWindow::endCompilationFaust(bool)':
src/MainWindow.hxx:280: error: 'class Ui::MainWindow' has no member
named 'action_Compile_Faust_Modules'
src/MainWindow.hxx: In member function 'void
MainWindow::closeCompilationWidget()':
src/MainWindow.hxx:288: error: 'class Ui::MainWindow' has no member
named 'action_Compile_Faust_Modules'
src/MainWindow.hxx: In member function 'void
MainWindow::on_action_Embed_SVG_Diagrams_Option_changed()':
src/MainWindow.hxx:295: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void
MainWindow::on_action_White_colors_Option_changed()':
src/MainWindow.hxx:302: error: '_canvas' was not declared in this scope
src/MainWindow.hxx:304: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void
MainWindow::on_action_Play_triggered()':
src/MainWindow.hxx:387: error: '_canvas' was not declared in this scope
src/MainWindow.hxx:396: error: 'class CLAM::Network' has no member
named 'IsEmpty'
src/MainWindow.hxx:402: error: 'class CLAM::Network' has no member
named 'HasMisconfiguredProcessings'
src/MainWindow.hxx:409: error: 'class CLAM::Network' has no member
named 'HasUnconnectedInPorts'
src/MainWindow.hxx:416: error: 'class CLAM::Network' has no member
named 'GetUnconnectedInPorts'
src/MainWindow.hxx:419: error: 'class CLAM::Network' has no member named 'Start'
src/MainWindow.hxx: In member function 'void
MainWindow::on_action_Stop_triggered()':
src/MainWindow.hxx:424: error: 'class CLAM::Network' has no member named 'Stop'
src/MainWindow.hxx: In member function 'void
MainWindow::on_action_Zoom_in_triggered()':
src/MainWindow.hxx:429: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void
MainWindow::on_action_Zoom_out_triggered()':
src/MainWindow.hxx:433: error: '_canvas' was not declared in this scope
src/MainWindow.hxx: In member function 'void
MainWindow::on_action_Default_zoom_triggered()':
src/MainWindow.hxx:437: error: '_canvas' was not declared in this scope
scons: *** [src/main.o] Error 1
scons: building terminated because of errors.


On Thu, Aug 7, 2008 at 9:14 PM, Natanael Olaiz <nolaiz at gmail.com> wrote:
> Which is your Qt version? qformlayout is since version 4.4 (see this thread:
> https://llistes.projectes.lafarga.cat/pipermail/clam-devel/2008/002535.html)
>
>
> Regards,
> Natanael.
>
> El 08/07/2008 09:53 PM, Han, Yushen escribió:
>>
>> Hi,
>>
>> After I updated my SCons 0.97 -> 0.98.4_1, the "addMethod" in SCons
>> problem is gone.
>>
>> I just checked out NE  svn11854 1 min ago.
>>
>> But it reported that qformlayout.h is missing when I was trying to install
>> it.
>> (The QTDIR was guessed correctly by itself)
>> There is no qformlayout.h in my /opt/local/include/qt4/...
>>
>> Is this a problem with my QT?
>>
>> Best regards,
>> Han, Yushen
>>
>> 156-56-219-141:NetworkEditor yushen$ sudo scons install
>> Password:
>> scons: Reading SConscript files ...
>>
>> scons: warning: QTDIR variable is not defined, using moc executable as
>> a hint (QTDIR=/opt/local)
>> File "/usr/local/share/clam/sconstools/qt4.py", line 208, in _detect
>> Loading nsis tool...
>> Loading Bundle tool
>> Lodading dmg tool...
>> Version:  1.3.0
>> Package version:  1.3.0~svn11854
>> scons: done reading SConscript files.
>> scons: Building targets ...
>> Install file: "resources/man/man1/NetworkEditor.1" as
>> "/usr/local/share/man/man1/NetworkEditor.1"
>> Install file: "resources/man/man1/Prototyper.1" as
>> "/usr/local/share/man/man1/Prototyper.1"
>> Install file: "resources/NetworkEditor-icon.svg" as
>> "/usr/local/share/networkeditor/NetworkEditor-icon.svg"
>> == Compiling src/main.cxx
>> == Compiling src/NetworkEditorVersion.cxx
>> == Compiling src/MainWindow.cxx
>> In file included from src/MainWindow.cxx:3:
>> src/generated/uic_LadspaMetadataEditor.hxx:26:25: error:
>> qformlayout.h: No such file or directory
>> src/generated/uic_LadspaMetadataEditor.hxx:40: error: ISO C++ forbids
>> declaration of 'QFormLayout' with no type
>> src/generated/uic_LadspaMetadataEditor.hxx:40: error: expected ';'
>> before '*' token
>> src/generated/uic_LadspaMetadataEditor.hxx: In member function 'void
>> Ui_LadspaMetadataEditor::setupUi(QDialog*)':
>> src/generated/uic_LadspaMetadataEditor.hxx:119: error: 'formLayout'
>> was not declared in this scope
>> src/generated/uic_LadspaMetadataEditor.hxx:119: error: expected
>> type-specifier before 'QFormLayout'
>> src/generated/uic_LadspaMetadataEditor.hxx:119: error: expected `;'
>> before 'QFormLayout'
>> src/generated/uic_LadspaMetadataEditor.hxx:121: error: 'QFormLayout'
>> has not been declared
>> src/generated/uic_LadspaMetadataEditor.hxx:121: error: 'WrapLongRows'
>> was not declared in this scope
>> src/generated/uic_LadspaMetadataEditor.hxx:197: error: no matching
>> function for call to 'QHBoxLayout::addLayout(<type error>)'
>> /opt/local/include/qt4/QtGui/qboxlayout.h:78: note: candidates are:
>> void QBoxLayout::addLayout(QLayout*, int)
>> scons: *** [src/MainWindow.o] Error 1
>> scons: building terminated because of errors.
>>
>> _______________________________________________
>> Clam-devel mailing list
>> Clam-devel at llistes.projectes.lafarga.org
>> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel
>>
>>
>
>
> _______________________________________________
> Clam-devel mailing list
> Clam-devel at llistes.projectes.lafarga.org
> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel
>




More information about the clam-devel mailing list