I am trying to compile NEURON-7.4 with java interface support.
My environment is Mac OS X 10.0.5.
I have downloaded iv-19 and nrn-7.4 from http://www.neuron.yale.edu/neuron/download/getstd.
What I've done so far:
At first, I successfully compiled iv. Next, I tried to compile nrn.
sh ./build.sh
./configure --with-iv=/usr/local/iv --with-nrnpython --with-nrnjava
After running ./configure in nrn-7.4, when I try to run make, I get the following results:
Code: Select all
Making all in nrnccmb
make[2]: Nothing to be done for `all'.
javah -classpath . -jni neuron.Neuron
javah -classpath . -jni neuron.Redirect
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/nrnoc -I../../src/oc -I../../src/parallel -I../../src/nrncvode -I../../src/ivos -I../../src/sundials -I../../src/nrnpython -DOOP=1 -DCABLE=1 -DUSECVODE=1 -DUSEMATRIX=1 -DUSEBBS=1 -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I../../src/nrniv -I../../src/CVODE -I../../src/nrncvode -I../../src/sparse13 -I../../src/gnu -I. -I../../src/ivoc -I../../src/nrnoc -I../oc -I../../src/oc -I/usr/local/iv/include -I/usr/X11/include -g -O2 -MT nrnjava.lo -MD -MP -MF .deps/nrnjava.Tpo -c -o nrnjava.lo nrnjava.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/nrnoc -I../../src/oc -I../../src/parallel -I../../src/nrncvode -I../../src/ivos -I../../src/sundials -I../../src/nrnpython -DOOP=1 -DCABLE=1 -DUSECVODE=1 -DUSEMATRIX=1 -DUSEBBS=1 -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I../../src/nrniv -I../../src/CVODE -I../../src/nrncvode -I../../src/sparse13 -I../../src/gnu -I. -I../../src/ivoc -I../../src/nrnoc -I../oc -I../../src/oc -I/usr/local/iv/include -I/usr/X11/include -g -O2 -MT nrnjava.lo -MD -MP -MF .deps/nrnjava.Tpo -c nrnjava.cpp -fno-common -DPIC -o .libs/nrnjava.o
nrnjava.cpp:126:10: error: cannot initialize a member subobject of type 'const char **(*)(void *)' with an lvalue of type 'char **(void *)': different return type
('const char **' vs 'char **')
"name", joname,
^~~~~~
nrnjava.cpp:502:21: error: use of undeclared identifier 'wincast'
setwinID, (jlong)wincast, type, left, top);
^
2 errors generated.
make[2]: *** [nrnjava.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Does anyone know what this error is and how to get around it?
Thanks!