tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.91k stars 329 forks source link

Some dependancies compile with gcc, others with g++ #208

Open AngelOnFira opened 5 years ago

AngelOnFira commented 5 years ago

I'm not super knowledgable about compilers, but I've been trying to work my way through compiling this in Docker. I've tried using the flags CC=gcc CXX=g++ ./build.sh, however cctools says it can no longer compile with g++. However, when using only gcc or clang, apple-libtapi fails at the LLVM_NO_OLD_LIBSTDCXX check since it can't compile the check without g++.

The full command I'm using to try building with g++ is:

CC=gcc CXX=g++ UNATTENDED=yes SDK_VERSION=10.15 OSX_VERSION_MIN=10.14 ./build.sh

AngelOnFira commented 5 years ago

I'm working to get more info on this issue, as working from a clean image with standard gcc and clang appears to work, but when moving to new dev versions, can break it.

tpoechtrager commented 5 years ago

Try CC=clang CXX=clang++ UNATTENDED=yes SDK_VERSION=10.15 OSX_VERSION_MIN=10.14 ./build.sh

jbruechert commented 4 years ago

FYI I got this to work in docker already, you can find the dockerfile here: https://github.com/KaidanIM/dockerfiles/tree/master/mac-osxcross. It includes Qt5 already, but I'm not sure whether you need that. The image is published on dockerhub as kaidan/mac-osxcross.

AngelOnFira commented 4 years ago

@JBBgameich Cheers, I'll give this a go. I think I came across some other repos that did the same, but were quite outdated. I'll check yours out.