suikki / simpleSDL

A simple crossplatform libSDL cmake build environment example/test.
MIT License
47 stars 6 forks source link

Emscripten build #1

Closed generatives closed 5 years ago

generatives commented 6 years ago

I just got your environment setup. I've been able to get the Windows and Android builds running but I am getting errors from the emscripten build. I am developing on Windows 10. Any idea what I am doing wrong? I've attached the output below.

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>setlocal

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>set PROJECT_DIR=C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>set BUILD_DIR=C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..\build\emscripten

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>call "C:\Software\emscripten\emsdk_env.bat"
Setting environment variables:
EMSDK = C:/Software/emscripten
JAVA_HOME = C:\Software\emscripten\java\8.152_64bit

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>if not exist "C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..\build\emscripten_debug" mkdir "C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..\build\emscripten_debug"   || goto error

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>pushd "C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..\build\emscripten_debug"   || goto error

C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug>call emcmake cmake -D CMAKE_BUILD_TYPE:STRING=Debug "C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\.."   || goto error
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- 0.8.0 :: 8 :: 0 :: 8 :: 2.0
--
-- SDL2 was configured with the following options:
--
-- Platform: Emscripten-1
-- 64-bit:   FALSE
-- Compiler: C:/Software/emscripten/emscripten/1.37.35/emcc.bat
--
-- Subsystems:
--   Atomic:    OFF
--   Audio:     ON
--   Video:     ON
--   Render:    ON
--   Events:    ON
--   Joystick:  ON
--   Haptic:    ON
--   Power:     ON
--   Threads:   OFF
--   Timers:    ON
--   File:      ON
--   Loadso:    OFF
--   CPUinfo:   OFF
--   Filesystem:        ON
--   Dlopen:    OFF
--
-- Options:
--   3DNOW                  (Wanted: OFF): OFF
--   ALSA                   (Wanted: ON): OFF
--   ALSA_SHARED            (Wanted: ON): OFF
--   ALTIVEC                (Wanted: OFF): OFF
--   ARTS                   (Wanted: ON): OFF
--   ARTS_SHARED            (Wanted: ON): OFF
--   ASSEMBLY               (Wanted: OFF): OFF
--   ASSERTIONS             (Wanted: auto): auto
--   CLOCK_GETTIME          (Wanted: OFF): OFF
--   DIRECTFB_SHARED        (Wanted: OFF): OFF
--   DIRECTX                (Wanted: OFF): OFF
--   DISKAUDIO              (Wanted: ON): ON
--   DUMMYAUDIO             (Wanted: ON): ON
--   ESD                    (Wanted: ON): OFF
--   ESD_SHARED             (Wanted: ON): OFF
--   FUSIONSOUND            (Wanted: OFF): OFF
--   FUSIONSOUND_SHARED     (Wanted: OFF): OFF
--   GCC_ATOMICS            (Wanted: ON): OFF
--   INPUT_TSLIB            (Wanted: ON): OFF
--   JACK                   (Wanted: ON): OFF
--   JACK_SHARED            (Wanted: ON): OFF
--   KMSDRM_SHARED          (Wanted: ON): OFF
--   LIBC                   (Wanted: ON): ON
--   LIBSAMPLERATE          (Wanted: ON): OFF
--   LIBSAMPLERATE_SHARED   (Wanted: ON): OFF
--   MIR_SHARED             (Wanted: ON): OFF
--   MMX                    (Wanted: OFF): OFF
--   NAS                    (Wanted: ON): OFF
--   NAS_SHARED             (Wanted: ON): OFF
--   OSS                    (Wanted: ON): OFF
--   PTHREADS               (Wanted: OFF): OFF
--   PTHREADS_SEM           (Wanted: OFF): OFF
--   PULSEAUDIO             (Wanted: ON): OFF
--   PULSEAUDIO_SHARED      (Wanted: ON): OFF
--   RENDER_D3D             (Wanted: OFF): OFF
--   RPATH                  (Wanted: ON): OFF
--   SDL_DLOPEN             (Wanted: OFF): OFF
--   SDL_STATIC_PIC         (Wanted: OFF): OFF
--   SDL_TEST               (Wanted: OFF): OFF
--   SNDIO                  (Wanted: ON): OFF
--   SSE                    (Wanted: OFF): OFF
--   SSE2                   (Wanted: OFF): OFF
--   SSE3                   (Wanted: OFF): OFF
--   SSEMATH                (Wanted: OFF): OFF
--   VIDEO_COCOA            (Wanted: OFF): OFF
--   VIDEO_DIRECTFB         (Wanted: OFF): OFF
--   VIDEO_DUMMY            (Wanted: ON): ON
--   VIDEO_KMSDRM           (Wanted: ON): OFF
--   VIDEO_MIR              (Wanted: ON): OFF
--   VIDEO_OPENGL           (Wanted: ON): OFF
--   VIDEO_OPENGLES         (Wanted: ON): ON
--   VIDEO_RPI              (Wanted: ON): OFF
--   VIDEO_VIVANTE          (Wanted: ON): OFF
--   VIDEO_VULKAN           (Wanted: OFF): OFF
--   VIDEO_WAYLAND          (Wanted: ON): OFF
--   VIDEO_WAYLAND_QT_TOUCH (Wanted: ON): OFF
--   VIDEO_X11              (Wanted: ON): OFF
--   VIDEO_X11_XCURSOR      (Wanted: ON): OFF
--   VIDEO_X11_XINERAMA     (Wanted: ON): OFF
--   VIDEO_X11_XINPUT       (Wanted: ON): OFF
--   VIDEO_X11_XRANDR       (Wanted: ON): OFF
--   VIDEO_X11_XSCRNSAVER   (Wanted: ON): OFF
--   VIDEO_X11_XSHAPE       (Wanted: ON): OFF
--   VIDEO_X11_XVM          (Wanted: ON): OFF
--   WAYLAND_SHARED         (Wanted: ON): OFF
--   X11_SHARED             (Wanted: ON): OFF
--
--  CFLAGS:         -idirafter C:/Development/GameDevelopment/Library/simpleSDL/contrib/SDL/src/video/khronos
--  EXTRA_CFLAGS:
--  EXTRA_LDFLAGS:
--  EXTRA_LIBS:
--
--  Build Shared Library: OFF
--  Build Static Library: ON
--  Build Static Library with Position Independent Code: OFF
--
-- If something was not detected, although the libraries
-- were installed, then make sure you have set the
-- CFLAGS and LDFLAGS environment variables correctly.
--
     Sources: source/main.c

