cebix / macemu

Basilisk II and SheepShaver Macintosh emulators
1.38k stars 288 forks source link

MacOS build failure #185

Closed skull-squadron closed 5 years ago

skull-squadron commented 5 years ago
                  ^
./../MacOSX/video_macosx.mm:942:26: error: use of undeclared identifier 'CGDisplayBytesPerRow'
                        mode.bytes_per_row != CGDisplayBytesPerRow(theDisplay) )
                                              ^
./../MacOSX/video_macosx.mm:946:25: error: use of undeclared identifier 'CGDisplayBytesPerRow'
                        mode.bytes_per_row = CGDisplayBytesPerRow(theDisplay);
                                             ^
./../MacOSX/video_macosx.mm:950:22: error: use of undeclared identifier 'CGDisplayBaseAddress'
                         ! ( the_buffer = CGDisplayBaseAddress(theDisplay) ) )
                                          ^

Bunch of deprecated API usage, needs updating by someone knowlegeable.

skull-squadron commented 5 years ago

Got it to compile (but not necessarily working) using

class Basiliskii < Formula
  desc "An Open Source 68k Macintosh Emulator"
  homepage "https://basilisk.cebix.net/"
  head "https://github.com/cebix/macemu.git"

  depends_on "autoconf" => :build
  depends_on "automake" => :build
  depends_on "pkg-config" => :build
  depends_on "sdl"
  depends_on "gtk"

  def install
    ENV.deparallelize
    cd "BasiliskII/src/Unix"
    system "./autogen.sh", #"--with-vdeplug",
                           "--disable-vosf",
                           "--without-esd",
                           "--enable-standalone-gui",
                           "--with-gtk=gtk2",
                           "--without-mon",
                           "--enable-sdl-video",
                           "--enable-sdl-audio",
                           "--disable-jit-compiler",
                           "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    system "true"
  end
end
skull-squadron commented 5 years ago

JIT disabled because it doesn't appear to work.