Volumes Of Fun http://www.volumesoffun.com/phpBB3/ |
|
Not sure how to compile PolyVox for C# http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=250 |
Page 1 of 1 |
Author: | madjam002 [ Sun Jul 24, 2011 2:02 pm ] |
Post subject: | Not sure how to compile PolyVox for C# |
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! ![]() |
Author: | David Williams [ Mon Jul 25, 2011 8:10 pm ] |
Post subject: | Re: Not sure how to compile PolyVox for C# |
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... |
Author: | floAr [ Tue Sep 13, 2011 3:12 pm ] |
Post subject: | Re: Not sure how to compile PolyVox for C# |
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 |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |