NeuralEnsemble / neuroConstruct

neuroConstruct: biophysically detailed neuronal modelling in 3D
http://www.neuroconstruct.org
GNU General Public License v2.0
48 stars 24 forks source link

Can't install on mac via ant run #66

Open MRIO opened 3 years ago

MRIO commented 3 years ago

Sorry if I'm being monke, but:

trying to follow the simple build instructions via ant, but ant run fails. I'm on Big Sur and I have ant via homebrew. But this happens

[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.

What is the best way to proceed?

╰─ ant run
Buildfile: /Users/m/Sync/Projects/Code/neuroConstruct/build.xml

init:
     [echo] ----------- neuroConstruct v1.7.2 ------------
     [echo] Initialised neuroConstruct project to build jar: .//neuroConstruct_1.7.2.jar

prepare:
    [mkdir] Created dir: /Users/m/Sync/Projects/Code/neuroConstruct/classes

libneuromljar:
     [echo] Building the libNeuroML jar in: ./NeuroML2, true

initnml:
     [echo] Initialising NeuroML with base dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2, jar file: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/libNeuroML-2.0.0.jar
    [mkdir] Created dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build

compilenml:
     [echo] Compiling NeuroML code to dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build
    [javac] Compiling 22 source files to /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    [javac] error: Source option 6 is no longer supported. Use 7 or later.
    [javac] error: Target option 6 is no longer supported. Use 7 or later.

BUILD FAILED
/Users/m/Sync/Projects/Code/neuroConstruct/build.xml:180: The following error occurred while executing this line:
/Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build.xml:82: Compile failed; see the compiler error output for details.
pgleeson commented 3 years ago

@MRIO I've just updated to Big sur too and having lots of fun with incompatibilities and moved libraries. Some of these I've started fixing in some repos, e.g. https://github.com/NeuroML/org.neuroml1.model/commit/d4f796495ec6f22412adeac66708c23492d80079, and I'll get round to testing nC today hopefully

MRIO commented 3 years ago

lots of fun

I can’t say I envy you =], and thanks for getting back to me. I’ll be watching nC closely —

pgleeson commented 3 years ago

@MRIO Can you try building the latest commit? Have fixed the "Source option 6 is no longer supported" issue...

MRIO commented 3 years ago

Nope, can't... , /Users/m/Sync/Projects/Code/neuroConstruct/build.xml:235: /Users/m/Sync/Projects/Code/neuroConstruct/jNeuroMLJar does not exist.

╰─ ant run
Buildfile: /Users/m/Sync/Projects/Code/neuroConstruct/build.xml

init:
     [echo] ----------- neuroConstruct v1.7.2 ------------
     [echo] Initialised neuroConstruct project to build jar: .//neuroConstruct_1.7.2.jar

prepare:

libneuromljar:

compile:
    [javac] Compiling 372 source files to /Users/m/Sync/Projects/Code/neuroConstruct/classes

BUILD FAILED
/Users/m/Sync/Projects/Code/neuroConstruct/build.xml:235: /Users/m/Sync/Projects/Code/neuroConstruct/jNeuroMLJar does not exist.
pgleeson commented 3 years ago

Have you run - ./updatenC.sh & checked no errors? See https://github.com/NeuralEnsemble/neuroConstruct/blob/master/.travis.yml#L16

MRIO commented 3 years ago

I did, and there were nothing out of the ordinary happened, ending with a lovely

Already up to date. /Users/m/Sync/Projects/Code/neuroConstruct

Feeling a bit helpless today =/

Thanks,

M.

pgleeson commented 3 years ago

Try: svn co https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar jNeuroMLJar in that dir & make sure the folder is there before rebuilding...

MRIO commented 3 years ago

jNeuroMLJar is there, and even after git pull it still gives me the previous problem:

[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.

╰─ ant run Buildfile: /Users/m/Sync/Projects/Code/neuroConstruct/build.xml

init: [echo] ----------- neuroConstruct v1.7.2 ------------ [echo] Initialised neuroConstruct project to build jar: .//neuroConstruct_1.7.2.jar

prepare:

libneuromljar: [echo] Building the libNeuroML jar in: ./NeuroML2, true

initnml: [echo] Initialising NeuroML with base dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2, jar file: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/libNeuroML-2.0.0.jar

compilenml: [echo] Compiling NeuroML code to dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build [javac] Compiling 22 source files to /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build [javac] warning: [options] bootstrap class path not set in conjunction with -source 6 [javac] error: Source option 6 is no longer supported. Use 7 or later. [javac] error: Target option 6 is no longer supported. Use 7 or later.

On 28 Jan 2021, at 15:43, Padraig Gleeson notifications@github.com wrote:

Try: svn co https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar jNeuroMLJar in that dir & make sure the folder is there before rebuilding...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NeuralEnsemble/neuroConstruct/issues/66#issuecomment-769119814, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5EGFEOSU75B37R77MNMQTS4FZZRANCNFSM4WW27XQQ.

MRIO commented 3 years ago

I double checked build.xml and the correct indications are there:

On 28 Jan 2021, at 15:52, Mario Negrello wrote: > > jNeuroMLJar is there, and even after git pull it still gives me the previous problem: > > [javac] error: Source option 6 is no longer supported. Use 7 or later. > [javac] error: Target option 6 is no longer supported. Use 7 or later. > > > ╰─ ant run > Buildfile: /Users/m/Sync/Projects/Code/neuroConstruct/build.xml > > init: > [echo] ----------- neuroConstruct v1.7.2 ------------ > [echo] Initialised neuroConstruct project to build jar: .//neuroConstruct_1.7.2.jar > > prepare: > > libneuromljar: > [echo] Building the libNeuroML jar in: ./NeuroML2, true > > initnml: > [echo] Initialising NeuroML with base dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2, jar file: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/libNeuroML-2.0.0.jar > > compilenml: > [echo] Compiling NeuroML code to dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build > [javac] Compiling 22 source files to /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build > [javac] warning: [options] bootstrap class path not set in conjunction with -source 6 > [javac] error: Source option 6 is no longer supported. Use 7 or later. > [javac] error: Target option 6 is no longer supported. Use 7 or later. > > >> On 28 Jan 2021, at 15:43, Padraig Gleeson > wrote: >> >> >> Try: >> svn co https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar jNeuroMLJar >> in that dir & make sure the folder is there before rebuilding... >> >> — >> You are receiving this because you were mentioned. >> Reply to this email directly, view it on GitHub , or unsubscribe . >> >
pgleeson commented 3 years ago

I committed a version of the jNeuroMLjar which was built with java 1.7 (which should be enough). Can you:

 cd jNeuroMLJar/
 svn up
 cd ..
 ant clean 
 ant run
MRIO commented 3 years ago

Sadly it didn’t work at revision 1326. Same hurdle…

[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.

On 28 Jan 2021, at 17:23, Padraig Gleeson notifications@github.com wrote:

cd jNeuroMLJar/ svn up cd .. ant clean ant run