Re: [Celestia-developers] New celmodel module
Real-time 3D visualization of space
Status: Beta
Brought to you by:
cjlaurel
From: Fridger S. <fri...@de...> - 2010-02-19 10:58:43
|
> Fridger, > > Thanks for tracking this down. I still haven't set up a Linux virtual > machine, so I was unable to test this myself. Would you go ahead and > commit this change? > > --Chris Done! Next: errors in building cmodview ================================== As to building the cmodview project I get errors under Windows XP (Qt-> 4.5.2, QtCreator 1.3.0) using cmodview.pro "Cannot open include file: 'QGLShaderProgram': No such file or directory and 17 errors under Linux (Qt-> 4.3.1, QtCreator 1.3.0) using cmodview.pro ------------------------------------------- Running build steps for project cmodview... Starting: /usr/bin/make -w make: Entering directory `/home/t00fri/Develop/celestia-kde/src/tools/cmod' g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include/QtOpenGL -I/usr/include -I../.. -I../../../thirdparty/Eigen -I../../../thirdparty/glew/include -I/usr/X11R6/include -Ibuild -I. -o build/mainwindow.o mainwindow.cpp In file included from mainwindow.h:14, from mainwindow.cpp:12: modelviewwidget.h:15:28: error: QGLShaderProgram: No such file or directory In file included from mainwindow.h:14, from mainwindow.cpp:12: modelviewwidget.h:108: error: ISO C++ forbids declaration of ‘QGLShaderProgram’ with no type modelviewwidget.h:108: error: expected ‘;’ before ‘*’ token modelviewwidget.h:123: error: ‘QGLShaderProgram’ was not declared in this scope modelviewwidget.h:123: error: template argument 2 is invalid mainwindow.cpp: In constructor ‘MainWindow::MainWindow()’: mainwindow.cpp:106: error: ‘SaveAs’ is not a member of ‘QKeySequence’ mainwindow.cpp: In member function ‘void MainWindow::generateNormals()’: mainwindow.cpp:487: error: ‘QFormLayout’ was not declared in this scope mainwindow.cpp:487: error: ‘formLayout’ was not declared in this scope mainwindow.cpp:487: error: expected type-specifier before ‘QFormLayout’ mainwindow.cpp:487: error: expected `;' before ‘QFormLayout’ mainwindow.cpp: In member function ‘void MainWindow::generateTangents()’: mainwindow.cpp:550: error: ‘QFormLayout’ was not declared in this scope mainwindow.cpp:550: error: ‘formLayout’ was not declared in this scope mainwindow.cpp:550: error: expected type-specifier before ‘QFormLayout’ mainwindow.cpp:550: error: expected `;' before ‘QFormLayout’ mainwindow.cpp: In member function ‘void MainWindow::editBackgroundColor()’: mainwindow.cpp:688: error: no matching function for call to ‘QColorDialog::QColorDialog(QColor&, MainWindow* const)’ /usr/include/QtGui/qcolordialog.h:90: note: candidates are: QColorDialog::QColorDialog(const QColorDialog&) /usr/include/QtGui/qcolordialog.h:77: note: QColorDialog::QColorDialog(QWidget*, bool) /usr/include/QtGui/qcolordialog.h:76: error: ‘virtual QColorDialog::~QColorDialog()’ is private mainwindow.cpp:688: error: within this context make: *** [build/mainwindow.o] Error 1 make: Leaving directory `/home/t00fri/Develop/celestia-kde/src/tools/cmod' Exited with code 2. Error while building project cmodview When executing build step 'Make' ------------------------------------------- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I don't think it is a good idea to use the QGLShaderProgram class (and include file) that was only introduced in Qt 4.6! E.g. in Linux distros the versions are usually somewhat behind... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ That is also the reason why I get lots of errors, both with Qt 4.5.2 under Windows XP and with Qt 4.3.1 of my SuSE Linux installation. Fridger On 02/18/2010 08:01 PM, Chris Laurel wrote: > Fridger, > > Thanks for tracking this down. I still haven't set up a Linux virtual > machine, so I was unable to test this myself. Would you go ahead and > commit this change? > > --Chris > > On Thu, Feb 18, 2010 at 3:33 AM, Fridger Schrempp > <fri...@de...> wrote: >> Chris' recent commit 4977 produces an obvious error under *Linux*, since the >> src/celmodel/ directory is lacking a configure.in and Makefile after running >> the auto stuff. >> >> What needs to be done is to simply add the line >> >> AC_CONFIG_FILES([ src/celmodel/Makefile ]) >> >> in the main configure.in file in the celestia root dir. >> After running autoreconf -ivf >> >> the missing stuff is properly generated in src/celmodel and the code builds >> correctly. >> >> Under Windows XP r.4977 builds without errors. >> >> Fridger >> >> On 02/05/2010 09:13 PM, Chris Laurel wrote: >>> >>> I've committed some rather extensive changes to Celestia's mesh >>> loading code. The Qt project file, automake files, and MSVC++ project >>> file have all been updated, so you should be able to build without any >>> problems. However, I haven't actually been able to test the autotools >>> build. >>> >>> The biggest change is that the cmod loading code has been broken out >>> into a separate module called celmodel. As mentioned in my previous >>> message, I did this in order to improve code organization and to make >>> it much simpler build the cmod tools. I moved the code to actually >>> render models into celengine. This keeps the code to manipulate and >>> load models independent of any particular 3D graphics library. >>> >>> There are also some changes to the 3DS loading code. The loader now >>> properly supports 3ds files that use more than one material per mesh. >>> The loader has been simplified so that the intermediate 'VertexList' >>> structure is skipped (and it's probably time to eliminate the >>> vertexlist.h and vertexlist.cpp files, as they are now completely >>> obsolete.) >>> >>> As for the cmodtools... I've updated them to use celmodel and >>> Eigen-ized the the code. I still need to upload the new build scripts. >>> For now, this command line works to build cmodfix: >>> >>> g++ -O2 -o cmodfix cmodfix.cpp ../../celmodel/material.cpp >>> ../../celmodel/mesh.cpp ../../celmodel/model.cpp >>> ../../celmodel/modelfile.cpp -I ../../../thirdparty/Eigen -I ../.. >>> -DTARGET_OS_MAC >>> >>> I updated cmodfix to use fuzzy comparisons when generating surface >>> normals and tangents. This prevents creases in models with 'messy' >>> geometry: vertices and texture coordinates that should be identical, >>> but are slightly different do to floating point roundoff errors in >>> whatever tools were used to create the mesh. >>> >>> Finally, I've added a new Qt-based tool for previewing and converting >>> 3ds and cmod files. It's called cmodview, and the Qt project file is >>> in src/tools/cmod/cmodview.pro. It does everything that cmodfix and >>> 3dstocmod do, plus it shows a 3D view of the currently loaded model. >>> It's still a work in progress. Not all of the cmod material properties >>> are shown: specular maps, normal maps, and emissive maps aren't >>> handled yet. I plan to add basic material editing capabilities, making >>> it easy to change colors and textures. Hopefully, cmodview will make >>> the process of creating 3D models for Celestia much less painful for >>> everyone. Even if you're hand-editing or programmatically generating >>> cmod files, it's very handy to have a tool that can preview them >>> quickly. I've associated cmodview with the cmod and 3ds file >>> extensions on my Mac, so that the app starts automatically when I >>> double click one of these files. It should work on Windows too, but I >>> haven't tried yet. >>> >>> --Chris >>> >>> >>> ------------------------------------------------------------------------------ >>> The Planet: dedicated and managed hosting, cloud storage, colocation >>> Stay online with enterprise data centers and the best network in the >>> business >>> Choose flexible plans and management services without long-term contracts >>> Personal 24x7 support from experience hosting pros just a phone call away. >>> http://p.sf.net/sfu/theplanet-com >>> _______________________________________________ >>> Celestia-developers mailing list >>> Cel...@li... >>> https://lists.sourceforge.net/lists/listinfo/celestia-developers >> >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Celestia-developers mailing list > Cel...@li... > https://lists.sourceforge.net/lists/listinfo/celestia-developers |