WebGL Sample Build Problem

i have problem that build WebGL sample.

error:
C:\OCCT_7.6.0\OCCT_760_src\samples\webgl\Build>emmake make
make: C:\emsdk\mingw\7.1.0_64bit\bin\mingw32-make.exe
[ 33%] Building CXX object CMakeFiles/occt-webgl-sample.dir/WasmOcctView.cpp.o
em++: warning: linker flag ignored during compilation: '--bind' [-Wunused-command-line-argument]
em++: warning: argument unused during compilation: '-lembind' [-Wunused-command-line-argument]
[ 66%] Building CXX object CMakeFiles/occt-webgl-sample.dir/main.cpp.o
em++: warning: linker flag ignored during compilation: '--bind' [-Wunused-command-line-argument]
em++: warning: argument unused during compilation: '-lembind' [-Wunused-command-line-argument]
[100%] Linking CXX executable occt-webgl-sample.js
error: undefined symbol: FT_Done_Face (referenced by top-level compiled C/C++ code)
warning: Link with `-sLLD_REPORT_UNDEFINED` to get more information on undefined symbols
warning: To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0`
warning: _FT_Done_Face may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_Done_FreeType (referenced by top-level compiled C/C++ code)
warning: _FT_Done_FreeType may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_Get_Char_Index (referenced by top-level compiled C/C++ code)
warning: _FT_Get_Char_Index may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_Get_Kerning (referenced by top-level compiled C/C++ code)
warning: _FT_Get_Kerning may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_Init_FreeType (referenced by top-level compiled C/C++ code)
warning: _FT_Init_FreeType may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_Load_Char (referenced by top-level compiled C/C++ code)
warning: _FT_Load_Char may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_MulFix (referenced by top-level compiled C/C++ code)
warning: _FT_MulFix may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_New_Face (referenced by top-level compiled C/C++ code)
warning: _FT_New_Face may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_New_Memory_Face (referenced by top-level compiled C/C++ code)
warning: _FT_New_Memory_Face may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_Select_Charmap (referenced by top-level compiled C/C++ code)
warning: _FT_Select_Charmap may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_Set_Char_Size (referenced by top-level compiled C/C++ code)
warning: _FT_Set_Char_Size may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FT_Set_Transform (referenced by top-level compiled C/C++ code)
warning: _FT_Set_Transform may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_AllocateT (referenced by top-level compiled C/C++ code)
warning: _FreeImage_AllocateT may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_CloseMemory (referenced by top-level compiled C/C++ code)
warning: _FreeImage_CloseMemory may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_ConvertTo24Bits (referenced by top-level compiled C/C++ code)
warning: _FreeImage_ConvertTo24Bits may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_ConvertTo8Bits (referenced by top-level compiled C/C++ code)
warning: _FreeImage_ConvertTo8Bits may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_FIFSupportsReading (referenced by top-level compiled C/C++ code)
warning: _FreeImage_FIFSupportsReading may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetBPP (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetBPP may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetBits (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetBits may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetColorType (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetColorType may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetFIFFromFilename (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetFIFFromFilename may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetFileType (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetFileType may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetFileTypeFromMemory (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetFileTypeFromMemory may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetHeight (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetHeight may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetImageType (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetImageType may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetPitch (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetPitch may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_GetWidth (referenced by top-level compiled C/C++ code)
warning: _FreeImage_GetWidth may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_Load (referenced by top-level compiled C/C++ code)
warning: _FreeImage_Load may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_LoadFromMemory (referenced by top-level compiled C/C++ code)
warning: _FreeImage_LoadFromMemory may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_OpenMemory (referenced by top-level compiled C/C++ code)
warning: _FreeImage_OpenMemory may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: FreeImage_Unload (referenced by top-level compiled C/C++ code)

J.W.Kim's picture

Sorry! ^^;; I can't see "-sERROR_ON_UNDEFINED_SYMBOLS=0" .
This flag add to ...\CMakeFiles\occt-webgl-sample.dir\link.txt