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] Cannot run Makefile for raylib 5.5 on macOS #4562

Open
Carter0 opened this issue Dec 2, 2024 · 1 comment
Open

[build] Cannot run Makefile for raylib 5.5 on macOS #4562

Carter0 opened this issue Dec 2, 2024 · 1 comment
Labels
help needed - please! I need help with this issue platform: macOS macOS platform

Comments

@Carter0
Copy link

Carter0 commented Dec 2, 2024

Issue description

I downloaded the source code for ray lib 5.5, go into the src directory in raylib, and run make. When I do I get a whole bunch of compiler errors. Since the output was so long I threw it in this text file. I also took a screenshot of some of the output below too.

output.txt

Environment

macOS Sonoma 14.2.1

Issue Screenshot

Screenshot 2024-12-01 at 8 36 30 PM

@Carter0 Carter0 changed the title Cannot Run Makefile for Raylb 5.5 on MaxOS Cannot Run Makefile for Raylb 5.5 on MacOS Dec 2, 2024
@lukeeingram
Copy link

lukeeingram commented Dec 3, 2024

@Carter0 I also had the same issue; I couldn't build raylib or run the Makefile on Mac OS 14.2.1 or on Sequoia 15.1.1.

I got around the issue by using CMake in CLion; here's my CMakeLists.txt:

cmake_minimum_required(VERSION 3.29)
project(20gc_raylib_flappybird C)

set(CMAKE_C_STANDARD 99)

include(FetchContent)
set(FETCHCONTENT_QUIET FALSE)
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(BUILD_GAMES    OFF CACHE BOOL "" FORCE)

FetchContent_Declare(
        raylib
        GIT_REPOSITORY "https://github.com/raysan5/raylib.git"
        GIT_TAG 5.5
        GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(raylib)

add_executable(20gc_raylib_flappybird main.c)

target_sources(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCES})
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_INCLUDE})
target_link_libraries(${PROJECT_NAME} PRIVATE raylib)

It doesn't resolve the issue of not being able to run the Makefile but it does enable me to build and use raylib on my Mac; I hope this helps.

@raysan5 raysan5 changed the title Cannot Run Makefile for Raylb 5.5 on MacOS [build] Cannot run Makefile for raylib 5.5 on macOS Dec 3, 2024
@raysan5 raysan5 added platform: macOS macOS platform help needed - please! I need help with this issue labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help needed - please! I need help with this issue platform: macOS macOS platform
Projects
None yet
Development

No branches or pull requests

3 participants