Include dirs: C:/Development/GameDevelopment/Library/simpleSDL/contrib/SDL/include

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Development/GameDevelopment/Library/simpleSDL/build/emscripten_debug
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2018-03-01 7:31:07 AM.
Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" on node 1 (default
targets).
Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (1) is building "C:
\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ZERO_CHECK.vcxproj" (2) on node 1 (default target
s).
PrepareForBuild:
  Creating directory "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\Debug\".
InitializeBuildStatus:
  Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
CleanupEmptyRefsFolder:
  Removing directory "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\Debug\".
Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ZERO_CHECK.vcxproj" (def
ault targets).

Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (1) is building "C:
\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (3) on node 1 (default tar
gets).
Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (3) is building
 "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2-static.vcxproj" (4) on node
1 (default targets).
InitializeBuildStatus:
  Touching "SDL2-static.dir\Debug\SDL2-static.tlog\unsuccessfulbuild".
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x86\CL.exe /c /IC
  :\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\include /IC:\Development\GameDevel
  opment\Library\simpleSDL\contrib\SDL\include /nologo /W1 /WX- /diagnostics:classic /O2 /Oy- /D USING_GENERATED_CONFIG
  _H /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"SDL2-static.
  dir\Debug\\" /Fd"SDL2-static.dir\Debug\SDL2-static.pdb" /Gd /TC /analyze- /errorReport:queue  -idirafter C:/Developme
  nt/GameDevelopment/Library/simpleSDL/contrib/SDL/src/video/khronos -g -Wno-warn-absolute-paths C:\Development\GameDev
  elopment\Library\simpleSDL\contrib\SDL\src\SDL.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\SDL
  _assert.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\SDL_dataqueue.c C:\Development\GameDevelop
  ment\Library\simpleSDL\contrib\SDL\src\SDL_error.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\S
  DL_hints.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\SDL_log.c C:\Development\GameDevelopment\
  Library\simpleSDL\contrib\SDL\src\atomic\SDL_atomic.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\sr
  c\atomic\SDL_spinlock.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\audio\SDL_audio.c C:\Develop
  ment\GameDevelopment\Library\simpleSDL\contrib\SDL\src\audio\SDL_audiocvt.c C:\Development\GameDevelopment\Library\si
  mpleSDL\contrib\SDL\src\audio\SDL_audiodev.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\audio\S
  DL_audiotypecvt.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\audio\SDL_mixer.c C:\Development\G
  ameDevelopment\Library\simpleSDL\contrib\SDL\src\audio\SDL_wave.c C:\Development\GameDevelopment\Library\simpleSDL\co
  ntrib\SDL\src\cpuinfo\SDL_cpuinfo.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\dynapi\SDL_dynap
  i.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\events\SDL_clipboardevents.c C:\Development\Game
  Development\Library\simpleSDL\contrib\SDL\src\events\SDL_dropevents.c C:\Development\GameDevelopment\Library\simpleSD
  L\contrib\SDL\src\events\SDL_events.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\events\SDL_ges
  ture.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\events\SDL_keyboard.c C:\Development\GameDeve
  lopment\Library\simpleSDL\contrib\SDL\src\events\SDL_mouse.c C:\Development\GameDevelopment\Library\simpleSDL\contrib
  \SDL\src\events\SDL_quit.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\events\SDL_touch.c C:\Dev
  elopment\GameDevelopment\Library\simpleSDL\contrib\SDL\src\events\SDL_windowevents.c C:\Development\GameDevelopment\L
  ibrary\simpleSDL\contrib\SDL\src\file\SDL_rwops.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\li
  bm\e_atan2.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\e_fmod.c C:\Development\GameDevelo
  pment\Library\simpleSDL\contrib\SDL\src\libm\e_log.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src
  \libm\e_log10.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\e_pow.c C:\Development\GameDeve
  lopment\Library\simpleSDL\contrib\SDL\src\libm\e_rem_pio2.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\
  SDL\src\libm\e_sqrt.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\k_cos.c C:\Development\Ga
  meDevelopment\Library\simpleSDL\contrib\SDL\src\libm\k_rem_pio2.c C:\Development\GameDevelopment\Library\simpleSDL\co
  ntrib\SDL\src\libm\k_sin.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\k_tan.c C:\Developme
  nt\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\s_atan.c C:\Development\GameDevelopment\Library\simpleSDL\c
  ontrib\SDL\src\libm\s_copysign.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\s_cos.c C:\Dev
  elopment\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\s_fabs.c C:\Development\GameDevelopment\Library\simpl
  eSDL\contrib\SDL\src\libm\s_floor.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\s_scalbn.c
  C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\libm\s_sin.c C:\Development\GameDevelopment\Library\
  simpleSDL\contrib\SDL\src\libm\s_tan.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\SDL_d3
  dmath.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\SDL_render.c C:\Development\GameDevel
  opment\Library\simpleSDL\contrib\SDL\src\render\SDL_yuv_sw.c C:\Development\GameDevelopment\Library\simpleSDL\contrib
  \SDL\src\render\direct3d\SDL_render_d3d.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\dir
  ect3d\SDL_shaders_d3d.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\direct3d11\SDL_render
  _d3d11.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\direct3d11\SDL_shaders_d3d11.c C:\De
  velopment\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\opengl\SDL_render_gl.c C:\Development\GameDevelopm
  ent\Library\simpleSDL\contrib\SDL\src\render\opengl\SDL_shaders_gl.c C:\Development\GameDevelopment\Library\simpleSDL
  \contrib\SDL\src\render\opengles\SDL_render_gles.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\r
  ender\opengles2\SDL_render_gles2.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\opengles2\
  SDL_shaders_gles2.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\psp\SDL_render_psp.c C:\D
  evelopment\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\software\SDL_blendfillrect.c C:\Development\GameD
  evelopment\Library\simpleSDL\contrib\SDL\src\render\software\SDL_blendline.c C:\Development\GameDevelopment\Library\s
  impleSDL\contrib\SDL\src\render\software\SDL_blendpoint.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SD
  L\src\render\software\SDL_drawline.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\software
  \SDL_drawpoint.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\software\SDL_render_sw.c C:\
  Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\render\software\SDL_rotate.c C:\Development\GameDevelop
  ment\Library\simpleSDL\contrib\SDL\src\stdlib\SDL_getenv.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\S
  DL\src\stdlib\SDL_iconv.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\stdlib\SDL_malloc.c C:\Dev
  elopment\GameDevelopment\Library\simpleSDL\contrib\SDL\src\stdlib\SDL_qsort.c C:\Development\GameDevelopment\Library\
  simpleSDL\contrib\SDL\src\stdlib\SDL_stdlib.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\stdlib
  \SDL_string.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\thread\SDL_thread.c C:\Development\Gam
  eDevelopment\Library\simpleSDL\contrib\SDL\src\timer\SDL_timer.c C:\Development\GameDevelopment\Library\simpleSDL\con
  trib\SDL\src\video\SDL_RLEaccel.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_blit.c C
  :\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_blit_0.c C:\Development\GameDevelopment\Lib
  rary\simpleSDL\contrib\SDL\src\video\SDL_blit_1.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\vi
  deo\SDL_blit_A.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_blit_N.c C:\Development\G
  ameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_blit_auto.c C:\Development\GameDevelopment\Library\simpleS
  DL\contrib\SDL\src\video\SDL_blit_copy.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_b
  lit_slow.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_bmp.c C:\Development\GameDevelo
  pment\Library\simpleSDL\contrib\SDL\src\video\SDL_clipboard.c C:\Development\GameDevelopment\Library\simpleSDL\contri
  b\SDL\src\video\SDL_egl.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_fillrect.c C:\De
  velopment\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_pixels.c C:\Development\GameDevelopment\Library
  \simpleSDL\contrib\SDL\src\video\SDL_rect.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SD
  L_shape.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_stretch.c C:\Development\GameDev
  elopment\Library\simpleSDL\contrib\SDL\src\video\SDL_surface.c C:\Development\GameDevelopment\Library\simpleSDL\contr
  ib\SDL\src\video\SDL_video.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_vulkan_utils.
  c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\SDL_yuv.c C:\Development\GameDevelopment\Lib
  rary\simpleSDL\contrib\SDL\src\video\yuv2rgb\yuv_rgb.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\s
  rc\joystick\SDL_gamecontroller.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\joystick\SDL_joysti
  ck.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\haptic\SDL_haptic.c C:\Development\GameDevelopm
  ent\Library\simpleSDL\contrib\SDL\src\power\SDL_power.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\
  src\audio\dummy\SDL_dummyaudio.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\audio\disk\SDL_disk
  audio.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\dummy\SDL_nullevents.c C:\Development\
  GameDevelopment\Library\simpleSDL\contrib\SDL\src\video\dummy\SDL_nullframebuffer.c C:\Development\GameDevelopment\Li
  brary\simpleSDL\contrib\SDL\src\video\dummy\SDL_nullvideo.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\
  SDL\src\audio\emscripten\SDL_emscriptenaudio.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\files
  ystem\emscripten\SDL_sysfilesystem.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\joystick\emscri
  pten\SDL_sysjoystick.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\power\emscripten\SDL_syspower
  .c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\timer\unix\SDL_systimer.c C:\Development\GameDeve
  lopment\Library\simpleSDL\contrib\SDL\src\video\emscripten\SDL_emscriptenevents.c C:\Development\GameDevelopment\Libr
  ary\simpleSDL\contrib\SDL\src\video\emscripten\SDL_emscriptenframebuffer.c C:\Development\GameDevelopment\Library\sim
  pleSDL\contrib\SDL\src\video\emscripten\SDL_emscriptenmouse.c C:\Development\GameDevelopment\Library\simpleSDL\contri
  b\SDL\src\video\emscripten\SDL_emscriptenopengles.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\
  video\emscripten\SDL_emscriptenvideo.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\haptic\dummy\
  SDL_syshaptic.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\loadso\dummy\SDL_sysloadso.c C:\Deve
  lopment\GameDevelopment\Library\simpleSDL\contrib\SDL\src\thread\generic\SDL_syscond.c C:\Development\GameDevelopment
  \Library\simpleSDL\contrib\SDL\src\thread\generic\SDL_sysmutex.c C:\Development\GameDevelopment\Library\simpleSDL\con
  trib\SDL\src\thread\generic\SDL_syssem.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\thread\gene
  ric\SDL_systhread.c C:\Development\GameDevelopment\Library\simpleSDL\contrib\SDL\src\thread\generic\SDL_systls.c
