git clone https://github.com/torturelabs/debug_h265 --recursive
Used for synchronize CMake finders.
wget https://camera.torturelabs.com/var.h265
Prepare configuration, native code (tested on macOS and Linux):
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSUPPORTS_SSE4_1=ON
Compilation to WASM:
source ~/git/emsdk/emsdk_env.sh
emcmake cmake -DBROWSER_RUN=ON -H. ......
cmake --build build
python3 -m http.server --directory build
open http://0.0.0.0:8000/debug_h265.html
Build using Intel C++ compiler (native code only), add to cmake flags:
-DCMAKE_CXX_COMPILER=icpc -DCMAKE_C_COMPILER=icc
Make build (in all cases)
cmake --build build -- VERBOSE=1
WASM version with standalone V8 installed:
cd build ; d8 debug_h265.js