esaruoho / ztracker_mac

zTracker, the MIDI-only clone of Impulse Tracker, which itself was a clone of Scream Tracker 3. It's a tracker. It does MIDI. I'm looking to somehow crowdsource it's compiling for the macOS/OS X. Anyone interested?
18 stars 2 forks source link

Make the project compile #4

Closed superjohan closed 7 years ago

superjohan commented 7 years ago

The project compiles now, but the generated app itself does not work. There are also tons of warnings.

This basically depends on SDL being installed via Homebrew to the default location now. Probably not a good idea in the long run.

superjohan commented 7 years ago

The problem with getting it to run is that the version of libpng used to compile is not the same that's being used at runtime.

libpng warning: Application built with libpng-1.6.26 but running with 1.5.7
Error: Skin[default]: Cannot load toolbar.png
esaruoho commented 7 years ago

@superjohan any idea how to yank out the "wrong" libpng and just compile & use the "right" libpng? How can a version discrepancy like this occur? Is there a way to evade it?

esaruoho commented 7 years ago

@superjohan regarding brew SDL, I'm fine with that, I can just

brew install sdl

and it'll work :)

homebrew owns! ideal situation is to get this to compile and work fully and then push it into a brew cask.

superjohan commented 7 years ago

I'm honestly no expert, but I think it's using a dynamically linked libpng now, which is whatever the OS is providing (I think), whereas the app was compiled with the one from homebrew. I haven't done enough research to figure out how to get it to use a static version.

superjohan commented 7 years ago

By the way, if you're having trouble compiling, my config while preparing this was macOS 10.13 beta 3 with the latest Xcode 9 beta.

esaruoho commented 7 years ago

@superjohan maybe one could try and remove the libpng framework and make a symbolic link to the libpng on homebrew then? I'm really not sure how to create symbolic links to homebrew in an xcodeproject, but it seems like it wouldn't be impossible since you did the sdl symbolic link to homebrew, and now there's a need for libpng from homebrew too

regards 10.013 beta 3 xcode 9 beta - ouch, there's probably no way to get back to OSX 10.11 on the current xcodeproj then? I'll have to see what happens when I do a git pull...

superjohan commented 7 years ago

I didn't upgrade the project for Xcode 9, so it should be fine on older versions.

esaruoho commented 7 years ago

awesome, thanks!