Build Ogre with Emscripten - Visual Studio?

Problems building or running the engine, queries about how to use features etc.
Post Reply
JanKleemann
Gnoblar
Posts: 15
Joined: Wed Sep 12, 2018 7:29 am

Build Ogre with Emscripten - Visual Studio?

Post by JanKleemann »

Ogre Version: 1.11.2
Operating System: Windows 10

When trying to compile Ogre with Emscripten and Visual Studio I'm getting an error complaining about the "/Winit-self" option. Looking into the CMakeLists.txt in the root folder of Ogre, this option is intended for UNIX build.

Is Ogre with Emscripten not supported on Windows/MSVC?
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: Build Ogre with Emscripten - Visual Studio?

Post by paroj »

Emscripten does not use MSVC but its own toolchain isntead. Please work through https://kripken.github.io/emscripten-si ... orial.html first.
Also note that current master has some fixes for zlib discovery on Emscripten.
JanKleemann
Gnoblar
Posts: 15
Joined: Wed Sep 12, 2018 7:29 am

Re: Build Ogre with Emscripten - Visual Studio?

Post by JanKleemann »

I did install Emscripten and could verify it with "emcc.bat -v".

I started
cmake -DCMAKE_TOOLCHAIN_FILE=%EMSCRIPTEN%/cmake/Modules/Platform/Emscripten.cmake ..
from my build directory (which is located in the ogre folder).

After some tweaking of the cache file (adding dependency paths), cmake runs without errors, but creates a Visual Studio solution and no makefiles. msbuild then complains about above option.
Post Reply