First, I am on Windows 7 32bit, Python 2.6.3, Cygwin 1.7 beta, and trying to use the Neuron 7- and iv 1.7 source code packages.
I have a problem building Neuron as a python module on this config, as described in another post here; http://www.neuron.yale.edu/phpBB/viewto ... 07&start=0, modified with current version numbers.
Does anybody have a clue of what can be done different? I don't know how to invoke a "mingw-targeted cross-compiler", which appear to be the issue.
Here is the sh-script describing exactly what I've tried.
Code: Select all
#!/bin/sh
#cd $HOME
mv neuron neuron_old
mkdir neuron
cp iv-17.tar.gz neuron
cp nrn-7.0.tar.gz neuron
cd neuron
tar xzf iv-17.tar.gz
tar xzf nrn-7.0.tar.gz
# renaming the new directories iv and nrn makes life simpler later on
mv iv-17 iv
mv nrn-7.0 nrn
#compiling iv
cd iv
./configure --prefix=`pwd`
make
make install
#compiling neuron
cd ..
cd nrn
#./configure --prefix=`pwd`
#make
## unlike the UNIX installation, we DO NOT do make install
./configure --prefix=`pwd` --with-nrnpython
make
./configure --prefix=`pwd` --with-nrnpython \
--without-iv --without-memacs --with-readline=no --without-nmodl
CFLAGS="-mno-cygwin" CXXFLAGS="-mno-cygwin" \
PYLIBDIR=/cygdrive/c/Python26/libs \
PYINCDIR=/cygdrive/c/Python26/Include \
PYLIBLINK="-L/cygdrive/c/Python26/libs -lpython26" \
PYLIB="-L/cygdrive/c/Python26/libs -lpython26" \
make
cd src/mswin
cp hocmodule.dll c:/Python26/hoc.dll
exit 0
Code: Select all
...
g++: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler.
make[3]: *** [neuron.exe] Error 1
make[3]: Leaving directory `/home/neuron/nrn/src/nrniv´
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/neuron/nrn/src´
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/neuron/nrn´
make: *** [all] Error 2
cp: cannot stat `hocmodule.dll´: No such file or directory
EH@Espen-PC /Home
$
Code: Select all
In [6]: execfile("ex1.py")
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
c:\Users\EH\Python\LFPy\examples\<ipython console> in <module>()
c:\Users\EH\Python\LFPy\examples\ex1.py in <module>()
2 import numpy
----> 3 import LFPy
4
5 ioff()
6 close('all')
C:\Python26\lib\site-packages\LFPy\__init__.py in <module>()
2
----> 3 from cell import Cell
4 from synapse import Synapse
5 from lfpnm import LFPNM
6 import tools
C:\Python26\lib\site-packages\LFPy\cell.py in <module>()
2 import numpy
3 import copy
4 import cPickle
5 import pylab #comment out if running on Stallo
6 import os
ImportError: No module named neuron
In [7]: