This Dockerfile builds a container of Emscripten SDk that enables Emscripten to convert Gui Guider project to JavaScript
Note: This funciton only support v8 project.
- Please make sure you have docker installed on the host.
- In any directoy:
git clone --recursive https://github.com/nxp/lv_web_emscripten.git -b release/nxp-v8.3.10-gg
cd lv_web_emscripten
- unix:
docker build -t emscripten_gg:v1 .
ordocker build --build-arg http_proxy=${proxy_server} --build-arg https_proxy=${proxy_server} -t emscripten_gg:v1 .
windows:docker build -t emscripten_gg:v1 -f Dockerfile.win .
ordocker build --build-arg http_proxy=${proxy_server} --build-arg https_proxy=${proxy_server} -t emscripten_gg:v1 -f Dockerfile.win .
Firstly, make sure the code generation is complete. Then click the "export code -> Emscripten" option On the GUI Guider, Will get a folder that adapts to Emscripten SDK.
Please make sure to execute in the above exported directory.
docker run -v ${EXPORTED PROJECT PATH}:/root -it emscripten_gg:v1
eg:docker run -v C:\nxp\gui\demo_html:/root -it emscripten_gg:v1
- A file called
index.html
will be generated. Run this in your browser.
- Projects using third-party libraries cannot be converted, eg:Gui guider application with freemaster.
- Chrome can't open the generated html file offline. It works if you copy the files to a server. Use Firefox or other browser for offline testing.
- Firefox can't open the generated html file offline unless you go to
about:config
and changeprivacy.file_unique_origin
tofalse
.