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

Build Error Mac 64: unrecognized command line option '-Wnewline-eof'` #21

Open
Yascob99 opened this issue Aug 27, 2015 · 4 comments
Open

Comments

@Yascob99
Copy link

I tried to build mac 64 and when I get to:
ninja -C out/Debug

I get a whole bunch of errors most of which are:
c++: error: unrecognized command line option '-Wnewline-eof'
but the first error it gives is:
/bin/sh: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/javac: No such file or directory

Tell me if this is not enough info.

@wjywbs
Copy link
Owner

wjywbs commented Aug 27, 2015

Looks like you are using g++. I only tested with clang from Xcode. Do you have javac in the terminal? And which mac version are you using (I tested mainly on 10.9)?

@Yascob99
Copy link
Author

I do do have javac installed(it's even in that exact directory) and am running mavericks (more specifically 10.9.5)

@wjywbs
Copy link
Owner

wjywbs commented Aug 29, 2015

Do you have command line tools installed? Also, when you set JAVA_HOME, did you use the suggested path:

Error: JAVA_HOME is not set.

For example:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home

Suggested path:
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home

You should choose
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
instead of jdk1.7.0_45

@wjywbs
Copy link
Owner

wjywbs commented Aug 29, 2015

Also, if you are still getting -Wnewline-eof errors, you can remove that line at https://github.com/wjywbs/javacef/blob/master/cef3/chromium_loader/chromium_loader.gyp#L37 and run configure.sh again.

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