cl : Command line error D8021: invalid numeric argument '/Wno-warn-absolute-paths' [C:\Development\GameDevelopment\Libr
ary\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2-static.vcxproj]
Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2-static.
vcxproj" (default targets) -- FAILED.

Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (3) is building
 "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcxproj" (5) on node 1 (
default targets).
InitializeBuildStatus:
  Touching "SDL2main.dir\Debug\SDL2main.tlog\unsuccessfulbuild".
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x86\CL.exe /c /IC
  :\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\include /IC:\Development\GameDevel
  opment\Library\simpleSDL\contrib\SDL\include /nologo /W1 /WX- /diagnostics:classic /O2 /Oy- /D USING_GENERATED_CONFIG
  _H /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"SDL2main.dir
  \Debug\\" /Fd"SDL2main.dir\Debug\SDL2main.pdb" /Gd /TC /analyze- /errorReport:queue  -idirafter C:/Development/GameDe
  velopment/Library/simpleSDL/contrib/SDL/src/video/khronos -g -Wno-warn-absolute-paths C:\Development\GameDevelopment\
  Library\simpleSDL\contrib\SDL\src\main\dummy\SDL_dummy_main.c
cl : Command line error D8021: invalid numeric argument '/Wno-warn-absolute-paths' [C:\Development\GameDevelopment\Libr
ary\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcxproj]
Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcx
proj" (default targets) -- FAILED.

Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (
default targets) -- FAILED.

Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (defa
ult targets) -- FAILED.

