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

osxcross cannot find libc++ headers #17888

Closed
LinuxUserGD opened this issue Mar 31, 2018 · 1 comment
Closed

osxcross cannot find libc++ headers #17888

LinuxUserGD opened this issue Mar 31, 2018 · 1 comment

Comments

@LinuxUserGD
Copy link
Contributor

LinuxUserGD commented Mar 31, 2018

Godot version:
master

OS/device including version:
Antergos OS (Arch Linux)

Issue description:
Don't know if it should better report it on the OSXCross repo or here.
Can't compile Godot for OSX on Linux using the package apple-darwin-osxcross, because it can't find the libc++ headers that are located at /opt/osxcross/SDK/MacOSX10.11.sdk/usr/include/c++/4.2.1 and /opt/osxcross/x86_64-apple-darwin15/include/c++/7.1.1.

I've tried symbolic links using
ln -s /opt/osxcross/bin /opt/osxcross/target (successful) ,
sudo ln -s /opt/osxcross/SDK/MacOSX10.11.sdk/usr/include/c++/4.2.1 /opt/osxcross/x86_64-apple-darwin15/include/c++ and
sudo ln -s /opt/osxcross/x86_64-apple-darwin15/include/c++/7.1.1 /opt/osxcross/SDK/MacOSX10.11.sdk/usr/include/c++ without success.

Steps to reproduce:

yaourt -S apple-darwin-osxcross
sudo ln -s /opt/osxcross/bin /opt/osxcross/target
export OSXCROSS_ROOT=/opt/osxcross
scons p=osx osxcross_sdk=darwin15

Error Output:

scons: Reading SConscript files ...
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[  2%] Compiling ==> platform/osx/crash_handler_osx.mm
osxcross: error: cannot find libc++ headers
osxcross: error: while detecting target
scons: *** [platform/osx/crash_handler_osx.osx.tools.64.o] Error 1
scons: building terminated because of errors.
[user@user godot]$ 
@LinuxUserGD
Copy link
Contributor Author

LinuxUserGD commented Apr 16, 2018

Building osxcross manually from source works:

export OSXCROSS_ROOT=/run/media/user/user/git/osxcross
scons p=osx osxcross_sdk=darwin15 tools=no target=release -j 8
scons p=osx osxcross_sdk=darwin15 tools=no target=release_debug -j 8

Maybe the AUR package apple-darwin-osxcross creates the components in different directories, so it didn't work.

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

No branches or pull requests

2 participants