away3d
away3d copied to clipboard
Native Build fails on MacOS Sierra
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.
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.
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
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
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?
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.
BTW - I'm on Haxe 3.4.2
I would recommend Haxe 3.2.1 or 3.4.2, 3.3.0 had problems for me on some C++ builds