coop-deluxe / sm64coopdx

An official continuation of https://github.com/djoslin0/sm64ex-coop on sm64coopdx for the enhancements and progress it already has.
https://sm64coopdx.com
286 stars 41 forks source link

Can't open/compile macOS sm64coopdx #165

Closed smallrobuxman closed 1 month ago

smallrobuxman commented 1 month ago

im on sonoma 14.5 and see this whenever i try opening sm64coopdx image

AgentXLP commented 1 month ago

@EmeraldLoc uh oh

EmeraldLoc commented 1 month ago

This is probably cause I'm on a beta version of macOS, so it was compiled for that version... I'll see what I can do, may have to create a vm to compile it properly.

AgentXLP commented 1 month ago

That's a lot of effort, I commend you

EmeraldLoc commented 1 month ago

sm64coopdx.dmg.zip

This does not contain any mods since i had to get the filesize below 25 megabytes, can you see if this works for you?

smallrobuxman commented 1 month ago

well this time theres no compatibility issue, but i get this error: image

EmeraldLoc commented 1 month ago

Alr, good to know. I'll have to do the VM strat then.

EmeraldLoc commented 1 month ago

sm64coopdx_test.dmg.zip

Maybe I don't. Reran with slightly different make configuration, didn't get any linking warnings during compilation, so this may just work. Ideally I wouldn't run it thru a vm, so older versions of macOS could always be supported.

smallrobuxman commented 1 month ago

I got the same error

EmeraldLoc commented 1 month ago

It'll probably be a while before I get the VM set up, so in the meantime, you can compile the dev branch of DX to build, however you will have to manually move the mods, palettes, dynos, and lang folders into the Resources folder, I still have to get that worked out.

smallrobuxman commented 1 month ago

Alright, ill try doing that one tomorrow

EmeraldLoc commented 1 month ago

Seems like the error is an oversight. To fix it temporarily, you can get hombrew and run brew install glew sdl2, in the meantime I'll be editing the makefile, or whatever else I need to edit, to pack these files in.

supahfox commented 1 month ago

Does sm64coopdx store copyrighted assets in .app or in another folder? I would share my build in the meantime Okay nvm I can only upload 25mb

AgentXLP commented 1 month ago

It doesn't have copyrighted assets

EmeraldLoc commented 1 month ago

Alr, I believe I got it worked out. The problem was glew and sdl2 weren't packed with the executable. Once I did this, I just had to change where the exec was looking for the libs, and now each lib is packed. Once again, this doesn't contain any mods to get it below the 25 mb limit. Lmk if this works :D

sm64coopdx.dmg.zip

AbnormalPoof commented 1 month ago

Can confirm it functions! Screenshot 2024-07-04 at 12 06 38 PM

EmeraldLoc commented 1 month ago

Awesome! Did you run it with glew and sdl2 uninstalled from brew? It should still launch without those deps installed.

AbnormalPoof commented 1 month ago

Initially, no, but I just removed glew and sdl2 from brew and it still seems to run! Screenshot 2024-07-04 at 12 24 27 PM Screenshot 2024-07-04 at 12 24 38 PM

EmeraldLoc commented 1 month ago

Awesome! Will send these changes to Agent X so he can get them on the dev branch, ty for testing!

Maghni09 commented 1 month ago

for my case it says the file is damaged move to trash, can anyone help with that?

EmeraldLoc commented 1 month ago

Yea, we're still getting the build updated. In the meantime, you can compile the repo manually, or use the dmg file I gave above, although note that doesn't come with any mods.

Maghni09 commented 1 month ago

i know it seems a stupid a question but i dont know how to compile on mac i only did it once with a tutorial, can you please send a good tutuorial to compile it, that would be very helpful. thank you also to note i have a mac m1 max is it fine or should it be intel?

EmeraldLoc commented 1 month ago

Nah it's fine. Yea the m1 max will be great for this!

So, firstly, download the build with macos fixed here. Next thing is go into your downloads folder, and unzip sm64coopdx-main. Next, open up the terminal, and, assuming you haven't renamed any file, run cd ~/Downloads/sm64coopdx-main. Now, if you don't have homebrew installed, install it here. Next, run:

brew install make mingw-w64 gcc sdl2 pkg-config glew glfw3 libusb audiofile coreutils

With these packages installed, you should be good to go! So, get your SM64 Rom, rename it to baserom.us.z64, and drag it into the sm64coopdx-main folder in your Downloads folder. With that done, head back into your terminal, and run gmake OSX_BUILD=1 -j. Once that finished, open up finder, head to sm64coopdx-main, open up the build folder, then us_pc folder, and the .app should be there!