away3d icon indicating copy to clipboard operation
away3d copied to clipboard

Native Build fails on MacOS Sierra

Open saumya opened this issue 7 years ago • 7 comments

All most all the examples fail in Native MAC Builds. While running

openfl test neko

it runs fine. But making a native build by

openfl test mac

fails with errors. The following errors I found on PolarBearAWDAnimation

Error: ./src/away3d/materials/compilation/RegisterPool.cpp:146:21: error: redefinition of 'index1'
HXDLIN(  90)                            Int index1 = _hx_register->_component;
                                            ^
./src/away3d/materials/compilation/RegisterPool.cpp:144:21: note: previous definition is here
HXLINE(  90)                            Int index1 = _hx_register->_component;
                                            ^
./src/away3d/materials/compilation/RegisterPool.cpp:173:20: error: redefinition of 'index1'
HXDLIN( 102)                    Int index1 = _hx_register->_component;
                                    ^
./src/away3d/materials/compilation/RegisterPool.cpp:171:20: note: previous definition is here
HXDLIN( 102)                    Int index1 = _hx_register->_component;
                                    ^
2 errors generated.

saumya avatar May 11 '17 15:05 saumya

Same errors found in ParticleTrails

Error: ./src/away3d/materials/compilation/RegisterPool.cpp:146:21: error: redefinition of 'index1'
HXDLIN(  90)                            Int index1 = _hx_register->_component;
                                            ^
./src/away3d/materials/compilation/RegisterPool.cpp:144:21: note: previous definition is here
HXLINE(  90)                            Int index1 = _hx_register->_component;
                                            ^
./src/away3d/materials/compilation/RegisterPool.cpp:173:20: error: redefinition of 'index1'
HXDLIN( 102)                    Int index1 = _hx_register->_component;
                                    ^
./src/away3d/materials/compilation/RegisterPool.cpp:171:20: note: previous definition is here
HXDLIN( 102)                    Int index1 = _hx_register->_component;
                                    ^
2 errors generated.

saumya avatar May 11 '17 16:05 saumya

I just tried MD5Animation and that does run fine on Sierra. Not all samples have been tested and some require UI components as well - so yet to be implemented. I'm just building ParticleTrails now to see if that works for me

Greg209 avatar May 11 '17 16:05 Greg209

Hmm - ParticleTrails source is exactly the same as Basic_View - just a rotating plane. It works fine here for me using the latest away3d-5.0.2, openfl-5.0.0, lime-4.1.0 & hxcpp-3.4.64

Greg209 avatar May 11 '17 16:05 Greg209

C++ compile errors like this may be caused by using a newer Haxe release (without a newer release of HXCPP), check that you have the latest HXCPP?

jgranick avatar May 11 '17 18:05 jgranick

Thanks for the tip. My environment is

Haxe - 3.3.0
HXCPP - 3.4.64

I hope both are latest. For haxelib update does not pull any updates.

saumya avatar May 12 '17 07:05 saumya

BTW - I'm on Haxe 3.4.2

Greg209 avatar May 12 '17 08:05 Greg209

I would recommend Haxe 3.2.1 or 3.4.2, 3.3.0 had problems for me on some C++ builds

jgranick avatar May 12 '17 17:05 jgranick