← Back to team overview

yade-dev team mailing list archive

Re: error r2228

 

2010/5/15 Václav Šmilauer <eudoxos@xxxxxxxx>

> > does it work for you the last release (r2228)? I got the following
> > error.
>
> Hi Chiara,
>
> I don't have this error, though I had a similar one when doing something
> with the qt3 files -- IIRC it was the .h file being created in the
> source gui/qt3/ directory by the qt3 designer, then it was not copied to
> the build tree and failed.
>
> Check with bzr st that you don't have extra files in gui/qt3; then
> rm /home/chia/Documents/build-bzr2228-Hertz/gui/qt3/*.h and run scons
> again. You should see it processing several .ui files, which creates
> those headers. Compilation should then proceed normally.
>

Hi,

I tried the way you suggest but it does not compile (see below; was it
correct to delete all the .h files right?). Then I also tried to download
last release and run scons again, but again I need to run it twice otherwise
it gives me errors (as in my previous mail). Instead compiling with jobs=1
goes always well (Janek was right). Btw, I have not done anything with qt3
files.

cheers, Chiara

---------
scons: Reading SConscript files ...
@@@ Using profile default (scons.profile-default) @@@
Yade version is `bzr2218-Hertz' (bzr2218), installed files will be suffixed
with `-bzr2218-Hertz'.
All intermediary files will be in
`/home/chia/Documents/build-bzr2218-Hertz'.
Mkdir("/home/chia/Documents/build-bzr2218-Hertz")
Checking whether c++ compiler "g++" works...yes
Finding libstdc++ library... (cached)
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/libstdc++.so
Checking for pthread_exit(NULL) in C library pthread... yes
Checking for boost::system::error_code(); /* non-essential */ in C++ library
boost_system-mt... no
Checking for boost::system::error_code(); /* non-essential */ in C++ library
boost_system... no
Checking for boost::thread() in C++ library boost_thread-mt... yes
Checking for boost::posix_time::time_duration() in C++ library
boost_date_time-mt... yes
Checking for boost::filesystem::path() in C++ library boost_filesystem-mt...
yes
Checking for boost::iostreams::file_sink("") in C++ library
boost_iostreams-mt... yes
Checking for boost::regex("") in C++ library boost_regex-mt... yes
Checking for try{} catch (const boost::archive::archive_exception& e) {} in
C++ library boost_serialization-mt... yes
Checking for boost::program_options::options_description o in C++ library
boost_program_options-mt... yes
Checking for C++ header file boost/foreach.hpp... yes
Checking for sqlite3_close(0L) in C++ library sqlite3... yes
Checking for Python development files... yes
/var/lib/python-support/python2.6/IPython/Magic.py:38: DeprecationWarning:
the sets module is deprecated
  from sets import Set
