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

How to build on macOS? #34

Open
Tekl opened this issue Jul 16, 2022 · 7 comments
Open

How to build on macOS? #34

Tekl opened this issue Jul 16, 2022 · 7 comments

Comments

@Tekl
Copy link

Tekl commented Jul 16, 2022

There seems to be no alsa package for macOS, so the build fails.

@jpage8580
Copy link
Owner

I don't run on Mac, but I know that others have got this to work.
Worth checking on this forum thread: https://csdb.dk/forums/?roomid=12&topicid=155457

@cukabeka
Copy link

I'd be interested too to know if someone gets this running in MacOS somehow

@jpage8580
Copy link
Owner

jpage8580 commented Aug 13, 2022 via email

@cukabeka
Copy link

Great, thanks for digging this up and posting it. I'll give it a try. Is there any chance that there will be official Mac Releases for downloading / installing?

@jpage8580
Copy link
Owner

jpage8580 commented Aug 25, 2022 via email

@cukabeka
Copy link

cukabeka commented Aug 26, 2022

OK, I gave it a try using the directions in the provided thread on CSDB.

I edited the makefile.common file as described and created a makefile.macos file

#
# MAC makefile
#

CFLAGS+=`sdl2-config --cflags`
PREFIX=../mac/
SUFFIX=
LIBS+=`sdl2-config --libs` -lpthread

include makefile.common

I ran make --makefile=makefile.macos

and then I got these errors as output:

gt2stereo.c:3646:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
15 warnings generated.
cc `sdl2-config --cflags` -Ibme -Iasm -O3   -c -o gsong.o gsong.c
cc `sdl2-config --cflags` -Ibme -Iasm -O3   -c -o gorder.o gorder.c
gorder.c:885:41: warning: equality comparison result unused [-Wunused-comparison]
                editorInfo.highlightLoopPatternNumber == gtPlayer->editorInfo[c3].epnum;        // highlight looping area       
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gorder.c:885:41: note: use '=' to turn this equality comparison into an assignment
                editorInfo.highlightLoopPatternNumber == gtPlayer->editorInfo[c3].epnum;        // highlight looping area       
                                                      ^~
                                                      =
gorder.c:1092:6: error: implicit declaration of function 'JPSoundMixer' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                        JPSoundMixer(NULL, 1024);
                                        ^
gorder.c:1110:6: error: implicit declaration of function 'JPSoundMixer' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                        JPSoundMixer(NULL, 1024);
                                        ^
1 warning and 2 errors generated.

I'm on AppleSilicon M1, MacOS 12.4.

Maybe here's someone on a Mac getting this a bit further.

@jpage8580
Copy link
Owner

jpage8580 commented Aug 26, 2022 via email

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

No branches or pull requests

3 participants