byuu's message board

For discussion of projects related to www.byuu.org/


Previous  1, 2
Guide for compiling under OS X? 
Author Message
User avatar

Joined: Fri 10 Apr 2009, 20:54:19

Posts: 2679
Post Re: Guide for compiling under OS X?
Unfortunately, vanilla v094 requires quite a bit of changes, which are already included in that one patch I posted to a gist. Most/all of it is already integrated, and r08 even needs some patches.

Perhaps you should wait for v095 to arrive before I start publishing patches again. My newest patch against v094r08, you just need to drop in the ananke directory from v094, run make inside it, cd .., make, optionally codesign -s 'developer id application' out/higan.app, then use it. Signing is not mandatory for using your own builds, since Gatekeeper only kicks in when an application has been quarantined, like when you download it, or unpack it from an archive which is itself quarantined due to being downloaded.

_________________
blag

Tue 05 Aug 2014, 07:25:31

Joined: Sat 14 Jun 2014, 07:00:03

Posts: 4
Post Re: Guide for compiling under OS X?
Here's the minimal diff i had to apply to v094 to get it to compile and run on OS X 10.9

Code:
diff -ru higan_v094-source/nall/platform.hpp higan_v094-source.new/nall/platform.hpp
--- higan_v094-source/nall/platform.hpp   2014-01-20 01:37:12.000000000 -0500
+++ higan_v094-source.new/nall/platform.hpp   2014-08-09 15:35:18.000000000 -0400
@@ -41,7 +41,7 @@
   #undef interface
   #define dllexport __declspec(dllexport)
#else
-  #include <endian.h>
+  #include <machine/endian.h>
   #include <unistd.h>
   #include <pwd.h>
   #define dllexport
diff -ru higan_v094-source/ruby/input/carbon.cpp higan_v094-source.new/ruby/input/carbon.cpp
--- higan_v094-source/ruby/input/carbon.cpp   2014-01-20 01:37:14.000000000 -0500
+++ higan_v094-source.new/ruby/input/carbon.cpp   2014-08-12 13:22:08.000000000 -0400
@@ -35,18 +35,21 @@
     group.input[inputID].value = value;
   }

-  void poll(vector<HID::Device*>& devices) {
+  vector<HID::Device*> poll() {
+    vector<HID::Device*> devices;
     KeyMap keymap;
     GetKeys(keymap);
     uint8_t* buffer = (uint8_t*)keymap;

     unsigned inputID = 0;
     for(auto& key : keys) {
-      bool value = buffer[key.id >> 3] & (1 << (key.id & 7)));
+      bool value = buffer[key.id >> 3] & (1 << (key.id & 7));
       assign(kb.hid, HID::Keyboard::GroupID::Button, inputID++, value);
     }

     devices.append(&kb.hid);
+
+    return devices;
   }

   bool rumble(uint64_t id, bool enable) {
diff -ru higan_v094-source/ruby/video/cgl.cpp higan_v094-source.new/ruby/video/cgl.cpp
--- higan_v094-source/ruby/video/cgl.cpp   2014-01-20 01:37:14.000000000 -0500
+++ higan_v094-source.new/ruby/video/cgl.cpp   2014-08-09 15:47:37.000000000 -0400
@@ -110,7 +110,7 @@
   }

   bool init() {
-    term();
+    // term(); // this is a hack for now

     @autoreleasepool {
       NSOpenGLPixelFormatAttribute attributes[] = {


HTH

Tue 12 Aug 2014, 18:24:57
Previous  1, 2

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum