Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

PolyVox compilation errors
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=2&t=58
Page 1 of 1

Author:  ObLoM [ Thu Feb 04, 2010 11:50 am ]
Post subject:  PolyVox compilation errors

Code:
[  4%] Building CXX object library/PolyVoxCore/CMakeFiles/PolyVoxCore.dir/source/GradientEstimators.cpp.o
In file included from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/Volume.h:191,
                 from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/PolyVoxImpl/Block.inl:29,
                 from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/PolyVoxImpl/Block.h:67,
                 from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/VolumeSampler.inl:27,
                 from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/VolumeSampler.h:109,
                 from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/GradientEstimators.h:29,
                 from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/source/GradientEstimators.cpp:24:
/home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/Volume.inl: In member function ‘PolyVox::uint32_t PolyVox::Volume<VoxelType>::calculateSizeInChars()’:
/home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/Volume.inl:393: error: expected ‘;’ before ‘iter’
/home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/Volume.inl:393: error: ‘iter’ was not declared in this scope
make[2]: *** [library/PolyVoxCore/CMakeFiles/PolyVoxCore.dir/source/GradientEstimators.cpp.o] Error 1
make[1]: *** [library/PolyVoxCore/CMakeFiles/PolyVoxCore.dir/all] Error 2
make: *** [all] Error 2


This is what I get when I try to compile PolyVox. I'm not really sure what the problem is - I've even tried to rewrite that loop into a while loop but I still get the same error.

I'm on Ubuntu 9.10, using gcc 4.4.1, which may be a part of the problem (not sure). Help if you can! :)

Author:  David Williams [ Sat Feb 06, 2010 5:56 pm ]
Post subject:  Re: PolyVox compilation errors

Hi, sorry for the slow reply. It looks like I've neglected the Linux version again so apologies for that. I was experimenting with some third party code (which I'm not going to keep). However, I just made it build on Linux so here is what you need to do:

1) Remove calculateSizeInchars function from Volume.inl and Volume.h (this function was for testing and isn't needed.)
2) Remove the following files both from disk and also from polyvox/trunk/library/PolyVoxCore/CMakeLists.txt:
progmesh.cpp
progmesh.h
vector.cpp
vector_melax.h
list.h
3) Remove #include "progmesh.h" from IndexedSurfacePatch.cpp
4) Remove call to calculateSizeInChars from main.cpp
5) Remove #include "RenderDynamicMesh.h" from OpenGLWidget.cpp
6) Remove the function 'makeProgressiveMesh' from IndexedSurfacePatch.h and .cpp

After doing the above it build and runs on my Suse Linux machine. I'll try and fix this stuff when I can because it's completely breaking the Linux build.

Hope that helps...

Author:  David Williams [ Fri Feb 19, 2010 9:25 pm ]
Post subject:  Re: PolyVox compilation errors

Ok, I have made these changes in SVN. Hopefully PolyVox will build on Linux again now.

Author:  milliams [ Tue Feb 23, 2010 8:50 pm ]
Post subject:  Re: PolyVox compilation errors

I've checked out these changes and they work just fine here.

Author:  David Williams [ Wed Feb 24, 2010 9:24 am ]
Post subject:  Re: PolyVox compilation errors

Ah, great, thanks for testing.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/