[heaps] doesn't say hello

99 views
Skip to first unread message

cubixpix

unread,
Aug 3, 2015, 10:50:17 AM8/3/15
to Haxe

Hello,

I tried Heaps library with latest git sources (on the 3 august 2015).
I couldn't even launch the «Hello.hx» sample code.

I'm using ArchLinux with Intel or NVidia driver (the blob from NVidia).

Here is what i've did.


 Creating and going into heaps part of haxelib


   cd ~/haxelib
   ~/haxelib$ mkdir heaps
   ~/haxelib$ cd heaps/


   Getting sources without the history

   ~/haxelib/heaps$ git clone --depth=1 https://github.com/ncannasse/heaps.git


   Specify current version

   ~/haxelib/heaps$ echo heaps >.current


   "Hello World" is here:
   https://github.com/ncannasse/heaps/wiki/Getting-Started

  For the moment, the targets supported are Flash and HTML5/WebGL
  https://groups.google.com/forum/#!topic/haxelang/rs6NUy6r9fs


   Flash generation:
   haxe -lib heaps -main Hello -swf hello.swf -swf-version 11.6

   Testing Flash:
   $ chromium hello.swf
  [10114:10114:0803/155931:ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/*
  [10140:10140:0803/135932:ERROR:gles2_cmd_decoder.cc(11539)] [GroupMarkerNotSet(crbug.com/242999)!:D01C0295101B0000]GL ERROR :GL_INVALID_OPERATION : glTexStorage2DEXT: <- error from previous GL command

(blank page)

  Testing HTML5/WebGL:
  $ haxe -lib heaps -lib flixel -main Hello -js hello.js
  (pour le source html associé, voir: http://old.haxe.org/doc/start/js )


  Same problem than Flash when launched from chromium (or firefox)
  [11108:11108:0803/142819:ERROR:gles2_cmd_decoder.cc(11539)] [GroupMarkerNotSet(crbug.com/242999)!:D0D899F976140000]GL ERROR :GL_INVALID_OPERATION : glTexStorage2DEXT: <- error from previous GL command

If you have an idea… thank you.


Nicolas Cannasse

unread,
Aug 3, 2015, 10:56:19 AM8/3/15
to haxe...@googlegroups.com
Le 03/08/2015 16:50, cubixpix a écrit :
>
> Hello,
>
> I tried Heaps library with latest git sources (on the 3 august 2015).
> I couldn't even launch the «Hello.hx» sample code.
>
> I'm using ArchLinux with Intel or NVidia driver (the blob from NVidia).
>
> Here is what i've did.

Might be related to this
https://code.google.com/p/chromium/issues/detail?id=489897

It's definitely not heaps-specific.

Best,
NC

cubixpix

unread,
Aug 3, 2015, 11:17:53 AM8/3/15
to Haxe


Might be related to this
https://code.google.com/p/chromium/issues/detail?id=489897

It's definitely not heaps-specific.


Thank you for the very quick answer.

Yes, seeing the error, that's what i thought: not heaps-specific.

I forgot to say that i had no display (just blank browser page) with Firefox too.

I've exported the swf and the html/js files to a computer (quite old, with Intel Q45 Chipset) running windows. Tried with Firefox and IE on this one, with no luck either.

I was just wondering if i had done something wrong when compiling the sample.

As it was just for the sake of experimenting, i won't waste your time further.
Thank you again for anwering, and thanks for Haxe too.

Jonathan Ong

unread,
Aug 3, 2015, 12:57:24 PM8/3/15
to Haxe
Hi cubixpix,

Did you remember to put <canvas id="webgl"></canvas> in your html file?
You can view my source files here: https://gist.github.com/jonongjs/9cb0b5601904ac373e3d
I use an Arch Linux system as well, and have no problems with the js version.

Another possible issue might be that you're serving the js file via file:// instead of http://.

Let me know if this helps.

Jon

cubixpix

unread,
Aug 3, 2015, 4:39:32 PM8/3/15
to Haxe
Hello Jonathan,

You're right: i had forgotten (didn't knew, to be exact) to put the webgl canvas in html file.

With that added in the html source, the sample now works perfectly! Thank you!

Now the thread is complete for good. Thanks again to you and Nicolas for your support.
Reply all
Reply to author
Forward
0 new messages