From 9e75f870bb2e87d97bed11d9fdbbd50d44b4a458 Mon Sep 17 00:00:00 2001 From: Rfaile313 Date: Sun, 2 Aug 2020 13:21:59 -0500 Subject: [PATCH] Update Makefile for web (#1332) When you install emsdk out of the box, the directory is no longer `$(EMSDK_PATH)/python/33.7.4_64bit` but rather `$(EMSDK_PATH)/python/3.7.4-pywin32_64bit` noting the `3.7.4-pywin32_64bit` change on the last file. Thus, without adjusting this in the raylib Makefile it will throw an error: ``` PS C:\raylib\raylib\src> make PLATFORM=PLATFORM_WEB -B emcc -c core.c -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=gnu99 -Os -s USE_GLFW=3 -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2 '"python"' is not recognized as an internal or external command, operable program or batch file. ``` However, changing this line in the Makefile compiles raylib for web as expected `"raylib library generated (libraylib.bc)!"` --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index db94298a4..65b400e43 100644 --- a/src/Makefile +++ b/src/Makefile @@ -150,7 +150,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB) EMSDK_PATH ?= C:/emsdk EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten CLANG_PATH = $(EMSDK_PATH)/upstream/bin - PYTHON_PATH = $(EMSDK_PATH)/python/3.7.4_64bit + PYTHON_PATH = $(EMSDK_PATH)/python/3.7.4-pywin32_64bit NODE_PATH = $(EMSDK_PATH)/node/12.18.1_64bit/bin export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH);C:\raylib\MinGW\bin:$$(PATH) endif