Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] [web] Fix (missing) examples compilation for PLATFORM_WEB #4487

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

asdqwe
Copy link
Contributor

@asdqwe asdqwe commented Nov 13, 2024

Error logs:
~/raylib-master/src$ make PLATFORM=PLATFORM_WEB
[...]
~/raylib-master/src$ cd ../examples/
~/raylib-master/examples$ make PLATFORM=PLATFORM_WEB core
[...]
core/core_basic_window_web.c:18:10: fatal error: 'raylib.h' file not found
   18 | #include "raylib.h"
      |          ^~~~~~~~~~
1 error generated.
[...]
core/core_input_virtual_controls.c:18:10: fatal error: 'raylib.h' file not found
   18 | #include "raylib.h"
      |          ^~~~~~~~~~
1 error generated.
[...]
~/raylib-master/examples$ make PLATFORM=PLATFORM_WEB textures
[...]
textures/textures_image_channel.c:18:10: fatal error: 'raylib.h' file not found
   18 | #include <raylib.h>
      |          ^~~~~~~~~~
1 error generated.
[...]
~/raylib-master/examples$ make PLATFORM=PLATFORM_WEB models
[...]
models/models_bone_socket.c:16:10: fatal error: 'raylib.h' file not found
   16 | #include "raylib.h"
      |          ^~~~~~~~~~
1 error generated.
[...]
models/models_point_rendering.c:16:10: fatal error: 'raylib.h' file not found
   16 | #include "raylib.h"
      |          ^~~~~~~~~~
1 error generated.
[...]
~/raylib-master/examples$ make PLATFORM=PLATFORM_WEB shaders
[...]
shaders/shaders_basic_pbr.c:20:10: fatal error: 'raylib.h' file not found
   20 | #include "raylib.h"
      |          ^~~~~~~~~~
1 error generated.
[...]
shaders/shaders_shadowmap.c:14:10: fatal error: 'raylib.h' file not found
   14 | #include "raylib.h"
      |          ^~~~~~~~~~
1 error generated.
[...]
shaders/shaders_vertex_displacement.c:16:10: fatal error: 'raylib.h' file not found
   16 | #include "raylib.h"
      |          ^~~~~~~~~~
1 error generated.
[...]

Also fixes #4483

@raysan5 raysan5 merged commit 377248b into raysan5:master Nov 13, 2024
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Nov 13, 2024

@asdqwe thank you very much for reviewing this issue! 👍🙂

@asdqwe asdqwe deleted the fix-examples-web branch November 13, 2024 22:13
psxdev pushed a commit to raylib4Consoles/raylib that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[rcore_web] Web examples fail to compile (missing recipes)
2 participants