Volumes Of Fun http://www.volumesoffun.com/phpBB3/ |
|
Some compile errors http://www.volumesoffun.com/phpBB3/viewtopic.php?f=2&t=57 |
Page 1 of 1 |
Author: | calsmurf2904 [ Tue Dec 22, 2009 1:22 am ] |
Post subject: | Some compile errors |
Hello, Normally I would be able to solve such compile errors, but these are just missing includes files. I tried compiling the Thermite engine (or even QtOgre) and I first got a few issues with CMake (QT4_X commands where missing, I removed those from the CMakeLists.txt...not the smartest choice). After that I tried compiling in Release mode, and I got a few missing includes. This is the full compile log of Thermite (I know the application.h and GameLogic.h is from QtOgre): Code: 1>------ Build started: Project: Thermite, Configuration: Release Win32 ------ 1>Compiling... 1>VolumeSerializationProgressListenerImpl.cpp 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\Region.h(60) : warning C4251: 'PolyVox::Region::m_v3dLowerCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\Region.h(61) : warning C4251: 'PolyVox::Region::m_v3dUpperCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>D:\Thermite\Thermite\trunk\Thermite\include\ThermiteGameLogic.h(28) : fatal error C1083: Cannot open include file: 'GameLogic.h': No such file or directory 1>VolumeResource.cpp 1>VolumeManager.cpp 1>Utility.cpp 1>ThermiteGameLogic.cpp 1>D:\Thermite\Thermite\trunk\Thermite\include\ThermiteGameLogic.h(28) : fatal error C1083: Cannot open include file: 'GameLogic.h': No such file or directory 1>SurfacePatchRenderable.cpp 1>c:\ogresdk\include\WIN32/OgreTimerImp.h(33) : warning C4005: 'NOMINMAX' : macro redefinition 1> command-line arguments : see previous definition of 'NOMINMAX' 1>..\source\SurfacePatchRenderable.cpp(28) : fatal error C1083: Cannot open include file: 'Application.h': No such file or directory 1>SurfaceExtractorThread.cpp 1>d:\thermite\polyvox\trunk\library\polyvoxcore\include\Region.h(60) : warning C4251: 'PolyVox::Region::m_v3dLowerCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>d:\thermite\polyvox\trunk\library\polyvoxcore\include\Region.h(61) : warning C4251: 'PolyVox::Region::m_v3dUpperCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\SurfaceExtractor.h(80) : warning C4251: 'PolyVox::SurfaceExtractor::m_volData' : class 'PolyVox::Volume<VoxelType>' needs to have dll-interface to be used by clients of class 'PolyVox::SurfaceExtractor' 1> with 1> [ 1> VoxelType=PolyVox::uint8_t 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\SurfaceExtractor.h(81) : warning C4251: 'PolyVox::SurfaceExtractor::m_sampVolume' : class 'PolyVox::VolumeSampler<VoxelType>' needs to have dll-interface to be used by clients of class 'PolyVox::SurfaceExtractor' 1> with 1> [ 1> VoxelType=PolyVox::uint8_t 1> ] 1>SurfaceExtractorTaskData.cpp 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\Region.h(60) : warning C4251: 'PolyVox::Region::m_v3dLowerCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\Region.h(61) : warning C4251: 'PolyVox::Region::m_v3dUpperCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>Shell.cpp 1>PhysicalEntity.cpp 1>MultiThreadedSurfaceExtractor.cpp 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\Region.h(60) : warning C4251: 'PolyVox::Region::m_v3dLowerCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\Region.h(61) : warning C4251: 'PolyVox::Region::m_v3dUpperCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\SurfaceExtractor.h(80) : warning C4251: 'PolyVox::SurfaceExtractor::m_volData' : class 'PolyVox::Volume<VoxelType>' needs to have dll-interface to be used by clients of class 'PolyVox::SurfaceExtractor' 1> with 1> [ 1> VoxelType=PolyVox::uint8_t 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\SurfaceExtractor.h(81) : warning C4251: 'PolyVox::SurfaceExtractor::m_sampVolume' : class 'PolyVox::VolumeSampler<VoxelType>' needs to have dll-interface to be used by clients of class 'PolyVox::SurfaceExtractor' 1> with 1> [ 1> VoxelType=PolyVox::uint8_t 1> ] 1>..\source\MultiThreadedSurfaceExtractor.cpp(28) : fatal error C1083: Cannot open include file: 'QMutex': No such file or directory 1>MapResource.cpp 1>D:\Thermite\Thermite\trunk\Thermite\include\MapHandler.h(27) : fatal error C1083: Cannot open include file: 'DotSceneHandler.h': No such file or directory 1>MapRegion.cpp 1>d:\thermite\polyvox\trunk\library\polyvoxcore\include\Region.h(60) : warning C4251: 'PolyVox::Region::m_v3dLowerCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>d:\thermite\polyvox\trunk\library\polyvoxcore\include\Region.h(61) : warning C4251: 'PolyVox::Region::m_v3dUpperCorner' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::Region' 1> with 1> [ 1> Size=3, 1> Type=PolyVox::int16_t 1> ] 1>d:\thermite\polyvox\trunk\library\polyvoxcore\include\SurfaceVertex.h(53) : warning C4251: 'PolyVox::SurfaceVertex::position' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::SurfaceVertex' 1> with 1> [ 1> Size=3, 1> Type=float 1> ] 1>d:\thermite\polyvox\trunk\library\polyvoxcore\include\SurfaceVertex.h(54) : warning C4251: 'PolyVox::SurfaceVertex::normal' : class 'PolyVox::Vector<Size,Type>' needs to have dll-interface to be used by clients of class 'PolyVox::SurfaceVertex' 1> with 1> [ 1> Size=3, 1> Type=float 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\IndexedSurfacePatch.h(88) : warning C4251: 'PolyVox::IndexedSurfacePatch::m_vecTriangleIndices' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'PolyVox::IndexedSurfacePatch' 1> with 1> [ 1> _Ty=PolyVox::uint32_t 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\IndexedSurfacePatch.h(89) : warning C4251: 'PolyVox::IndexedSurfacePatch::m_vecVertices' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'PolyVox::IndexedSurfacePatch' 1> with 1> [ 1> _Ty=PolyVox::SurfaceVertex 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\IndexedSurfacePatch.h(91) : warning C4251: 'PolyVox::IndexedSurfacePatch::m_vecLodRecords' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'PolyVox::IndexedSurfacePatch' 1> with 1> [ 1> _Ty=PolyVox::LodRecord 1> ] 1>D:\Thermite\PolyVox\trunk\library\PolyVoxCore\include\IndexedSurfacePatch.h(96) : warning C4251: 'PolyVox::IndexedSurfacePatch::m_mapUsedMaterials' : class 'std::set<_Kty>' needs to have dll-interface to be used by clients of class 'PolyVox::IndexedSurfacePatch' 1> with 1> [ 1> _Kty=PolyVox::uint8_t 1> ] 1>..\source\MapRegion.cpp(28) : fatal error C1083: Cannot open include file: 'Application.h': No such file or directory 1>MapManager.cpp 1>MapHandler.cpp 1>D:\Thermite\Thermite\trunk\Thermite\include\MapHandler.h(27) : fatal error C1083: Cannot open include file: 'DotSceneHandler.h': No such file or directory 1>Map.cpp 1>..\source\Map.cpp(28) : fatal error C1083: Cannot open include file: 'Application.h': No such file or directory 1>MainMenu.cpp 1>D:\Thermite\Thermite\trunk\Thermite\include\MainMenu.h(27) : fatal error C1083: Cannot open include file: '../ui_MainMenu.h': No such file or directory 1>LoadMapWidget.cpp 1>D:\Thermite\Thermite\trunk\Thermite\include\LoadMapWidget.h(27) : fatal error C1083: Cannot open include file: 'ui_LoadMapWidget.h': No such file or directory 1>LoadingProgress.cpp 1>D:\Thermite\Thermite\trunk\Thermite\include\LoadingProgress.h(27) : fatal error C1083: Cannot open include file: 'ui_LoadingProgress.h': No such file or directory 1>DataStreamWrapper.cpp 1>Generating Code... 1>Compiling... 1>CannonController.cpp 1>D:\Thermite\Thermite\trunk\Thermite\include\CannonController.h(27) : fatal error C1083: Cannot open include file: 'ui_CannonController.h': No such file or directory 1>ApplicationGameLogic.cpp 1>d:\thermite\thermite\trunk\thermite\include\ThermiteGameLogic.h(28) : fatal error C1083: Cannot open include file: 'GameLogic.h': No such file or directory 1>AnyOption.cpp 1>..\source\AnyOption.cpp(133) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\string.h(74) : see declaration of 'strcpy' 1>..\source\AnyOption.cpp(282) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\string.h(74) : see declaration of 'strcpy' 1>..\source\AnyOption.cpp(852) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\string.h(74) : see declaration of 'strcpy' 1>..\source\AnyOption.cpp(867) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\string.h(74) : see declaration of 'strcpy' 1>..\source\AnyOption.cpp(882) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\string.h(74) : see declaration of 'strcpy' 1>..\source\AnyOption.cpp(897) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\string.h(74) : see declaration of 'strcpy' 1>main.cpp 1>..\source\main.cpp(24) : fatal error C1083: Cannot open include file: 'Application.h': No such file or directory 1>Generating Code... 1>Build log was saved at "file://d:\Thermite\Thermite\trunk\Thermite\build\Thermite.dir\Release\BuildLog.htm" 1>Thermite - 14 error(s), 27 warning(s) ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ========== I could probably solve the DotSceneHandler.h, but where are the ui_X.h files? Thanks in advance, Calsmurf2904 |
Author: | calsmurf2904 [ Tue Dec 22, 2009 3:32 pm ] |
Post subject: | Re: Some compile errors |
Nevermind, after trying to reconfigure with CMake with the QT4_X commands I found out that I didn't setup QT correctly. I did that now and QT seems to generate those files at compile time. |
Author: | David Williams [ Wed Dec 23, 2009 3:09 am ] |
Post subject: | Re: Some compile errors |
Ok, I'm glad you fixed it. Let me know if you have any more questions or problems, but I only have limited internet access at the moment so apologies in advance if it takes me a couple of days to reply. |
Author: | calsmurf2904 [ Wed Dec 23, 2009 10:30 am ] |
Post subject: | Re: Some compile errors |
Well, in the OpenGL example of PolyVox you create a static mesh of the volume. But how would one handle this when they would like for example the destructable terrains as you show in Thermite? This sounds alot more complexer because the OpenGL example create mesh takes quite long to accomplish, so this can't be done every step. (or only when the volume is changed) |
Author: | David Williams [ Thu Dec 24, 2009 2:14 pm ] |
Post subject: | Re: Some compile errors |
Running the marching cubes algorithm over the whole volume is indeed quite slow (btw, debug builds are very slow, be sure to test in release mode) and typically takes a few seconds. The trick is to break the volume into a number of regions, so that when you modify a voxel you only need to regenerate the mesh for the region which has changed. Actually the PolyVox demo already uses regions (although as you say it doesn't currently support modification). I won't have the code in front of me for the next three weeks or so but try searching for something like 'RegionSize'. Also, if you find where the 'extract surface' function (I forget the exact name) is called you should find it is in a three level 'for' loop which iterates over the regions and generates the meshes. Essentially, whenever you modify a voxel you need to mark it's corresponding region as having been modified. Then, later that frame or the next frame you can regenerate the mesh corresponding to that region. You can keep track of this yourself quite easily, or you can look at the VolumeChangeTracker as a utility class to handle this for you. Making the regions 1/8 the width, height, and depth of the volume is reasonable and gives 512 regions. Does that make sense? |
Author: | jaimerodriguez0325 [ Thu Jan 28, 2010 2:27 pm ] |
Post subject: | Re: Some compile errors |
hi you there someone who can help im from colombia i starting with qtogre im trying to find the DotSceneHandler Class. please is urgent. Thanks you!! sorry about my english ![]() |
Author: | jaimerodriguez0325 [ Thu Jan 28, 2010 2:30 pm ] |
Post subject: | Re: Some compile errors |
i forget something congratulations for your work and effort, is great ! im just an amateur but improving every day! |
Author: | David Williams [ Thu Jan 28, 2010 11:33 pm ] |
Post subject: | Re: Some compile errors |
Hi, the best place to find information about the QtOgre framework is here: http://www.ogre3d.org/forums/viewtopic.php?f=11&t=45709. The DotSceneHandler based on Qt can be found in the QtOgreFramework, which in turn can be found in the Ogre Addons SVN here: http://www.ogre3d.org/developers/addons But be aware that this class isn't finished, and only handles an small amount of DotScene files. You will probably be better off using a more complete DotScene loader such as this one: http://www.ogre3d.org/wiki/index.php/New_DotScene_Loader. You might also want to ask on the Ogre furums about which one is best to use. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |