Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on mac via ant run #66

Open
MRIO opened this issue Jan 28, 2021 · 11 comments
Open

Can't install on mac via ant run #66

MRIO opened this issue Jan 28, 2021 · 11 comments

Comments

@MRIO
Copy link

MRIO commented Jan 28, 2021

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
Copy link
Member

@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. NeuroML/org.neuroml1.model@d4f7964, and I'll get round to testing nC today hopefully

@MRIO
Copy link
Author

MRIO commented Jan 28, 2021 via email

@pgleeson
Copy link
Member

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

@MRIO
Copy link
Author

MRIO commented Jan 28, 2021

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
Copy link
Member

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

@MRIO
Copy link
Author

MRIO commented Jan 28, 2021 via email

@pgleeson
Copy link
Member

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
Copy link
Author

MRIO commented Jan 28, 2021 via email

@MRIO
Copy link
Author

MRIO commented Jan 28, 2021 via email

@pgleeson
Copy link
Member

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
Copy link
Author

MRIO commented Jan 28, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants