Compile error of the current trunk on Lucid

Bug #582679 reported by Anton Gladky
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Yade
Fix Released
Undecided
Unassigned

Bug Description

As reported by Chiara and later confirmed by other people (me too),

http://<email address hidden>/msg03802.html

there are some problems with compiling the trunk.
The second "scons" typing fixes the problem.

In file included from gui/qt3/YadeQtMainWindow.hpp:15,
                 from gui/qt3/GLViewer.hpp:9,
                 from gui/qt3/GLViewer.cpp:11:
/home/chia/Documents/build-bzr2228-Hertz/include/yade-bzr2228-Hertz/yade/gui-qt3/SimulationController.hpp:21:44:
error: QtGeneratedSimulationController.h: No such file or directory
In file included from gui/qt3/YadeQtMainWindow.hpp:15,
                 from gui/qt3/QtFileGenerator.cpp:25:
/home/chia/Documents/build-bzr2228-Hertz/include/yade-bzr2228-Hertz/yade/gui-qt3/SimulationController.hpp:21:44:
error: QtGeneratedSimulationController.h: No such file or directory
In file included from gui/qt3/YadeQtMainWindow.hpp:15,
                 from gui/qt3/GLViewer.hpp:9,
                 from gui/qt3/GLViewer.cpp:11:
/home/chia/Documents/build-bzr2228-Hertz/include/yade-bzr2228-Hertz/yade/gui-qt3/SimulationController.hpp:24:
error: expected class-name before '{' token
In file included from gui/qt3/GLViewer.hpp:9,
                 from gui/qt3/GLViewer.cpp:11:
gui/qt3/YadeQtMainWindow.hpp:24: error: 'GLViewer' was not declared in this
scope
gui/qt3/YadeQtMainWindow.hpp:24: error: template argument 1 is invalid
gui/qt3/YadeQtMainWindow.hpp:24: error: template argument 1 is invalid
gui/qt3/YadeQtMainWindow.hpp:24: error: template argument 2 is invalid
gui/qt3/YadeQtMainWindow.hpp:26: error: 'GLViewer' was not declared in this
scope
gui/qt3/YadeQtMainWindow.hpp:26: error: template argument 1 is invalid
gui/qt3/YadeQtMainWindow.hpp:34: error: 'GLViewer' has not been declared
gui/qt3/YadeQtMainWindow.hpp:41: error: 'GLViewer' was not declared in this
scope
gui/qt3/YadeQtMainWindow.hpp:41: error: template argument 1 is invalid
gui/qt3/YadeQtMainWindow.hpp: In member function 'size_t
YadeQtMainWindow::viewsSize()':
gui/qt3/YadeQtMainWindow.hpp:36: error: request for member 'size' in
'((YadeQtMainWindow*)this)->YadeQtMainWindow::glViews', which is of
non-class type 'int'
gui/qt3/YadeQtMainWindow.hpp: In member function 'virtual void
YadeQtMainWindow::createController()':
gui/qt3/YadeQtMainWindow.hpp:60: error: no matching function for call to
'YadeQtMainWindow::connect(SimulationController*, const char [15],
YadeQtMainWindow* const, const char [19])'
/usr/share/qt3/include/qobject.h:119: note: candidates are: static bool
QObject::connect(const QObject*, const char*, const QObject*, const char*)
/usr/share/qt3/include/qobject.h:229: note: bool
QObject::connect(const QObject*, const char*, const char*) const
gui/qt3/YadeQtMainWindow.hpp:60: error: 'class SimulationController' has no
member named 'show'
gui/qt3/YadeQtMainWindow.hpp:60: error: 'class SimulationController' has no
member named 'show'
gui/qt3/YadeQtMainWindow.hpp:60: error: 'class SimulationController' has no
member named 'raise'
gui/qt3/GLViewer.cpp: In member function 'virtual void
GLViewer::closeEvent(QCloseEvent*)':
gui/qt3/GLViewer.cpp:696: error: invalid conversion from 'GLViewer* const'
to 'int'
gui/qt3/GLViewer.cpp:696: error: initializing argument 1 of 'void
YadeQtMainWindow::closeView(int)'
In file included from gui/qt3/YadeQtMainWindow.hpp:15,
                 from gui/qt3/QtFileGenerator.cpp:25:
/home/chia/Documents/build-bzr2228-Hertz/include/yade-bzr2228-Hertz/yade/gui-qt3/SimulationController.hpp:24:
error: expected class-name before '{' token
In file included from gui/qt3/QtFileGenerator.cpp:25:
gui/qt3/YadeQtMainWindow.hpp: In member function 'virtual void
YadeQtMainWindow::createController()':
gui/qt3/YadeQtMainWindow.hpp:60: error: no matching function for call to
'YadeQtMainWindow::connect(SimulationController*, const char [15],
YadeQtMainWindow* const, const char [19])'
/usr/share/qt3/include/qobject.h:119: note: candidates are: static bool
QObject::connect(const QObject*, const char*, const QObject*, const char*)
/usr/share/qt3/include/qobject.h:229: note: bool
QObject::connect(const QObject*, const char*, const char*) const
gui/qt3/YadeQtMainWindow.hpp:60: error: 'class SimulationController' has no
member named 'show'
gui/qt3/YadeQtMainWindow.hpp:60: error: 'class SimulationController' has no
member named 'show'
gui/qt3/YadeQtMainWindow.hpp:60: error: 'class SimulationController' has no
member named 'raise'
scons: *** [/home/chia/Documents/build-bzr2228-Hertz/gui/qt3/GLViewer.os]
Error 1
scons: ***
[/home/chia/Documents/build-bzr2228-Hertz/gui/qt3/QtFileGenerator.os] Error
1
scons: building terminated because of errors.

Related branches

Revision history for this message
Anton Gladky (gladky-anton) wrote :

Hmm,

http://bazaar.launchpad.net/~yade-dev/yade/trunk/annotate/head:/gui/qt3/SimulationController.hpp#L21
here we have:

#include"QtGeneratedSimulationController.h"

But I do not see this file in a trunk at all.
Only QtGeneratedSimulationController.ui

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

That file is autogenerated. Try r2241 and close if appropriate.

Changed in yade:
status: New → Confirmed
Revision history for this message
Anton Gladky (gladky-anton) wrote :

No, sorry, r2241 does not fix the problem.

Changed in yade:
milestone: none → 0.5
Revision history for this message
Anton Gladky (gladky-anton) wrote :

r2261 resolves the problem.
Thanks, Vaclav!

I close the bug.

Changed in yade:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.