It is currently Sat Aug 22, 2020 4:28 am


All times are UTC




Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Tutorial for Building PolyVox with CodeBlocks, MinGW, Og
PostPosted: Wed Sep 11, 2013 9:57 am 

Joined: Mon Sep 09, 2013 6:13 pm
Posts: 5
I am using CodeBlocks 12.11, MinGW seperate.
I did compile an Ogre3d Template before, and it worked fine,
but PolyVox combination causes some issues, also compiling PolyVox seperate as said in the tutorial went well too.

This are the VoxTest Project compilation fail logs:
Build Log: http://pastebin.com/jPqxbauq
Build Messages: http://pastebin.com/0rZtTLts


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Tutorial for Building PolyVox with CodeBlocks, MinGW, Og
PostPosted: Wed Sep 11, 2013 10:56 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Ah, yes, the full logs make it much clearer:

Code:
F:\Programing\C++\Ogre3d\VoxTest\VoxTestApplication.cpp|29|error: variable or field 'createSphereInVolume' declared void|
F:\Programing\C++\Ogre3d\VoxTest\VoxTestApplication.cpp|29|error: 'SimpleVolume' was not declared in this scope|
F:\Programing\C++\Ogre3d\VoxTest\VoxTestApplication.cpp|29|note: suggested alternative:|
F:\SDK\PolyVox\library\PolyVoxCore\include\PolyVoxCore\SimpleVolume.h|44|note:   'PolyVox::SimpleVolume'|
F:\Programing\C++\Ogre3d\VoxTest\VoxTestApplication.cpp|29|error: expected primary-expression before '>' token|
F:\Programing\C++\Ogre3d\VoxTest\VoxTestApplication.cpp|29|error: 'volData' was not declared in this scope|
F:\Programing\C++\Ogre3d\VoxTest\VoxTestApplication.cpp|29|error: expected primary-expression before 'float'|


The second error here shows that it doesn't know what 'SimpleVolume' is. You have included the header but you also need to specify the namespace. Try adding 'using namespace PolyVox' near the top of your .cpp file (but after you include the headers):

Code:
#include "VoxTestApplication.h"

using namespace PolyVox; // <--- Add this
 
//-------------------------------------------------------------------------------------
VoxTestApplication::VoxTestApplication(void)


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Tutorial for Building PolyVox with CodeBlocks, MinGW, Og
PostPosted: Wed Sep 11, 2013 2:03 pm 

Joined: Mon Sep 09, 2013 6:13 pm
Posts: 5
Woot! It actualy worked :D
Someone should make a base wizard for PolyVox, so none should ever have this kind problems.
Ps. there needs a namespace std added too (cerr in createScane)

Ps. Ps. Any good tutorials I could follow?


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2

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