Build FAILED.

"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (default target) (3) ->
"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2-static.vcxproj" (default targ
et) (4) ->
(ClCompile target) ->
  cl : Command line error D8021: invalid numeric argument '/Wno-warn-absolute-paths' [C:\Development\GameDevelopment\Li
brary\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2-static.vcxproj]

"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (default target) (3) ->
"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcxproj" (default target)
 (5) ->
  cl : Command line error D8021: invalid numeric argument '/Wno-warn-absolute-paths' [C:\Development\GameDevelopment\Li
brary\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcxproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:01.11
Build failed!
Press any key to continue . . .
suikki commented 6 years ago

Not sure what's happening there. Seems that cmake is trying to build using visual studio. That should not happen with emscripten. Maybe you don't have a proper emscripten toolchain installed.

Run emsdk list in the emscripten dir to see what is installed and make sure you have clang and emscripten-1.37.9

To install all the latest emscripten stuff you can do something like

emsdk update
emsdk install latest
emsdk activate latest

it should include clang.

The build script uses emsdk_env.bat to setup emscripten for you it only lists:

EMSDK = C:/Software/emscripten
JAVA_HOME = C:\Software\emscripten\java\8.152_64bit

for me it shows a lot more stuff:

Adding directories to PATH:
PATH += C:\dev\emscripten
PATH += C:\dev\emscripten\clang\e1.37.9_64bit
PATH += C:\dev\emscripten\node\4.1.1_64bit\bin
PATH += C:\dev\emscripten\python\2.7.5.3_64bit
PATH += C:\dev\emscripten\java\7.45_64bit\bin
PATH += C:\dev\emscripten\emscripten\1.37.9

Setting environment variables:
EMSDK = C:/dev/emscripten
EM_CONFIG = C:\Users\ok-computer10\.emscripten
BINARYEN_ROOT = C:\dev\emscripten\clang\e1.37.9_64bit\binaryen
JAVA_HOME = C:\dev\emscripten\java\7.45_64bit
EMSCRIPTEN = C:\dev\emscripten\emscripten\1.37.9
suikki commented 5 years ago

Closing inactive issue.