[MINC-development] swig wrappers for minc2
Jonathan Taylor
jonathan.taylor at stanford.edu
Wed Mar 22 02:56:37 EST 2006
hi,
i don't know how much interest there is in this (i am interested at
least), but i used swig to generate
python wrappers for minc2. they compile (and import) fine, but i have
nothing to test them with.
in theory, the swig file could be used to generate wrappers for other
languages....
attached is the minc2.i i used, and here are the commands i used to
build the python module.... from the
minc-2.0.05 main directory:
make distclean
./configure --prefix=/home/jtaylo/tmp
make
make install
cd libsrc2
swig -python minc2.i
gcc -c *.c -I/usr/include/python2.4
gcc -shared *.o -L/home/jtaylo/tmp/lib -lminc2 -lhdf5 -lnetcdf -o
_minc2.so
python -c "import minc2"
got a few warnings:
hyper.c: In function 'mirw_hyperslab_raw':
hyper.c:420: warning: pointer targets in passing argument 3 of
'H5Sselect_hyperslab' differ in signedness
m2util.c: In function 'miinit':
m2util.c:938: warning: passing argument 5 of 'H5Tregister' from
incompatible pointer type
m2util.c:941: warning: passing argument 5 of 'H5Tregister' from
incompatible pointer type
m2util.c: In function 'miinit_enum':
m2util.c:979: warning: passing argument 5 of 'H5Tregister' from
incompatible pointer type
m2util.c:981: warning: passing argument 5 of 'H5Tregister' from
incompatible pointer type
m2util.c:983: warning: passing argument 5 of 'H5Tregister' from
incompatible pointer type
m2util.c:985: warning: passing argument 5 of 'H5Tregister' from
incompatible pointer type
m2util.c: In function 'minc_update_thumbnail':
m2util.c:1343: warning: pointer targets in passing argument 3 of
'H5Sselect_hyperslab' differ in signedness
m2util.c:1361: warning: pointer targets in passing argument 3 of
'H5Sselect_hyperslab' differ in signedness
m2util.c:1372: warning: passing argument 4 of 'H5Sselect_elements' from
incompatible pointer type
slice.c: In function 'mirw_slice_minmax':
slice.c:80: warning: passing argument 4 of 'H5Sselect_elements' from
incompatible pointer type
best,
jonathan
--
------------------------------------------------------------------------
I'm part of the Team in Training: please support our efforts for the
Leukemia and Lymphoma Society!
http://www.active.com/donate/tntsvmb/tntsvmbJTaylor
GO TEAM !!!
------------------------------------------------------------------------
Jonathan Taylor Tel: 650.723.9230
Dept. of Statistics Fax: 650.725.8977
Sequoia Hall, 137 www-stat.stanford.edu/~jtaylo
390 Serra Mall
Stanford, CA 94305
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: minc2.i
Url: http://www.bic.mni.mcgill.ca/pipermail/minc-development/attachments/20060322/88aa2e36/minc2.ksh
More information about the MINC-development
mailing list