Lime 无法构建到 html5编译给出了许多我不知道如何修复的错误

问题描述

抱歉,如果格式不正确,我是讨论主题的新手。

我正在按照说明制作一个列有 HaxeFixel 和石灰的 hello world here.

当我尝试构建到 html5 时,出现这些错误。我确保 haxe、flixel 和石灰都是最新的。

我使用的是 Windows 10

一个类似的帖子 here 描述了一个类似的问题,但我没有使用名称 hl 定义系统变量,我不确定是否还有其他可能导致问题的变量。

这些是错误

C:/Haxetoolkit/haxe/lib/lime/7,8,0/src/lime/_internal/backend/html5/HTML5Window.hx:321: characters 5-26 : lime._internal.backend.html5.HTML5WebGL2RenderContext should be lime.graphics.WebglrenderContext
C:/Haxetoolkit/haxe/lib/flixel/4,1/flixel/group/FlxGroup.hx:473: characters 80-91 : Type not found : ObjectClass
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Could not find a suitable overload,reasons follow
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : Array<Float>,?offset : Null<Int>) -> Void
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be Array<Float>
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : ... For function argument 'array'
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Int8Array,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Int8Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Uint8Array,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Uint8Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Uint8ClampedArray,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Uint8ClampedArray
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Int16Array,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Int16Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Uint16Array,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Uint16Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Int32Array,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Int32Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Uint32Array,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Uint32Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Float32Array,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Float32Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : js.lib.Float64Array,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be js.lib.Float64Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : Overload resolution Failed for (array : Array<Int>,0/src/lime/math/ColorMatrix.hx:117: characters 12-17 : lime.math.ColorMatrix should be Array<Int>
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/ColorMatrix.hx:117: characters 3-18 : End of overload failure reasons
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/utils/src/openfl/utils/ByteArray.hx:750: characters 3-30 : openfl.utils.ByteArray should be lime.utils._Bytes.LimeBytes
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/stage3d/src/openfl/display3D/VertexBuffer3D.hx:113: characters 41-45 : openfl.utils.ByteArray should be Null<Int>
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/stage3d/src/openfl/display3D/VertexBuffer3D.hx:113: characters 41-45 : ... For optional function argument 'elements'
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/stage3d/src/openfl/display3D/VertexBuffer3D.hx:113: characters 41-45 : ... For function argument 'data'
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Could not find a suitable overload,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : Array<Float>,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be Array<Float>
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 12-17 : ... For function argument 'array'
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Int8Array,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Int8Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Uint8Array,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Uint8Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Uint8ClampedArray,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Uint8ClampedArray
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Int16Array,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Int16Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Uint16Array,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Uint16Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Int32Array,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Int32Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Uint32Array,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Uint32Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Float32Array,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Float32Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : js.lib.Float64Array,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be js.lib.Float64Array
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : Overload resolution Failed for (array : Array<Int>,0/src/lime/math/Matrix4.hx:235: characters 12-17 : lime.math.Matrix4 should be Array<Int>
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/math/Matrix4.hx:235: characters 3-18 : End of overload failure reasons
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/media/openal/AL.hx:1307: characters 3-11 : Int should be lime.media.openal.ALBuffer
C:/Haxetoolkit/haxe/lib/lime/7,0/src/lime/media/OpenALAudioContext.hx:573: characters 3-40 : lime.media.openal.ALBuffer should be Int
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/sound/src/openfl/media/Sound.hx:591: characters 37-42 : openfl.utils.ByteArray should be Null<Int>
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/sound/src/openfl/media/Sound.hx:591: characters 37-42 : ... For optional function argument 'elements'
C:/Haxetoolkit/haxe/lib/flixel/4,1/flixel/group/FlxGroup.hx:852: characters 19-30 : Type not found : ObjectClass
C:/Haxetoolkit/haxe/lib/flixel/4,1/flixel/system/frontEnds/PluginFrontEnd.hx:47: characters 19-28 : Type not found : Classtype
C:/Haxetoolkit/haxe/lib/flixel/4,1/flixel/system/frontEnds/PluginFrontEnd.hx:94: characters 20-29 : Type not found : Classtype
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/bitmapdata/src/openfl/display/BitmapData.hx:1885: characters 45-54 : openfl.utils.ByteArray should be lime.utils.BytePointer
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/bitmapdata/src/openfl/display/BitmapData.hx:1885: characters 45-54 : ... For function argument 'bytePointer'
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/assets/src/openfl/utils/AssetLibrary.hx:47: characters 52-57 : openfl.utils.ByteArray should be lime.utils.Bytes
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/assets/src/openfl/utils/AssetLibrary.hx:47: characters 52-57 : ... For function argument 'bytes'
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/assets/src/openfl/utils/AssetLibrary.hx:293: characters 38-43 : openfl.utils.ByteArray should be lime.utils.Bytes
C:/Haxetoolkit/haxe/lib/openfl/9,2/packages/assets/src/openfl/utils/AssetLibrary.hx:293: characters 38-43 : ... For function argument 'bytes'

感谢您的帮助:)

解决方法

更新: OpenFL 9.1.0 和 Lime 7.9.0 现已推出,并与 Haxe 4.2.x 兼容。


您似乎已经安装了最新的 Haxe 版本 4.2.0。您现在需要将其降级到 4.1.5 或更低版本,因为 OpenFL (9.0.2) 和 Lime (7.8.0) 的当前 Haxelib 版本尚不支持 4.2.0。

在 Windows 上,您只需在之前的安装上运行 4.1.5 installer

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...