It is currently Sat Aug 22, 2020 1:45 pm


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: C# Wrapper Problems
PostPosted: Mon Apr 16, 2012 5:05 pm 

Joined: Thu Apr 12, 2012 4:47 pm
Posts: 1
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!


Top
Offline Profile  
Reply with quote  
 Post subject: Re: C# Wrapper Problems
PostPosted: Tue Apr 17, 2012 8:57 am 
Developer
User avatar

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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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