我尝试构建nme-runnermark的 html5 画布版本,但没有取得任何重大成功。flash 版本构建没有任何问题。我收到以下一堆错误:
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:22: characters 46-47 : Property initialization is not allowed
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:24: characters 27-28 : Member variable initialization is not allowed outside of class constructor
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:26: characters 29-30 : Member variable initialization is not allowed outside of class constructor
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:30: characters 33-38 : Member variable initialization is not allowed outside of class constructor
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:833: characters 28-52 : Cannot access to private field nmeValidateMatrix
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:905: lines 905-909 : Field get_width has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:236: lines 236-262 : Field nmeGetObjectUnderPoint has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:610: characters 3-20 : Cannot access to private field nmeSetFlag
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:265: lines 265-302 : Field nmeRender has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:740: characters 3-29 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:916: characters 3-29 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:912: lines 912-935 : Field set_width has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:519: characters 3-43 : Cannot access to private field nmeGetInteractiveObjectStack
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:431: characters 3-43 : Cannot access to private field nmeGetInteractiveObjectStack
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:446: characters 4-24 : Cannot access to private field nmeDispatchEvent
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:478: characters 4-24 : Cannot access to private field nmeDispatchEvent
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Bitmap.hx:62: lines 62-88 : Field nmeGetObjectUnderPoint has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Bitmap.hx:91: lines 91-148 : Field nmeRender has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:1110: characters 3-34 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:1116: characters 3-30 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:1301: characters 4-30 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:1328: characters 4-30 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Shape.hx:29: lines 29-33 : Field nmeGetGraphics has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Shape.hx:36: lines 36-50 : Field nmeGetObjectUnderPoint has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:299: characters 6-30 : Cannot access to private field nmeGetGraphics
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:323: characters 48-73 : Cannot access to private field _topmostSurface
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Sprite.hx:38: lines 38-42 : Field nmeGetGraphics has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObjectContainer.hx:212: lines 212-222 : Field nmeBroadcast has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:441: characters 59-65 : Unknown identifier : length
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:441: characters 68-76 : Unknown identifier : position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:446: characters 9-21 : Unknown identifier : littleEndian
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:453: characters 2-14 : Unknown identifier : littleEndian
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:453: characters 2-14 : Invalid assign
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:35: characters 19-28 : Unknown identifier : allocated
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:122: characters 2-14 : browser.utils.ByteArray has no field length
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:122: characters 17-32 : browser.utils.ByteArray has no field allocated
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:260: characters 12-25 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:263: characters 9-22 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:265: characters 25-38 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:274: characters 67-80 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:278: characters 27-40 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:279: characters 88-101 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:283: characters 27-40 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:284: characters 27-40 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:285: characters 109-122 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/net/URLLoader.hx:150: characters 37-48 : browser.utils.ByteArray has no field length
我注意到自从我将nme升级到3.5.5版本后,这些问题就开始出现了。这不仅发生在 nme-runnermark 上,而且通常发生在我尝试构建 html5 版本的几乎所有 nme 项目中。我的下一个尝试是摆脱当前版本的 nme,并尝试使用旧版本。
无论如何,我想知道是否有其他人遇到类似的问题