|
From: Seth G <se...@ge...> - 2019-04-25 08:23:15
|
Hi William, Thanks for the reply. The output of ``swig -python -E ../mapscript.i`` is here: https://gist.githubusercontent.com/geographika/504859a6f08c8152d17f33d4e6a7c402/raw/a26a775ced4994d040b249c7ca77918ff1be70ea/swig_preprocessor.c I don't think any Python options are set for the SWIG command. The process is run via CMake as part of a larger build process, but I think the only flag CMake sets on SWIG is -py3 when building with Python3. CMake file: https://github.com/mapserver/mapserver/blob/branch-7-4/mapscript/python/CMakeLists.txt Generated mapscriptPYTHON_wrap.c - https://gist.githubusercontent.com/geographika/0c1bd5532620aec2d7c79792c09eeaa3/raw/5048916b0d7987d1cf9848f2cf7c7eda89afca3b/mapscriptPYTHON_wrap.c Build output - this includes the full MapServer CMake build output - the Python SWIGbindings output is at the end: https://gist.github.com/geographika/72fd1dec763aa01d38f7c4d515968225 Hopefully the above is of some help. Let me know if I can do anything else. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika On Wed, Apr 24, 2019, at 10:07 PM, William S Fulton wrote: > Hi Seth > > I can't see anything that would cause this. Could you post the preprocessed output that results from adding -E to the swig command line and the output of running a build including the full SWIG command line? > > William > > On Wed, 24 Apr 2019 at 17:33, Seth G <se...@ge...> wrote: >> __ >> Hi William / all, >> >> Many thanks for the new release. >> I've downloaded and built the beta and I'm trying it on the MapServer MapScript bindings - https://github.com/mapserver/mapserver/tree/branch-7-4/mapscript >> >> I'm getting a lot of errors for the Python bindings (which built fine in SWIG 3.0.12) : https://pastebin.com/E1W21FSd >> >> They are all of a similar nature relating to PyArg_ParseTuple e.g.: >> >> error: expected expression before ‘,’ token if (!PyArg_ParseTuple(args, "Oz:CompositingFilter_filter_set", , &arg2)) SWIG_fail; >> >> There are custom typemaps in the project so it could be related to these. >> https://github.com/mapserver/mapserver/blob/branch-7-4/mapscript/python/pymodule.i >> >> The PHP module is building fine - I've yet to test Perl and C#. >> >> Seth >> >> >> -- >> web:http://geographika.co.uk >> twitter: @geographika >> >> >> On Tue, Apr 16, 2019, at 9:06 AM, William S Fulton wrote: >>> I have finally made a beta version of SWIG 4.0.0 available for testing before making the official release. I aim to turn this into the official release on 27/28 April if there are no major issues reported, so please test it before then and send feedback via the Github issue tracker or replying to this email including the mailing lists. >>> >>> Download it from here: >>> >>> Source tarball: http://prdownloads.sourceforge.net/swig/swig-4.0.0-beta1.tar.gz >>> Windows prebuilt executable: http://prdownloads.sourceforge.net/swig/swigwin-4.0.0-beta1.zip >>> >>> Summary of changes: >>> >>> SWIG-4.0.0 summary: >>> - Support for Doxygen documentation comments which are parsed and >>> converted into JavaDoc or PyDoc comments. >>> - STL wrappers improved for C#, Java and Ruby. >>> - C++11 STL containers added for Java, Python and Ruby. >>> - Improved support for parsing C++11 and C++14 code. >>> - Various fixes for shared_ptr. >>> - Various C preprocessor corner case fixes. >>> - Corner case fixes for member function pointers. >>> - Python module overhaul by simplifying the generated code and turning >>> most optimizations on by default. >>> - %template improvements wrt scoping to align with C++ explicit >>> template instantiations. >>> - Added support for a command-line options file (sometimes called a >>> response file). >>> - Numerous enhancements and fixes for all supported target languages. >>> - SWIG now classifies the status of target languages into either >>> 'Experimental' or 'Supported' to indicate the expected maturity >>> level. >>> - Support for CFFI, Allegrocl, Chicken, CLISP, S-EXP, UFFI, Pike, >>> Modula3 has been removed. >>> - Octave 4.4-5.1 support added. >>> - PHP5 support removed, PHP7 is now the supported PHP version. >>> - Minimum Python version required is now 2.7, 3.2-3.7 are the only >>> other versions supported. >>> - Added support for Javascript NodeJS versions 2-10. >>> - OCaml support is much improved and updated, minimum OCaml version >>> required is now 3.12.0. >>> >>> William >>> >>> _______________________________________________ >>> Swig-user mailing list >>> Swi...@li... >>> https://lists.sourceforge.net/lists/listinfo/swig-user >>> >> >> _______________________________________________ >> Swig-user mailing list >> Swi...@li... >> https://lists.sourceforge.net/lists/listinfo/swig-user |