You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To build with Emscripten, set up Emscripten first, e.g. via the Emscripten SDK, and have your Emscripten tools set up in PATH (source emsdk_env.sh/.bat in your shell if using emsdk), and then
Build for Emscripten benchmark runs with SSE1 support:
MathGeoLib at http://clb.demon.fi/MathGeoLib/nightly/ is now worked to build with Emscripten
juj/sse1
branch from https://github.com/juj/emscripten/tree/sse1 . It can be used to unit test and benchmark SSE support in Emscripten. A quick setup guide:Setting up MathGeoLib:
git clone https://github.com/juj/MathGeoLib.git
Build structure follows traditional CMake out-of-source builds, so to configure different build types, do the following in MathGeoLib root directory:
mkdir new_directory_for_my_build
cd new_directory_for_my_build
cmake <options> ..
Where the cmake configure line with
<options>
is:Build for native benchmark runs with SSE1 support (no SSE2 or newer, replace with
-DMATH_SSE2=1
or e.g.-DMATH_AVX=1
for that):Build for native debug runs with SSE1 support:
To build with Emscripten, set up Emscripten first, e.g. via the Emscripten SDK, and have your Emscripten tools set up in PATH (source emsdk_env.sh/.bat in your shell if using emsdk), and then
Build for Emscripten benchmark runs with SSE1 support:
Build for Emscripten debug runs with SSE1 support:
To build and run the output, do in native:
make
/mingw32-make
/msbuild
/xcodebuild
depending on your OS and target IDE./MathGeoLib
and in Emscripten:
make
/mingw32-make
depending on your OSMathGeoLib.html
or if you want to run in shell, then the fileMathGeoLib.js
(TODO: incorporate these into the main docs)
The text was updated successfully, but these errors were encountered: