[pdal] Where are the C# bindings?

Philipp games at philipp.info
Thu Nov 24 04:47:07 EST 2011


Hi,

I successfully compiled the PDAL dll, but there seems that the main
compilation (from pdal.sln) doesn't execute the swig.exe, so I manually
executed it as followed:

C:\dev\swigwin>swig.exe -csharp -IC:\dev\PDAL\include -o pdal_wrap.cpp
-c++ -outdir C:\dev\PDAL\csharp\pdal_swig_cpp\
C:\dev\PDAL\csharp\pdal_swig_cpp\pdal.i

The Files seems to be complete (even with the pdal_wrap.cpp).

But I think that this isn't the way to create the PDAL swig files, isn't
it ? Because I copied the .cs files in the pdal_swig_cs directory and the
.cpp/.h files in the pdal_swig_cpp directory, reopened the pdal_swig.sln
and tried to build a debug version of the solution.

During the compiling, it deleted me EVERY .cs File in the pdal_swig_cs
Directory and the pdal_swig_cpp failed with the error:

Error	89	error MSB6006: "cmd.exe" exited with code 9009.	C:\Program
Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets	151	6	pdal_swig_cpp

This error also occurs, when there is no pdal_wrapp.cpp.

thx for any help,

Philipp

>On 17 November 2011 22:17, Michael P. Gerlek <mpg at flaxen.com> wrote:
>> cmake doesn't handle the swig/C# stuff very well, so I manually
>> made a dedicated .sln for this.  There is also a README in that csharp/
>> directory.
>
>FYI, the SWIG says "CMake (...) allows easy cross platform SWIG
development."
>
>http://www.swig.org/Doc1.3/Introduction.html#Introduction_build_system
>
>Not sure what's the reality though :)
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>Charter Member of OSGeo, http://osgeo.org
>Member of ACCU, http://accu.org



More information about the pdal mailing list