Haxe => babylon.js

Hi

I’m just testing out the code supplied by:

I’m getting Type not found : babylonjs.Engine error.

build.hxml have -lib babylon
Already install babylon/js library via haxelib.

Any suggestion?

Thanks

The library is named babylonjs so you need -lib babylonjs.

Thanks ibilon

Just foudn that there are two version, babylon and babylonjs

Thanks I’m now gettinng following errors also included a list of library installed.
HaxeToolkit\haxe\lib\threejs/84,0,0/js/three/DataTexture.hx:10: characters 29
6-307 : Warning : This typedef is deprecated in favor of js.lib.Uint32Array
HaxeToolkit\haxe\lib\threejs/84,0,0/js/three/DataTexture.hx:10: characters 33
1-343 : Warning : This typedef is deprecated in favor of js.lib.Float32Array

babylon: [3.2.3] (removed)
babylonjs: [3.2.0]
hashlink: [0.1.0]
hxcpp-debugger: [1.0.6]
hxcpp: [4.0.19]
hxcs: 3.4.0 [4.0.0-alpha]
hxjava: 3.2.0 [4.0.0-alpha]
hxnodejs: [10.0.0]
nodejs: [2.2.7]
npm: [0.4.0]
threejs: [84.0.0]

Do I need to install more libraries?

Thanks

There are no errors, it’s written that it’s a warning, warnings can be ignored, you can also see that your js file has been generated (this only happens when compilation is successful).

Many libraries aren’t up to date with the newer release candidate for haxe 4, nothing to worry about for deprecation warnings.

Thanks for this.

Hi

Sorry about this. I’m still getting type not found. Could this be because I’m using V4?

HaxeToolkit\haxe\lib\babylonjs/3,2,0/babylonjs/ExtendedGamepadButton.hx:12: c
haracters 2-36 : Redefinition of variable touched in subclass is not allowed. Pr
eviously declared at js.html.GamepadButton
HaxeToolkit\haxe\lib\babylonjs/3,2,0/babylonjs/EngineCapabilities.hx:56: char
acters 18-62 : Type not found : js.html.webgl.ExtensionCompressedTextureS3TC

Got babylon.js to work. By re-install Haxe 3.xxx