Git Product home page Git Product logo

swigtest's Introduction

swigTest

Testing swig for generating python and matlab wrappers.

Building

Prerequisites

In order to build the project you need:

  • python
  • matlab
  • swig

SWIG with matlab support

If you need the matlab wrapper then you should switch to a developer version of swig. You need to checkout the matlab branch from the swig repository

git clone --branch matlab https://github.com/swig/swig.git

Please refer to http://www.swig.org/svn.html for the necessary tools needed to build. and then install it:

cd swig
./autogen.sh 
./configure --prefix=`pwd`/build/install --with-matlab=/Applications/MATLAB_R2015b.app/
make -j8
make install

Change --prefix=<install_path> to any directory where you want to install swig. Change --with-matlab=<matlabroot> to the root path of your matlab installation (note it will look for matlab binaries into <matlabroot>/bin).

Then at cmake stage you have to pass -DCMAKE_PREFIX_PATH=<install_path> so that the installed version can be found (unless you install in a system directory).

Building the wrappers

The generation of the wrappers is controlled by two cmake options:

option(BUILD_MATLAB_WRAPPER "Build the matlab wrapper with SWIG" ON)
option(BUILD_PYTHON_WRAPPER "Build the python wrapper with SWIG" ON)

so you can change the behaviour at cmake stage with eg -DBUILD_MATLAB_WRAPPER:BOOL=OFF.

swigtest's People

Contributors

simogasp avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.