tpoechtrager / osxcross

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

SpringRts cmake gcc #83

Closed TurBoss closed 8 years ago

TurBoss commented 8 years ago

Hi

I'm trying to build the springrts project http://springrts.com with osxcross some users where able to build natively on mac : https://springrts.com/phpbb/viewtopic.php?f=65&t=32970

using xcode 7.3.1 from a mac and compiling for 10.11

but this project requires gcc to sync online

this is the far i can go with my test settings :p

cmake parameters: http://paste.springfiles.com/view/7c810db0 cmake + make output: http://paste.springfiles.com/view/5bca413f

this will be used to setup a buildbot slave for the project

project can be found here : https://github.com/spring/

edit: add git info for the project

git clone https://github.com/spring/spring.git
git submodule init && git submodule update

edit2: forgot to mention my system xD

i'm on ubuntu 16.04

thx

tpoechtrager commented 8 years ago

Might be some incompatibility between Clang an GCC. I do not recommend using g++-libc++ anyway. The better way would be to fix your code to compile with Clang.

TurBoss commented 8 years ago

hi Ive remove g++-libc++ in favour of g++

but i'm geting

Undefined symbols for architecture x86_64: ld: symbol(s) not found for architecture x86_64

http://paste.springfiles.com/view/075a2c58#L62

thx

tpoechtrager commented 8 years ago

That can't work because of the different C++ standard libraries. You must use clang++ -mmacosx-version-min=10.9 instead of g++.

TurBoss commented 8 years ago

ok thx