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

Update readme.md and bug report #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

keyle
Copy link

@keyle keyle commented May 6, 2024

Thanks for posting this and your blog post.

Btw the compilation doesn't work on my mac (I'm not sure why)

[...]
[100%] Linking C executable mygame
[100%] Built target mygame
23:07 /private/tmp/raylib-hot-code-reload-c-example-develop/build ./mygame
DLL_NAME: libgamecode.so
objc[14120]: Class GLFWHelper is implemented in both /private/tmp/raylib-hot-code-reload-c-example-develop/build/mygame (0x1009f1818) and /private/tmp/raylib-hot-code-reload-c-example-develop/build/libgamecode.so (0x100d79818). One of the two will be used. Which one is undefined.
objc[14120]: Class GLFWApplicationDelegate is implemented in both /private/tmp/raylib-hot-code-reload-c-example-develop/build/mygame (0x1009f1868) and /private/tmp/raylib-hot-code-reload-c-example-develop/build/libgamecode.so (0x100d79868). One of the two will be used. Which one is undefined.
objc[14120]: Class GLFWWindowDelegate is implemented in both /private/tmp/raylib-hot-code-reload-c-example-develop/build/mygame (0x1009f1890) and /private/tmp/raylib-hot-code-reload-c-example-develop/build/libgamecode.so (0x100d79890). One of the two will be used. Which one is undefined.
objc[14120]: Class GLFWContentView is implemented in both /private/tmp/raylib-hot-code-reload-c-example-develop/build/mygame (0x1009f18e0) and /private/tmp/raylib-hot-code-reload-c-example-develop/build/libgamecode.so (0x100d798e0). One of the two will be used. Which one is undefined.
objc[14120]: Class GLFWWindow is implemented in both /private/tmp/raylib-hot-code-reload-c-example-develop/build/mygame (0x1009f1958) and /private/tmp/raylib-hot-code-reload-c-example-develop/build/libgamecode.so (0x100d79958). One of the two will be used. Which one is undefined.
NEW DLL Handle: 0x96c0ce10
/tmp/raylib-hot-code-reload-c-example-develop/src/reload.c(30): sym = 0x100c00e7c
RELOAD: found symbol init_gamestate -> 0x1009f3e18
/tmp/raylib-hot-code-reload-c-example-develop/src/reload.c(30): sym = 0x100c00f50
RELOAD: found symbol free_gamestate -> 0x1009f3e20
/tmp/raylib-hot-code-reload-c-example-develop/src/reload.c(30): sym = 0x100c00fbc
RELOAD: found symbol update_gamestate -> 0x1009f3e28
/tmp/raylib-hot-code-reload-c-example-develop/src/reload.c(30): sym = 0x100c01030
RELOAD: found symbol update_frame -> 0x1009f3e30
INFO: Initializing raylib 5.0
INFO: Platform backend: DESKTOP (GLFW)
INFO: Supported raylib modules:
INFO:     > rcore:..... loaded (mandatory)
INFO:     > rlgl:...... loaded (mandatory)
INFO:     > rshapes:... loaded (optional)
INFO:     > rtextures:. loaded (optional)
INFO:     > rtext:..... loaded (optional)
INFO:     > rmodels:... loaded (optional)
INFO:     > raudio:.... loaded (optional)
INFO: DISPLAY: Device initialized successfully
INFO:     > Display size: 2560 x 1440
INFO:     > Screen size:  800 x 450
INFO:     > Render size:  800 x 450
INFO:     > Viewport offsets: 0, 0
INFO: GLAD: OpenGL extensions loaded successfully
INFO: GL: Supported extensions count: 43
INFO: GL: OpenGL device information:
INFO:     > Vendor:   Apple
INFO:     > Renderer: Apple M2 Pro
INFO:     > Version:  4.1 Metal - 88
INFO:     > GLSL:     4.10
INFO: GL: VAO extension detected, VAO functions loaded successfully
INFO: GL: NPOT textures extension detected, full NPOT textures supported
INFO: GL: DXT compressed textures supported
INFO: PLATFORM: DESKTOP (GLFW): Initialized successfully
INFO: TEXTURE: [ID 1] Texture loaded successfully (1x1 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 1] Default texture loaded successfully
INFO: SHADER: [ID 1] Vertex shader compiled successfully
INFO: SHADER: [ID 2] Fragment shader compiled successfully
INFO: SHADER: [ID 3] Program shader loaded successfully
INFO: SHADER: [ID 3] Default shader loaded successfully
INFO: RLGL: Render batch vertex buffers loaded successfully in RAM (CPU)
INFO: RLGL: Render batch vertex buffers loaded successfully in VRAM (GPU)
INFO: RLGL: Default OpenGL state initialized successfully
INFO: TEXTURE: [ID 2] Texture loaded successfully (128x128 | GRAY_ALPHA | 1 mipmaps)
INFO: FONT: Default font loaded successfully (224 glyphs)
INFO: TIMER: Target time per frame: 16.667 milliseconds
zsh: segmentation fault  ./mygame

@Gi972
Copy link

Gi972 commented May 29, 2024

Hello,

same for me, @keyle are you on mac M ?

For me it doesn't work when I use the function update_frame

@the-homeless-god
Copy link
Contributor

Hi,

@Gi972 @keyle tested on intel i5 macbook, it works, but you need to call make at build dir before pressing r at the game client

@seletz
Copy link
Owner

seletz commented Jun 11, 2024

Hi,

@Gi972 @keyle tested on intel i5 macbook, it works, but you need to call make at build dir before pressing r at the game client

@the-homeless-god Thanks for the comment!

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.

None yet

4 participants