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

Tutorial for Building PolyVox with CodeBlocks, MinGW, Ogre3D
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=522
Page 2 of 2

Author:  ZetaHunter [ Wed Sep 11, 2013 9:57 am ]
Post subject:  Re: Tutorial for Building PolyVox with CodeBlocks, MinGW, Og

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

Author:  David Williams [ Wed Sep 11, 2013 10:56 am ]
Post subject:  Re: Tutorial for Building PolyVox with CodeBlocks, MinGW, Og

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)

Author:  ZetaHunter [ Wed Sep 11, 2013 2:03 pm ]
Post subject:  Re: Tutorial for Building PolyVox with CodeBlocks, MinGW, Og

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?

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