Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not compile project to html5 #346

Closed
yuigoto opened this issue May 28, 2015 · 7 comments
Closed

Could not compile project to html5 #346

yuigoto opened this issue May 28, 2015 · 7 comments

Comments

@yuigoto
Copy link

yuigoto commented May 28, 2015

Hi! I'm studying haxe and I wanted to try some game/app engines to see which one I feel more comfortable with.

Just installed flambe and all its dependencies, but I came upon these errors, when building a blank project while targeting html5 (as described in the install guide):

Building: build/web haxe -main urgame.Main -lib flambe -cp src -dce full -debug --no-opt --no-inline -D html -D js-es5 - D js-flatten --macro flambe.platform.ManifestBuilder.use("build/web/assets") -D source-map-content - js build/web/targets/main-html.js C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/CanvasTextureRoot.hx:44: characters 28-32 : Array should be haxe.io.BytesData C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/CanvasTextureRoot.hx:44: characters 28-32 : Array should be js.html.ArrayBuffer C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/CanvasTextureRoot.hx:44: characters 28-32 : For function argument 'b' C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/CanvasTextureRoot.hx:39: lines 39-45 : Missing return haxe.io.Bytes C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/HtmlAssetPackLoader.hx:364: characters 16-38 : String should be js.html.XMLHttpRequestResponseType C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/HtmlAssetPackLoader.hx:367: characters 12-37 : String should be js.html.XMLHttpRequestResponseType C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/HtmlAssetPackLoader.hx:368: characters 16-42 : String should be js.html.XMLHttpRequestResponseType C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/HtmlAssetPackLoader.hx:205: characters 12-43 : String should be js.html.XMLHttpRequestResponseType C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/HtmlExternal.hx:37: characters 42-48 : js.html.Window should be haxe.Function C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/HtmlExternal.hx:37: characters 42-48 : For function argument 'func' C:\Aplicativos\Desenvolvimento\HaxeToolkit\haxe\lib/flambe/4,1,0/flambe/platform/html/HtmlExternal.hx:25: lines 25-38 : Missing return Dynamic

Maybe I didn't install it properly? 😅 Anyone knows what's happening here?

Thanks. 😄

@markknol
Copy link
Contributor

Well, you probably have installed the newest Haxe version 3.2, which is good! 👍

To be compatible with Haxe 3.2, apply this patch: ec08401
It is already in this repository, but not official released (yet). It works for me.

@yuigoto
Copy link
Author

yuigoto commented May 30, 2015

Oh, thanks for the answer! 😄 And yup, just updated Haxe and all other libraries.

Updated the files, I also had to update "HtmlExternal.hx" besides the ones you've mentioned. It worked like a charm!

Time to study Haxe a bit harder now! 😅

Thanks again!

@yuigoto yuigoto closed this as completed May 30, 2015
@markknol
Copy link
Contributor

Make sure you read:

@yuigoto
Copy link
Author

yuigoto commented May 31, 2015

Already diggin' through! 💦

Thanks. 😉

@azrafe7
Copy link

azrafe7 commented Jun 19, 2015

@markknol @yuigoto What's the fix for HtmlExternal.hx?

@azrafe7
Copy link

azrafe7 commented Jun 19, 2015

nvm, found it! c2f3e02

@ambry11
Copy link

ambry11 commented Jul 29, 2015

Hi I'm very new to this flambe stuff and I having the same problem with yuigoto.
I just wanna ask how to apply the fix that markknol stated, I dont know how to apply the patch.
I've watched the video tutorial about the installation and I did everything from that video.
Please help me how to apply the patch into flambe.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants