I'm just starting with NEURON and I installed from dmg and everything works fine. I am now trying to get NEURON working as a module within python. When I try to install from source I get a bunch of different errors depending on what I try. I tried this to install IV:
Code: Select all
IDIR=/Applications/NEURON-n.n
./configure --prefix=$IDIR/iv --enable-carbon
make
Code: Select all
Making all in src
Making all in lib
g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -DMAC=1 -Dcarbon=1 -DSYSV=1 -c IV-Mac/canvas.cpp -fno-common -DPIC -o IV-Mac/.libs/canvas.o
In file included from IV-Mac/canvas.cpp:59:
../include/IV-Mac/window.h: In member function 'void MACwindow::setport()':
../include/IV-Mac/window.h:112: error: 'GetWindowPort' was not declared in this scope
../include/IV-Mac/window.h:112: error: 'SetPort' was not declared in this scope
../include/IV-Mac/window.h: In static member function 'static ivWindowRep* ivWindowRep::rc(OpaqueWindowPtr*)':
../include/IV-Mac/window.h:192: error: 'GetWRefCon' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::beginPaint()':
IV-Mac/canvas.cpp:331: error: 'ClipRect' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual ivCoord MACcanvas::width() const':
IV-Mac/canvas.cpp:405: error: 'GetWindowPort' was not declared in this scope
IV-Mac/canvas.cpp:405: error: 'GetPortBounds' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual ivCoord MACcanvas::height() const':
IV-Mac/canvas.cpp:419: error: 'GetWindowPort' was not declared in this scope
IV-Mac/canvas.cpp:419: error: 'GetPortBounds' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual ivPixelCoord MACcanvas::pwidth() const':
IV-Mac/canvas.cpp:433: error: 'GetWindowPort' was not declared in this scope
IV-Mac/canvas.cpp:433: error: 'GetPortBounds' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual ivPixelCoord MACcanvas::pheight() const':
IV-Mac/canvas.cpp:447: error: 'GetWindowPort' was not declared in this scope
IV-Mac/canvas.cpp:447: error: 'GetPortBounds' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::initClip()':
IV-Mac/canvas.cpp:518: error: 'ClipRect' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::push_clipping(osboolean)':
IV-Mac/canvas.cpp:534: error: 'ClipRect' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::pop_clipping()':
IV-Mac/canvas.cpp:557: error: 'ClipRect' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::clip()':
IV-Mac/canvas.cpp:605: error: 'ClipRect' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::stroke(const ivColor*, const ivBrush*)':
IV-Mac/canvas.cpp:922: error: 'MoveTo' was not declared in this scope
IV-Mac/canvas.cpp:924: error: 'LineTo' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::fill(const ivColor*)':
IV-Mac/canvas.cpp:953: error: 'OpenPoly' was not declared in this scope
IV-Mac/canvas.cpp:955: error: 'MoveTo' was not declared in this scope
IV-Mac/canvas.cpp:957: error: 'LineTo' was not declared in this scope
IV-Mac/canvas.cpp:962: error: 'ClosePoly' was not declared in this scope
IV-Mac/canvas.cpp:963: error: 'PaintPoly' was not declared in this scope
IV-Mac/canvas.cpp:964: error: 'KillPoly' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'void MACcanvas::color(const ivColor*)':
IV-Mac/canvas.cpp:999: error: 'RGBForeColor' was not declared in this scope
IV-Mac/canvas.cpp:1021: error: 'PenMode' was not declared in this scope
IV-Mac/canvas.cpp:1025: error: 'PenMode' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'void MACcanvas::brush(const ivBrush*)':
IV-Mac/canvas.cpp:1052: error: 'PenSize' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::flush()':
IV-Mac/canvas.cpp:1173: error: 'TextFont' was not declared in this scope
IV-Mac/canvas.cpp:1174: error: 'TextFace' was not declared in this scope
IV-Mac/canvas.cpp:1175: error: 'TextSize' was not declared in this scope
IV-Mac/canvas.cpp:1176: error: 'TextMode' was not declared in this scope
IV-Mac/canvas.cpp:1178: error: 'MoveTo' was not declared in this scope
IV-Mac/canvas.cpp:1179: error: 'DrawText' was not declared in this scope
IV-Mac/canvas.cpp: In member function 'virtual void MACcanvas::image(const ivRaster*, ivCoord, ivCoord)':
IV-Mac/canvas.cpp:1285: error: 'GetGWorld' was not declared in this scope
IV-Mac/canvas.cpp:1288: error: 'GetPortBitMapForCopyBits' was not declared in this scope
IV-Mac/canvas.cpp:1293: error: 'CopyBits' was not declared in this scope
make[2]: *** [IV-Mac/canvas.lo] Error 1
Making all in include
make[2]: Nothing to be done for `all'.
Making all in bin
Making all in idemo
/bin/sh ../../../libtool --mode=link g++ -g -O2 -DMAC=1 -Dcarbon=1 -DSYSV=1 -framework Carbon -o idemo main.o ../../lib/libIVhines.la
libtool: link: cannot find the library `../../lib/libIVhines.la' or unhandled argument `../../lib/libIVhines.la'
make[3]: *** [idemo] Error 1
I also tried:
./configure --prefix=/Users/adamimos/neuron/iv-17
and I got an error saying that X11 could not be found, though I am sure I have X11 installed...
any help would be much appreciated! (If there is a way to get NEURON working as a module in python without installing from source, that would be helpful as well).
Thanks.