Re: [Biosig-general] Question: compiling BioSig for Python
Brought to you by:
schloegl
From: Alois S. <alo...@bi...> - 2010-09-14 19:46:42
|
On 09/13/2010 02:41 AM, Owen Kelly wrote: > I have some interest there Aaron. I am using Python + biosig4c++ on Linux. > I made an attempt to compile for windows a while back and it will be useful > to me in the future. > > I will try to dig up the recipe, as far as I got, and send out something. > What I remember was that there was a change at a Python version that > required a specific new DLL initialization function that is not in > Biosig4c++ yet (or it wasn't there 8 months ago). > > As for documentation, I think it will be helpful to come up with an example > Python file that shows how to make use of the lib/dll. I was particularly > challenged to understand how SWIG had represented data in GDF Header3. But > my understanding of both swig and Python is slightly better now, so maybe > we'll be able to converge on a solution. > > Alois, when I have a solution, is it best to represent it as an SVN patch > with respect to a release, or with respect to the development branch? Hi Owen, I prefer a patch against the SVN repository. > To whom should I send a patch? You can send it to me, or to this mailinglist. Best, Alois > > Regards, > > Owen > > -----Original Message----- > From: Alois Schloegl [mailto:alo...@bi...] > Sent: September-12-10 4:05 PM > To: Aaron Coone; Bio...@li... > Subject: Re: [Biosig-general] Question: compiling BioSig for Python > > Dear Aaron, > > > thanks for your interest. Unfortunately, so far nobody has been working on > biosig for python on windows. > > The starting steps would be reading the documentation of swig for windows > [1]. Note, that you will need gcc (cygwin or mingw) for compiling the > libbiosig sources. > > "make" on linux performs the following steps: > > swig -c++ -python -I/usr/include > -I/usr/lib/python2.6/dist-packages/numpy/core/include -o swig_wrap.cxx > swig.i > > g++ -c -pipe -fPIC -Wall -O2 -Wextra \ > swig_wrap.cxx -o swig_wrap.o \ > -I/usr/include/python2.6 \ > -I/usr/lib/python2.6/dist-packages/numpy/core/include&& \ > g++ -shared swig_wrap.o ../libbiosig.a -o _biosig.so > > swig -c++ -python -I/usr/include > -I/usr/lib/python2.6/dist-packages/numpy/core/include -o swig_wrap.cxx > swig.i > > > These steps need to be translated into the windows environment. > When you were successful, please let us know the detailed steps. > > > Best regards and good luck, > > Alois > > > [1] http://www.swig.org/compat.html > > > > > > On 09/09/2010 11:10 AM, Aaron Coone wrote: >> Dear Sir >> >> For my master thesis on brain-computer interfaces I am planning to use >> the BioSig toolbox. However my experience with C and C++ is fairly >> limited and from the documentation it isn't clear how I can compile >> the biosig4python with swig on Windows. According to this >> documentation only save2gdf can be built from source. Could you please >> provide a short step-by-step explanation on how to compile >> biosig4python? I'm certain many non-programmers will benefit from this > information. >> >> Sincerely yours >> >> Aäron Coone >> > > > ---------------------------------------------------------------------------- > -- > Start uncovering the many advantages of virtual appliances and start using > them to simplify application deployment and accelerate your shift to cloud > computing http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Biosig-general mailing list > Bio...@li... > https://lists.sourceforge.net/lists/listinfo/biosig-general > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Biosig-general mailing list > Bio...@li... > https://lists.sourceforge.net/lists/listinfo/biosig-general > |