Checking for python module `IPython' ...(cached) yes
Checking for boost::python::scope() in C++ library boost_python-mt... yes
Checking for C++ header file numpy/ndarrayobject.h... yes
Checking for C++ header file Eigen/Core... yes
Checking for glutGetModifiers() in C++ library glut... yes
Checking for qt-mt in /usr/share/qt3... yes
Checking for vtkInstantiator::New() in C++ library vtkCommon... yes
Checking for gts_object_class() in C++ library gts... yes
Checking for log4cxx::Logger::getLogger("") in C++ library log4cxx... yes
scons: done reading SConscript files.
scons: Building targets ...
⇒ /home/chia/YADE-r2218-Hertz/bin/yade-bzr2218-Hertz
Chmod("/home/chia/YADE-r2218-Hertz/bin/yade-bzr2218-Hertz", 0755)
C gui/qt3/FileDialog.cpp
⇒ /home/chia/YADE-r2218-Hertz/bin/yade-bzr2218-Hertz-multi
Chmod("/home/chia/YADE-r2218-Hertz/bin/yade-bzr2218-Hertz-multi", 0755)
gui/qt3/FileDialog.cpp:9:26: error: FileDialog.hpp: No such file or
directory
gui/qt3/FileDialog.cpp:18: error: 'FileDialog' has not been declared
gui/qt3/FileDialog.cpp:18: error: expected ',' or '...' before '&' token
gui/qt3/FileDialog.cpp:18: error: ISO C++ forbids declaration of
'FileDialog' with no type
gui/qt3/FileDialog.cpp:18: error: ISO C++ forbids declaration of 'QString'
with no type
gui/qt3/FileDialog.cpp: In function 'int FileDialog(int)':
gui/qt3/FileDialog.cpp:18: error: only constructors take base initializers
gui/qt3/FileDialog.cpp:18: error: 'directory' was not declared in this scope
gui/qt3/FileDialog.cpp:18: error: 'filters' was not declared in this scope
gui/qt3/FileDialog.cpp:18: error: 'parent' was not declared in this scope
gui/qt3/FileDialog.cpp:20: error: 'caption' was not declared in this scope
gui/qt3/FileDialog.cpp:20: error: 'setCaption' was not declared in this
scope
gui/qt3/FileDialog.cpp:22: error: 'QSize' was not declared in this scope
gui/qt3/FileDialog.cpp:22: error: expected `;' before 's1'
gui/qt3/FileDialog.cpp:23: error: expected `;' before 's2'
gui/qt3/FileDialog.cpp:24: error: expected `;' before 's'
gui/qt3/FileDialog.cpp:25: error: 's' was not declared in this scope
gui/qt3/FileDialog.cpp:25: error: 'QPoint' was not declared in this scope
gui/qt3/FileDialog.cpp:25: error: 'reparent' was not declared in this scope
gui/qt3/FileDialog.cpp:27: error: 'show' was not declared in this scope
gui/qt3/FileDialog.cpp:29: warning: no return statement in function
returning non-void
gui/qt3/FileDialog.cpp: At global scope:
gui/qt3/FileDialog.cpp:32: error: expected constructor, destructor, or type
conversion before '::' token
gui/qt3/FileDialog.cpp:38: error: 'string' does not name a type
gui/qt3/FileDialog.cpp:52: error: 'string' does not name a type
gui/qt3/FileDialog.cpp:67: error: 'string' does not name a type
scons: *** [/home/chia/Documents/build-bzr2218-Hertz/gui/qt3/FileDialog.os]
Error 1
C gui/qt3/GLViewer.cpp
gui/qt3/GLViewer.cpp:11:23: error: GLViewer.hpp: No such file or directory
gui/qt3/GLViewer.cpp:12:20: error: QtGUI.hpp: No such file or directory
gui/qt3/GLViewer.cpp:13:25: error: YadeCamera.hpp: No such file or directory
gui/qt3/GLViewer.cpp:14:31: error: YadeQtMainWindow.hpp: No such file or
directory
gui/qt3/GLViewer.cpp:33: error: 'GLViewer' has not been declared
gui/qt3/GLViewer.cpp:35: error: 'GLLock' has not been declared
gui/qt3/GLViewer.cpp:35: error: expected constructor, destructor, or type
conversion before '(' token
gui/qt3/GLViewer.cpp:38: error: expected constructor, destructor, or type
conversion before '::' token
gui/qt3/GLViewer.cpp:41: error: 'GLViewer' has not been declared
gui/qt3/GLViewer.cpp: In function 'void updateGL()':
gui/qt3/GLViewer.cpp:41: error: 'QGLViewer' has not been declared
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:44: error: 'GLViewer' has not been declared
gui/qt3/GLViewer.cpp: In function 'void paintGL()':
gui/qt3/GLViewer.cpp:54: error: invalid use of 'this' in non-member function
gui/qt3/GLViewer.cpp:55: error: 'QGLViewer' has not been declared
gui/qt3/GLViewer.cpp:57: error: invalid use of 'this' in non-member function
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:60: error: expected constructor, destructor, or type
conversion before '::' token
gui/qt3/GLViewer.cpp:62: error: 'GLViewer' has not been declared
gui/qt3/GLViewer.cpp:62: error: 'OpenGLRenderingEngine' was not declared in
this scope
gui/qt3/GLViewer.cpp:62: error: template argument 1 is invalid
gui/qt3/GLViewer.cpp:62: error: 'QWidget' has not been declared
gui/qt3/GLViewer.cpp:62: error: 'QGLWidget' has not been declared
gui/qt3/GLViewer.cpp:62: error: ISO C++ forbids declaration of 'GLViewer'
with no type
gui/qt3/GLViewer.cpp: In function 'int GLViewer(int, int, int*, int*)':
gui/qt3/GLViewer.cpp:62: error: only constructors take base initializers
gui/qt3/GLViewer.cpp:64: error: 'isMoving' was not declared in this scope
gui/qt3/GLViewer.cpp:65: error: 'renderer' was not declared in this scope
gui/qt3/GLViewer.cpp:66: error: 'drawGridXYZ' was not declared in this scope
gui/qt3/GLViewer.cpp:67: error: 'drawScale' was not declared in this scope
gui/qt3/GLViewer.cpp:68: error: 'timeDispMask' was not declared in this
scope
gui/qt3/GLViewer.cpp:68: error: 'TIME_REAL' was not declared in this scope
gui/qt3/GLViewer.cpp:68: error: 'TIME_VIRT' was not declared in this scope
gui/qt3/GLViewer.cpp:68: error: 'TIME_ITER' was not declared in this scope
gui/qt3/GLViewer.cpp:69: error: 'viewId' was not declared in this scope
gui/qt3/GLViewer.cpp:70: error: 'cut_plane' was not declared in this scope
gui/qt3/GLViewer.cpp:71: error: 'cut_plane_delta' was not declared in this
scope
gui/qt3/GLViewer.cpp:72: error: 'grid_subdivision' was not declared in this
scope
gui/qt3/GLViewer.cpp:73: error: 'resize' was not declared in this scope
gui/qt3/GLViewer.cpp:75: error: 'setCaption' was not declared in this scope
gui/qt3/GLViewer.cpp:76: error: 'setCaption' was not declared in this scope
gui/qt3/GLViewer.cpp:77: error: 'setCaption' was not declared in this scope
gui/qt3/GLViewer.cpp:78: error: 'show' was not declared in this scope
gui/qt3/GLViewer.cpp:80: error: 'mouseMovesCamera' was not declared in this
scope
gui/qt3/GLViewer.cpp:81: error: 'manipulatedClipPlane' was not declared in
this scope
gui/qt3/GLViewer.cpp:83: error: 'manipulatedFrame' was not declared in this
scope
gui/qt3/GLViewer.cpp:83: error: expected type-specifier before 'qglviewer'
gui/qt3/GLViewer.cpp:83: error: expected `)' before 'qglviewer'
gui/qt3/GLViewer.cpp:83: error: 'setManipulatedFrame' was not declared in
this scope
gui/qt3/GLViewer.cpp:85: error: 'xyPlaneConstraint' was not declared in this
scope
gui/qt3/GLViewer.cpp:85: error: 'qglviewer' was not declared in this scope
gui/qt3/GLViewer.cpp:85: error: template argument 1 is invalid
gui/qt3/GLViewer.cpp:85: error: expected type-specifier before 'qglviewer'
gui/qt3/GLViewer.cpp:85: error: expected `)' before 'qglviewer'
gui/qt3/GLViewer.cpp:88: error: 'manipulatedFrame' was not declared in this
scope
gui/qt3/GLViewer.cpp:90: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:90: error: 'setKeyDescription' was not declared in this
scope
gui/qt3/GLViewer.cpp:91: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:91: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:92: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:93: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:94: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:95: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:96: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:97: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:98: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:98: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:99: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:100: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:101: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:102: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:103: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:104: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:105: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:106: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:107: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:109: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:109: error: 'setPathKey' was not declared in this scope
gui/qt3/GLViewer.cpp:110: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:111: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:112: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:113: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:114: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:114: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:115: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:116: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:118: error: 'centerScene' was not declared in this
scope
gui/qt3/GLViewer.cpp:119: warning: no return statement in function returning
non-void
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:121: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: In function 'void mouseMovesCamera()':
gui/qt3/GLViewer.cpp:122: error: 'camera' was not declared in this scope
gui/qt3/GLViewer.cpp:124: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:124: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:124: error: 'SELECT' was not declared in this scope
gui/qt3/GLViewer.cpp:124: error: 'setMouseBinding' was not declared in this
scope
gui/qt3/GLViewer.cpp:126: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:126: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:126: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:126: error: 'FRAME' was not declared in this scope
gui/qt3/GLViewer.cpp:126: error: 'ZOOM' was not declared in this scope
gui/qt3/GLViewer.cpp:127: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:127: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:127: error: 'TRANSLATE' was not declared in this scope
gui/qt3/GLViewer.cpp:128: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:128: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:128: error: 'ROTATE' was not declared in this scope
gui/qt3/GLViewer.cpp:129: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:129: error: 'setWheelBinding' was not declared in this
scope
gui/qt3/GLViewer.cpp:131: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:131: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:131: error: 'CAMERA' was not declared in this scope
gui/qt3/GLViewer.cpp:132: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:133: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:134: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp:135: error: 'Qt' has not been declared
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:138: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp:138: error: variable or field
'mouseMovesManipulatedFrame' declared void
gui/qt3/GLViewer.cpp:138: error: 'qglviewer' has not been declared
gui/qt3/GLViewer.cpp:138: error: 'c' was not declared in this scope
gui/qt3/GLViewer.cpp:147: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: In function 'bool isManipulating()':
gui/qt3/GLViewer.cpp:148: error: 'isMoving' was not declared in this scope
gui/qt3/GLViewer.cpp:148: error: 'manipulatedClipPlane' was not declared in
this scope
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:151: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: In function 'void resetManipulation()':
gui/qt3/GLViewer.cpp:153: error: 'setSelectedName' was not declared in this
scope
gui/qt3/GLViewer.cpp:154: error: 'isMoving' was not declared in this scope
gui/qt3/GLViewer.cpp:155: error: 'manipulatedClipPlane' was not declared in
this scope
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:158: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: In function 'void startClipPlaneManipulation(int)':
gui/qt3/GLViewer.cpp:161: error: 'xyPlaneConstraint' was not declared in
this scope
gui/qt3/GLViewer.cpp:161: error: 'mouseMovesManipulatedFrame' was not
declared in this scope
gui/qt3/GLViewer.cpp:162: error: 'manipulatedClipPlane' was not declared in
this scope
gui/qt3/GLViewer.cpp:163: error: 'renderer' was not declared in this scope
gui/qt3/GLViewer.cpp:164: error: 'manipulatedFrame' was not declared in this
scope
gui/qt3/GLViewer.cpp:164: error: 'qglviewer' has not been declared
gui/qt3/GLViewer.cpp:164: error: 'qglviewer' has not been declared
gui/qt3/GLViewer.cpp:165: error: 'strBoundGroup' was not declared in this
scope
gui/qt3/GLViewer.cpp:166: error: 'displayMessage' was not declared in this
scope
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:169: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: In function 'void useDisplayParameters(size_t)':
gui/qt3/GLViewer.cpp:179: error: 'renderer' was not declared in this scope
gui/qt3/GLViewer.cpp:183: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:187: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: In function 'void saveDisplayParameters(size_t)':
gui/qt3/GLViewer.cpp:196: error: 'renderer' was not declared in this scope
gui/qt3/GLViewer.cpp:199: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:202: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: In function 'std::string getState()':
gui/qt3/GLViewer.cpp:203: error: 'QString' was not declared in this scope
gui/qt3/GLViewer.cpp:203: error: expected `;' before 'origStateFileName'
gui/qt3/GLViewer.cpp:205: error: 'setStateFileName' was not declared in this
scope
gui/qt3/GLViewer.cpp:205: error: 'saveStateToFile' was not declared in this
scope
gui/qt3/GLViewer.cpp:205: error: 'origStateFileName' was not declared in
this scope
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:214: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp: In function 'void setState(std::string)':
gui/qt3/GLViewer.cpp:220: error: 'QString' was not declared in this scope
gui/qt3/GLViewer.cpp:220: error: expected `;' before 'origStateFileName'
gui/qt3/GLViewer.cpp:220: error: 'setStateFileName' was not declared in this
scope
gui/qt3/GLViewer.cpp:220: error: 'restoreStateFromFile' was not declared in
this scope
gui/qt3/GLViewer.cpp:220: error: 'origStateFileName' was not declared in
this scope
gui/qt3/GLViewer.cpp: At global scope:
gui/qt3/GLViewer.cpp:224: error: 'GLViewer' is not a class or namespace
gui/qt3/GLViewer.cpp:224: error: variable or field 'keyPressEvent' declared
void
gui/qt3/GLViewer.cpp:224: error: 'QKeyEvent' was not declared in this scope
gui/qt3/GLViewer.cpp:224: error: 'e' was not declared in this scope
scons: *** [/home/chia/Documents/build-bzr2218-Hertz/gui/qt3/GLViewer.os]
Error 1
scons: building terminated because of errors.


> HTH, Vaclav
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help   : https://help.launchpad.net/ListHelp
>

References