Trying to get started with WASM preview
-
I am following the instructions found here: https://wiki.qt.io/Qt_for_WebAssembly but cannot get my QtWidget hello world application to compile on OS X. Below are the complete steps I went through for set up:
$ git clone git://code.qt.io/qt/qt5.git && cd qt5
$ perl init-repository
$ ./configure -xplatform wasm-emscripten -nomake examples -prefix $PWD/qtbase
$ make module-qtbase module-qtdeclarativeAt this point I switched to my application directory where qmake succeeded and make failed:
$ ~/qt5/qtbase/bin/qmake && make
(...)
emcc: warning: cannot represent a NaN literal '0x7feef7a6e3c0' with custom bit pattern in NaN-canonicalizing JS engines (e.g. Firefox and Safari) without erasing bits!
in ret double 0x7FF4000000000000 in _ZL7qt_snanv.14706()
error: undefined symbol: FT_Done_Face
warning: To disable errors for undefined symbols use-s ERROR_ON_UNDEFINED_SYMBOLS=0
error: undefined symbol: FT_Done_FreeType
error: undefined symbol: FT_Get_Char_Index
error: undefined symbol: hb_blob_create
error: undefined symbol: hb_blob_get_empty
error: undefined symbol: png_create_info_struct
error: undefined symbol: png_create_read_struct
(...)So what's missing?