HeapsIO / heaps

Heaps : Haxe Game Framework

Home Page:http://heaps.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to compile Hashlink Hello world from doc

pacrtn opened this issue · comments

Totally new here, I was perusing the docs and tried the hello world for Hashlink and got an error on build :

/.../haxe/heaps/git/h3d/impl/GlDriver.hx:223: characters 11-23 : Class<sdl.Sdl> has no field setGLVersion

There seems to be a typo here, it was meant to be setGLOptions(...), right?
https://github.com/HeapsIO/heaps/blame/67c9ec8f80a154b803bfc4b4804a8d09a397f144/h3d/impl/GlDriver.hx#L224

  • castle: [git]
  • domkit: [git]
  • format: [3.7.0]
  • heaps: 2.0.0 [git]
  • hldx: [1.14.0]
  • hlopenal: [1.5.0]
  • hlsdl: [1.14.0]
  • hscript: [git]
  • hx3compat: [git]
  • hxbit: [git]
  • hxcpp-debug-server: [dev:/home//.vscode/extensions/vshaxe.hxcpp-debugger-1.2.4/hxcpp-debug-server]
  • hxnodejs: [git]
  • HL/JIT 1.14.0 (c)2015-2023 Haxe Foundation

Ok I might have jumped the gun a little on the issue.

it seems git of hlsdl added the setGLVersion() symbol to SDL.hx.

And I failed to notice that heaps amended the code I have on my machine a week ago to add conditions (hlsdl >= v1.15) around the call to the missing function.

I'll close the issue to avoid clutter then.

Maybe it'll serve as an answer to whoever encounters the same problem compiling there very first heaps/hashlink bit of code.