From d8d5fabe2019edb16db6518790c7bf9d3cee05d9 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 10 Jan 2022 12:39:05 +0100 Subject: [PATCH] Updated Working for Web (HTML5) (markdown) --- Working-for-Web-(HTML5).md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Working-for-Web-(HTML5).md b/Working-for-Web-(HTML5).md index e71f8d1..b041eaa 100644 --- a/Working-for-Web-(HTML5).md +++ b/Working-for-Web-(HTML5).md @@ -210,10 +210,6 @@ Here some of those additional flags: --profiling // Include information for code profiling ``` -FAQ: - -wasm-ld: error: unknown file type: rglfw.o - ### 4.2 Using Makefile To configure all required compilation flags for web, an already setup `Makefile` is provided, you can check [raysan5/raylib-game-template](https://github.com/raysan5/raylib-game-template) for reference. @@ -286,3 +282,13 @@ Upload the `project_name.zip` to a new itch.io project and select the option for You have some additional config options on the itch.io game section: `Embed options` When saving the page and entering your itch.io game page, it should be playable! + +## FAQ | Common Issues + +Q: When compiling my game I got this error with `libraylib.a`: +``` +wasm-ld: error: unknown file type: rglfw.o +``` +A: That's because it includes symbols from a previous compilation. Just delete all generated .o and `libraylib.a` and compile it again for web. + +**Please, feel free to add here your FAQ/Issues to help others!!!**