aduros / flambe

Rapidly cook up games for HTML5, Flash, Android, and iOS.
https://github.com/aduros/flambe/wiki
MIT License
745 stars 118 forks source link

hxsl build issue #290

Closed saluk closed 10 years ago

saluk commented 10 years ago

I'm not sure if this is a flambe issue or if it's something else, but I just tried to run through setting up a project and I can only build html5. Building for any other target presents these compile issues:

C:\HaxeToolkit\haxe\lib\hxsl/2,0,3/hxsl/AgalCompiler.hx:178: lines 178-181 : Object requires field version C:\HaxeToolkit\haxe\lib\hxsl/2,0,3/hxsl/AgalCompiler.hx:120: lines 120-182 : Missing return format.agal.Data

I'm on windows, with flambe 4 and haxe 3.1.3

SavedByZero commented 10 years ago

I had the same error, looks like the build is broken. I solved it for now by opening up AgalCompiler.hx, going to the line of the first error, and adding "version : 0" as one of the fields in that object. But I'm sure the haxe guys have a more permanent fix. Also, for ios, I noticed the stage is way, way too big for the screen (it's like I'm seeing a zoomed in version of the middle of the screen only). Every other target compiles with a normal, workable stage size.

aduros commented 10 years ago

See ncannasse/hxsl#36.

aduros commented 10 years ago

As a temporary fix, I think you can run haxelib install format 3.0.5, and then say "yes" to setting that as the default version.

saluk commented 10 years ago

Thanks! SavedByZero's hack worked, but yours is probably better. Keeping the correct versions of things is safer eh?