Skip to content

Raylib Simple Project doesn't build on Mac M1 #31

@JudgeGroovyman

Description

@JudgeGroovyman

Summary

I'm on an M1 Macbook Air with OS Sonoma 14.5 and I get the attached error log when I open a new raylib simple project and hit build. I didn't change the code at all.

Build Logs

I tried installing ray4laz twice in two different ways and got the same basic log both times.

Installed using fpcupdeluxe installer

Here is the build log with errors from the new raylib simple project when I installed ray4laz using the fpcupdeluxe installer::
raylib simple project errors from fpcupdeluxe install.txt

Installed manually using .lpk files

Here is the build log with errors from the new raylib simple project when I installed ray4laz manually using the .lpk files
raylib simple project errors from manual install.txt

Summary of the error

Undefined symbols for architecture arm64:
  "_BeginDrawing", referenced from:
      _PASCALMAIN in game.o
  "_ClearBackground", referenced from:
      _PASCALMAIN in game.o
  "_CloseWindow", referenced from:
      _PASCALMAIN in game.o
  "_DrawText", referenced from:
      _PASCALMAIN in game.o
  "_EndDrawing", referenced from:
      _PASCALMAIN in game.o
  "_GetScreenToWorldRay", referenced from:
      _RAYLIB_$$_GETMOUSERAY$TVECTOR2$TCAMERA3D$$TRAY in raylib.o
  "_InitWindow", referenced from:
      _PASCALMAIN in game.o
  "_SetTargetFPS", referenced from:
      _PASCALMAIN in game.o
  "_WindowShouldClose", referenced from:
      _PASCALMAIN in game.o
ld: symbol(s) not found for architecture arm64

Installation Output with ld warnings:

Here is the installation output from fpcupdeluxe:
Ray4LazInstallLogFromFPCUpDeluxe.txt

Why didn't I use the Online Package Manger?

Short answer: I tried but couldn't.

For background I initially tried using the "online package manager" as mentioned in the screenshots however there were enormous lazarus based build problems on M1 mac and after hours of attempts I got it all compiled using this build tool called fpcupdeluxe. However that build tool builds it without the online package manager unfortunately.

Finally

I wish I could figure this out on my own but I couldn't do it. But hmu if I can help test things or if you have anything I should try to get it working. I would like to help figure it out. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions