I have faced with problem when I try to build simple project from source using emscripten. Let me describe my acts step by step:
- I am using ubuntu 14.04 LTS
- install emscripten (I have followed instructions)
- install cocos2dx (I have followed instructions on the github)
- I have created new project ( I have followed instructions on github too), build it for linux and run, it work good.
Next step I have tried to build for web using emscripten in directory of project i have entered in console:
cmake -DCMAKE_CXX_COMPILER=em++ -DCMAKE_CC_COMPILER=emcc
make
Firstly, I have got error with CC_DLL in tinyxml2.h, I removed CC_DLL, And rerun. Then I have got error on unknown include in directory "unzip" ( I have copied zlib.h and zconf.h to directory) and rerun. Then I have got error with GLubyte -use of undeclared identifier, I have added:
#include <SDL/SDL.h>
#include <GL/gl.h>
#include <GL/glu.h>
and rerun And Then I have got error use of undeclared identifier 'glDeleteBuffers'; in directory /cocos /2d/CCCameraBackgroundBrush.cpp and many same errors, and I do not know what to do...
Could You help me please how to fix it?
Thank you for any help!