https://github.com/simogasp/swigtest
Testing swig
https://github.com/simogasp/swigtest
matlab-wrapper python-wrapper swig
Last synced: 3 months ago
JSON representation
Testing swig
- Host: GitHub
- URL: https://github.com/simogasp/swigtest
- Owner: simogasp
- License: mpl-2.0
- Created: 2018-01-31T15:11:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-01T09:53:49.000Z (over 7 years ago)
- Last Synced: 2025-02-14T21:47:10.719Z (4 months ago)
- Topics: matlab-wrapper, python-wrapper, swig
- Language: CMake
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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=` to any directory where you want to install swig.
Change `--with-matlab=` to the root path of your matlab installation (note it will look for matlab binaries into `/bin`).Then at `cmake` stage you have to pass `-DCMAKE_PREFIX_PATH=` so that the installed version can be found (unless you install in a system directory).
### Building the wrappersThe generation of the wrappers is controlled by two cmake options:
```cmake
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`.