It is currently Sat Aug 22, 2020 5:45 am


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: PolyVox compilation errors
PostPosted: Thu Feb 04, 2010 11:50 am 

Joined: Thu Feb 04, 2010 11:47 am
Posts: 1
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! :)


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox compilation errors
PostPosted: Sat Feb 06, 2010 5:56 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
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...


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox compilation errors
PostPosted: Fri Feb 19, 2010 9:25 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Ok, I have made these changes in SVN. Hopefully PolyVox will build on Linux again now.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox compilation errors
PostPosted: Tue Feb 23, 2010 8:50 pm 
Developer
User avatar

Joined: Sun May 11, 2008 4:29 pm
Posts: 198
Location: UK
I've checked out these changes and they work just fine here.

_________________
Matt Williams
Linux/CMake guy


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox compilation errors
PostPosted: Wed Feb 24, 2010 9:24 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Ah, great, thanks for testing.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net