Skip to content

SDL problems #13

@earlthesquirrel

Description

@earlthesquirrel

Hello,

I'm on a M4 Mac mini trying to build umac (to run on a pico-mac setup)

Initially it reports that :

apple95@Mac-mini umac % make MEMSIZE=208 make: sdl2-config: Command not found cc -Iinclude/ -Iexternal/Musashi/ -DMUSASHI_CNF=\"../include/m68kconf.h\" -DENABLE_DASM=1 -DUMAC_MEMSIZE=208 -Wall -Wextra -pedantic -DSIM -DDISP_WIDTH=512 -DDISP_HEIGHT=342 -c src/unix_main.c -o src/unix_main.o src/unix_main.c:38:10: fatal error: 'SDL.h' file not found 38 | #include "SDL.h" | ^~~~~~~ 1 error generated.

So I did a brew install sdl2 which seems to install sdl2 ok.

However, when I try to build after this, I get errors like this:
apple95@Mac-mini umac % make MEMSIZE=208 DISP_WIDTH=640 DISP_HEIGHT=480 cc -Iinclude/ -Iexternal/Musashi/ -I/usr/local/include/SDL2 -D_THREAD_SAFE -DMUSASHI_CNF=\"../include/m68kconf.h\" -DENABLE_DASM=1 -DUMAC_MEMSIZE=208 -Wall -Wextra -pedantic -DSIM -DDISP_WIDTH=640 -DDISP_HEIGHT=480 -c src/unix_main.c -o src/unix_main.o In file included from src/unix_main.c:38: In file included from /usr/local/include/SDL2/SDL.h:37: In file included from /usr/local/include/SDL2/SDL_cpuinfo.h:119: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture" 14 | #error "This header is only meant to be used on x86 and x64 architecture" .....

So, I'm a bit of an impasse (or catch-22, your choice :-) )

Any pointers on how to get past this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions