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
Problem description:
downloading a fresh copy of raylib repo from Github and compiling for Web, following wiki page(https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5)), produces web version of the raylib library that is named incorrectly.
the wiki page was accurate until de6c09e change was made to raylib.
Steps to reproduce:
-download raylib from Github
-compile for WEB following instruction provided on Wiki (https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5)) by running these commands in the 'src' folder:
emcc -c rcore.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rshapes.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rtextures.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rtext.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rmodels.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c utils.c -Os -Wall -DPLATFORM_WEB
emcc -c raudio.c -Os -Wall -DPLATFORM_WEB
-enter the examples folder and build the examples
you can build the examples either by:
1) modifying 'Makefile' in the examples folder to build for PLATFORM_WEB by modifying line 57 from
PLATFORM ?= PLATFORM_DESKTOP
to
PLATFORM ?= PLATFORM_WEB
- and then run 'make' in examples folder
-or, at your convenience, by:
2) running : make PLATFORM=PLATFORM_WEB -B in the examples folder.
this produces the 'library name' error :
emmake make -f Makefile.Web core/core_2d_camera
make: make -f Makefile.Web core/core_2d_camera
make[1]: Entering directory '/home/linuxmin/Downloads/test_raylib/examples'
emcc -o core/core_2d_camera.html core/core_2d_camera.c -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result -O3 -I. -I../src -I../src/external -L. -L../src -L../src -sTOTAL_MEMORY=134217728 -sFORCE_FILESYSTEM=1 -sEXPORTED_RUNTIME_METHODS=ccall -sMINIFY_HTML=0 -sUSE_GLFW=3 -sASYNCIFY --shell-file ../src/shell.html ../src/libraylib.web.a -DPLATFORM_WEB
emcc: error: ../src/libraylib.web.a: No such file or directory ("../src/libraylib.web.a" was expected to be an input file, based on the commandline arguments provided)
make[1]: *** [Makefile.Web:565: core/core_2d_camera] Error 1
make[1]: Leaving directory '/home/linuxmin/Downloads/test_raylib/examples'
emmake: error: 'make -f Makefile.Web core/core_2d_camera' failed (returned 2)
make: *** [Makefile:694: core/core_2d_camera] Error 1```
Problem description:
downloading a fresh copy of raylib repo from Github and compiling for Web, following wiki page(https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5)), produces web version of the raylib library that is named incorrectly.
the wiki page was accurate until de6c09e change was made to raylib.
Steps to reproduce:
-download raylib from Github
-compile for WEB following instruction provided on Wiki (https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5)) by running these commands in the 'src' folder:
emcc -c rcore.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rshapes.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rtextures.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rtext.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rmodels.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c utils.c -Os -Wall -DPLATFORM_WEB
emcc -c raudio.c -Os -Wall -DPLATFORM_WEB
emar rcs libraylib.a rcore.o rshapes.o rtextures.o rtext.o rmodels.o utils.o raudio.o
-enter the examples folder and build the examples
you can build the examples either by:
1) modifying 'Makefile' in the examples folder to build for PLATFORM_WEB by modifying line 57 from
PLATFORM ?= PLATFORM_DESKTOP
to
PLATFORM ?= PLATFORM_WEB
- and then run 'make' in examples folder
-or, at your convenience, by:
2) running : make PLATFORM=PLATFORM_WEB -B in the examples folder.
this produces the 'library name' error :
emmake make -f Makefile.Web core/core_2d_camera
make: make -f Makefile.Web core/core_2d_camera
make[1]: Entering directory '/home/linuxmin/Downloads/test_raylib/examples'
emcc -o core/core_2d_camera.html core/core_2d_camera.c -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result -O3 -I. -I../src -I../src/external -L. -L../src -L../src -sTOTAL_MEMORY=134217728 -sFORCE_FILESYSTEM=1 -sEXPORTED_RUNTIME_METHODS=ccall -sMINIFY_HTML=0 -sUSE_GLFW=3 -sASYNCIFY --shell-file ../src/shell.html ../src/libraylib.web.a -DPLATFORM_WEB
emcc: error: ../src/libraylib.web.a: No such file or directory ("../src/libraylib.web.a" was expected to be an input file, based on the commandline arguments provided)
make[1]: *** [Makefile.Web:565: core/core_2d_camera] Error 1
make[1]: Leaving directory '/home/linuxmin/Downloads/test_raylib/examples'
emmake: error: 'make -f Makefile.Web core/core_2d_camera' failed (returned 2)
make: *** [Makefile:694: core/core_2d_camera] Error 1```
Possible solution:
Change wiki page (link: https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5)#2-compile-raylib-library) to read:
emcc -c rcore.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rshapes.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rtextures.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rtext.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rmodels.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c utils.c -Os -Wall -DPLATFORM_WEB
emcc -c raudio.c -Os -Wall -DPLATFORM_WEB
emar rcs libraylib.web.a rcore.o rshapes.o rtextures.o rtext.o rmodels.o utils.o raudio.o
The text was updated successfully, but these errors were encountered: