Compile error html5

Previous topic - Next topic

MrPlow

 Hi Guys,

Getting these errors when compiling for HTML5

WARNING  root: (Emscripten: system change: 1.12.0|le32-unknown-nacl|T:\Compiler\platform\JavaScript\llvm-3.2.release\bin|3.2 vs 1.12.0|le32-unknown-nacl|S:\Compiler\platform\JavaScript\llvm-3.2.release\bin|3.2, clearing cache)
INFO     root: (Emscripten: Running sanity checks)
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1691:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
while( (ready == FALSE))
        ~~~~~~^~~~~~~~
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1691:15: note: remove extraneous parentheses around the comparison to silence this warning
while( (ready == FALSE))
       ~      ^       ~
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1691:15: note: use '=' to turn this equality comparison into an assignment
while( (ready == FALSE))
              ^~
              =
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1695:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if ((count == 0))
     ~~~~~~^~~~
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1695:12: note: remove extraneous parentheses around the comparison to silence this warning
if ((count == 0))
    ~      ^   ~
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1695:12: note: use '=' to turn this equality comparison into an assignment
if ((count == 0))
           ^~
           =
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1900:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if ((self.playing == TRUE))
     ~~~~~~~~~~~~~^~~~~~~
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1900:19: note: remove extraneous parentheses around the comparison to silence this warning
if ((self.playing == TRUE))
    ~             ^      ~
C:\Users\Lenovo\AppData\Local\Temp\glbasic\gpc_tempg.cpp:1900:19: note: use '=' to turn this equality comparison into an assignment
if ((self.playing == TRUE))
                  ^~
                  =
3 warnings generated.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

Yes, I get compiling errors too...

mentalthink

Yes ,me too, the compiler says something about java in escripmem.

Kitty Hello

It's warnings. You can add the -Wparentheses-equality in platforminfo.ini

Gesendet von meinem GT-N7100 mit Tapatalk


MrTAToad

I also get AssertionErrors :

Code (glbasic) Select
Traceback (most recent call last):
  File "Z:\Programming\GLBasic\Compiler\platform\JavaScript\bin\emscripten\master\emcc", line 1575, in <module>
    final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
  File "Z:\Programming\GLBasic\Compiler\platform\JavaScript\bin\emscripten\master\tools\shared.py", line 1370, in emscripten
    assert os.path.exists(filename + '.o.js') and len(open(filename + '.o.js', 'r').read()) > 0, 'Emscripten failed to generate .js: ' + str(compiler_output)
AssertionError: Emscripten failed to generate .js:

MrPlow

Quote from: Kitty Hello on 2014-Sep-17
It's warnings. You can add the -Wparentheses-equality in platforminfo.ini

Gesendet von meinem GT-N7100 mit Tapatalk

Sorry, I dont know what that means... :noggin:
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

You can ignore warnings.

MrPlow

Quote from: Kitty Hello on 2014-Sep-17
It's warnings. You can add the -Wparentheses-equality in platforminfo.ini

Gesendet von meinem GT-N7100 mit Tapatalk

Sorry if this is a dumb question - but what is that ini file located?
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Will virtual screens work in html5?

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

erico

It is a matter of testing.
I tried to compile my game a while ago to html5, there was a memory variable problem, I haven´t got into it after but I recall Gernot said he would resolve this in future releases. So my guess is that it should be fine.