C# mapscript not building correctly
The c# mapscript module is not building correctly for me. Here is the error:
scottell@arroyo ~/sandbox/mapserver-4.8.0-beta3/mapscript/csharp $ make
/usr/bin/swig -csharp -o mapscript_wrap.c ../mapscript.i
gcc -fpic -c -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_TTF
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DGD_HAS_GDIMAGEGIFPTR
mapscript_wrap.c
gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap -lgd
-L/usr/local/lib -lgd -ljpeg -lttf -lpng -lz -ltiff -ljpeg -lpng -lz -ljpeg -lm
mcs /t:library /out:mapscript_csharp.dll *.cs
syntax error, got token `ERROR'
imageObj.cs(104,12): error CS1002: Expecting `;'
Compilation failed: 1 error(s), 0 warnings
make: *** [mapscript_csharp] Error 1
This is on Gentoo Linux with mono 1.1.10 and swig-1.3.21. Both 4.6.2 and 4.8.0
are failing like this, but 4.6.0 builds fine. I'm no expert on SWIG, but it
looks like it is creating bad code, the error above points to:
public byte[] getBytes() {
mapscriptPINVOKE.imageObj_getBytes(swigCPtr);
return $modulePINVOKE.GetBytes();
}
Change History
(6)
Cc: |
szekeres.tamas@… added
|
Resolution: |
→ wontfix
|
Status: |
new → closed
|