It is currently Sat Aug 22, 2020 3:40 pm


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Not sure how to compile PolyVox for C#
PostPosted: Sun Jul 24, 2011 2:02 pm 

Joined: Sun Jul 24, 2011 11:25 am
Posts: 1
Hi everyone,
So I'm new to PolyVox and this SWIG problem, but I've attempted to get some C# bindings for PolyVox.

Here's what I have got. I managed to get a bunch of .cs files from SWIG which I can put into my project and use, however I'm not sure how I compile a DLL for Polyvox. If I'm right I have to some how use the PolyVoxCore_wrap.cxx file which is generated by SWIG, but I am not sure how to. I used CMake (also new to this) to generate a Visual Studio project in the build directory and I built a DLL from there, and then I get errors in my project saying that the swig methods can't be found in the DLL. (I think it's because I didn't use that wrapper cxx file)

Can someone help with this?
Thanks! :)


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Not sure how to compile PolyVox for C#
PostPosted: Mon Jul 25, 2011 8:10 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I'm afraid I can't help you much here as I don't use these wrappers myself. I think to make use of them you'll need a reasonable knowledge of SWIG, C++, and C#. I have tested the Python bindings in the past but I don't recall exactly what was required.

You might find some useful info in this thread: viewtopic.php?f=14&t=216

Otherwie you might try sending the author of this thread(viewtopic.php?f=14&t=237) a private message to find out how he got it working.

Sorry I can't be more help...


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Not sure how to compile PolyVox for C#
PostPosted: Tue Sep 13, 2011 3:12 pm 

Joined: Wed Jun 01, 2011 8:10 pm
Posts: 18
Hey madjam002 !
I went through the process of compiling a wrapper for c# for Polyvox with the usage of swig.
You need to put the PolyVoxCore_wrap.xxx into your c++ project and compile it then.
After this make a c# project in which you insert all the .cs files and add the generated dll and add it to the references. Compile it again.
The result is your wrapper dll which you can use in other projects, just make sure you add the warpper dll AND the polyvoxcore.dll (with polyvoxcore_wrap inside) to your new projects.

If you still have problems feel free to contact me at floar [at] gmx .de, I can also send you my dll and or swig files if you get stuck and just want to have the wrapper.

regards floAr


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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