Jump to content

[SOLVED] Engine compilation error for Webgl


photo

Recommended Posts

We are exploring Unigine's Webgl port since some time and facing some issue while compiling the engine.

 

We are performing manual compilation from engine directory, setting webgl as default platform and clang as default compiler in SConstruct.

 

First few errors are 

engine\math/MathLib.h:457:31: error: use of undeclared identifier '_mm_set_ss'; did you mean '_mm_set1_ps'?
_mm_store_ss(&v,_mm_sqrt_ss(_mm_set_ss(v)));

engine\math/MathLib.h:457:19: error: use of undeclared identifier '_mm_sqrt_ss'; did you mean '_mm_sqrt_ps'?
_mm_store_ss(&v,_mm_sqrt_ss(_mm_set_ss(v)));

engine\math/MathLib.h:457:3: error: use of undeclared identifier '_mm_store_ss'; did you mean '_mm_store_ps'?
_mm_store_ss(&v,_mm_sqrt_ss(_mm_set_ss(v)));

engine\math/MathLib.h:497:19: error: use of undeclared identifier '_mm_rcp_ss'
_mm_store_ss(&v,_mm_rcp_ss(_mm_set_ss(v)));

engine\math/MathLib.h:812:33: error: use of undeclared identifier '_MM_HINT_NTA'
_mm_prefetch((const char*)ptr,_MM_HINT_NTA);
.
.
.
.

We are unable to get these implementations in xmmintrin.h of Emscripten.

 

Does anyone else get success in compiling Engine for WebGL platform? Which Version of Emscripten and Unigine version was used.

 

 

We are having

 

Scons version : 2.2.0

Emscripten version : 1.12/1.20/1.23

Unigine version : unigine_2014_06_04

Link to comment

We tried disabling simd, which moves the compilation to next step. Now it looks like "unigine\source\engine\render\opengles" directory is missing from the full source version unigine_2014_06_04.

 

We understand that WebGL port is currently in beta phase and not supported, but since we are in early stage of exploring the WebGL potential, we need all necessary files required to compile Unigine for WebGL platform.

Link to comment

Hi,

 

Please, contact us directly at engine-support@unigine.com. We will send you missing files. However, WebGL port is deprecated and it will not recieve updates in future. We are highly recommended to not use it.

 

Sorry for the inconvenience caused.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
  • 8 months later...

Hi Silent,

 

Which unigine version contains the last working webgl version?

Could you provide the missing files to us as well?

 

Thanks,

Ian

Link to comment
×
×
  • Create New...