GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

macosx compile error #2032

Open andyjh92 opened 7 years ago

andyjh92 commented 7 years ago

Hi,

I get an error when compiling Torque3D. log: https://travis-ci.org/andijh92/Torque3D/jobs/249886769

I'm using: xcode 7.3 OS X 10.11 commit: 8943c673fb876a50dc87d2ba862d31eb202ce6da (branch development Jun 19, 2017)

Regards, Andy

Azaezel commented 7 years ago

oddball... looks to be compiling this end:

http://imgur.com/a/m4Wgz

andyjh92 commented 7 years ago

I used the commands: ADDITIONAL_CMAKE_ARGS="-DTORQUE_TESTING=on -DTORQUE_PHYSICS_BULLET=on" pushd My\ Projects/Torque3D/ cmake ../../ -DTORQUE_APP_NAME=Torque3D $ADDITIONAL_CMAKE_ARGS cmake --build . --target install

I also tried with ADDITIONAL_CMAKE_ARGS="" and I got the same error.

Can you try compiling with those commands? I don't have a mac machine. If the error persists I'll borrow one or download a vm.

Azaezel commented 7 years ago

Give

https://pastebin.com/3PrkuXGx

A shot since that's what it seems to be complaining about your end...

rextimmy commented 7 years ago

Checking this out further (i'll keep the story short), shouldn't need any source code changes, just chuck in compiler: clang for osx in your .travis.yml config file and it should hopefully compile ok. Using gcc (although it is clang) makes it point to the old gcc 4.2.1 headers

andyjh92 commented 7 years ago

I'm using many different versions of clang now, but the error persists. See https://travis-ci.org/andijh92/Torque3D/builds/267584682

andyjh92 commented 7 years ago

If I set CXXFLAGS="fgnu-inline-asm -fasm-blocks" it fixes the error.

But a new error appeared: See https://travis-ci.org/andijh92/Torque3D/jobs/277860490 SDL gets configured, but not built.

Here are some pictures/links of a working local build: ttps://pastebin.com/ijj9LxT8 https://imgur.com/a/Yf0Xx

Azaezel commented 4 years ago

resolved