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

C# Wrapper Problems
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=383
Page 1 of 1

Author:  Blox [ Mon Apr 16, 2012 5:05 pm ]
Post subject:  C# Wrapper Problems

Hi All,

I'm trying to get a c# version of the tutorial
(http://www.volumesoffun.com/polyvox/documentation/documentation/tutorial1.html)
up and running,
However I'm having trouble getting the Binding Files setup properly as I end up not having access to things like "SimpleVolume" in any end product I have been able to compile.

One of the First issues I'm having is whenever I try to compile with the following lines in the SimpleVolume.i

Code:
%template(SimpleVolumeMaterial8) PolyVox::SimpleVolume<PolyVox::Material8>;
%template(SimpleVolumeDensity8) PolyVox::SimpleVolume<PolyVox::Density8>;


SWIG doesn't complain, but I get


Code:
error LNK2019: unresolved external symbol "public: __thiscall PolyVox::SimpleVolume<class PolyVox::Density<unsigned char> >::SimpleVolume<class PolyVox::Density<unsigned char> >(int,int,int)" (??0?$SimpleVolume@V?$Density@E@PolyVox@@@PolyVox@@$$FQAE@HHH@Z) referenced in function "extern "C" void * __stdcall CSharp_new_SimpleVolumeDensity8__SWIG_2(int,int,int)" (?CSharp_new_SimpleVolumeDensity8__SWIG_2@@$$J212YGPAXHHH@Z)   

error LNK2019: unresolved external symbol "public: __thiscall PolyVox::SimpleVolume<class PolyVox::Material<unsigned char> >::SimpleVolume<class PolyVox::Material<unsigned char> >(int,int,int)" (??0?$SimpleVolume@V?$Material@E@PolyVox@@@PolyVox@@$$FQAE@HHH@Z) referenced in function "extern "C" void * __stdcall CSharp_new_SimpleVolumeMaterial8__SWIG_2(int,int,int)" (?CSharp_new_SimpleVolumeMaterial8__SWIG_2@@$$J212YGPAXHHH@Z)   

error LNK2028: unresolved token (0A000EB9) "public: __thiscall PolyVox::SimpleVolume<class PolyVox::Density<unsigned char> >::SimpleVolume<class PolyVox::Density<unsigned char> >(int,int,int)" (??0?$SimpleVolume@V?$Density@E@PolyVox@@@PolyVox@@$$FQAE@HHH@Z) referenced in function "extern "C" void * __stdcall CSharp_new_SimpleVolumeDensity8__SWIG_2(int,int,int)" (?CSharp_new_SimpleVolumeDensity8__SWIG_2@@$$J212YGPAXHHH@Z)   

error LNK2028: unresolved token (0A000ED4) "public: __thiscall PolyVox::SimpleVolume<class PolyVox::Material<unsigned char> >::SimpleVolume<class PolyVox::Material<unsigned char> >(int,int,int)" (??0?$SimpleVolume@V?$Material@E@PolyVox@@@PolyVox@@$$FQAE@HHH@Z) referenced in function "extern "C" void * __stdcall CSharp_new_SimpleVolumeMaterial8__SWIG_2(int,int,int)" (?CSharp_new_SimpleVolumeMaterial8__SWIG_2@@$$J212YGPAXHHH@Z)   I:\Misc\Gms\Programming\PolyVoxCore_DLL_Step3\PolyVoxCore\PolyVoxCore_wrap.obj


Anyone have some advice on how to properly wrap PolyVox for c#,
or why I'm getting these errors?

Thanks!

Author:  David Williams [ Tue Apr 17, 2012 8:57 am ]
Post subject:  Re: C# Wrapper Problems

As mentioned here the bindings for PolyVox are not in good shape :-( The library is still changing too much so stuff keeps getting broken I'm afraid. You'll need good C++/SWIG knowledge to get them working.

If you want to try, the only advide I can give is to use the last stable release rather than the latest Git.

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