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

Building under OSX is broken, here's how to fix it. #1

Open
ooPo opened this issue Aug 15, 2016 · 0 comments
Open

Building under OSX is broken, here's how to fix it. #1

ooPo opened this issue Aug 15, 2016 · 0 comments

Comments

@ooPo
Copy link
Owner

ooPo commented Aug 15, 2016

I'm using portlib and installed all the needed packages. I've managed a successful build, but until these fixes can be used automatically here's some hints:

GCC

Clang in OSX doesn't like part of the GCC ARM code that uses excessive brackets. It overflows the default limit of 256.

Change line 60 in 002-gcc.sh to:
${MAKE:-make} -j 4 CXXFLAGS="-fbracket-depth=1024" all && ${MAKE:-make} install

VITA-TOOLCHAIN

This code is looking for a file (zipconf.h?) that seems to be in an unexpected location (/opt/local/libzip/include).

Change line 17 in 005-vita-toolchain.sh to:
cmake -DUSE_BUNDLED_ENDIAN_H=ON -DCMAKE_INSTALL_PREFIX=${VITADEV} -DDEFAULT_JSON=../share/db.json -Dlibelf_LIBRARY=${VITADEV}/lib/libelf.a -Dlibelf_INCLUDE_DIR=${VITADEV}/include -Dlibzip_CONFIG_INCLUDE_DIR=/opt/local/lib/libzip/include

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

1 participant