DIV ARENA FORUMS

Any plans to create an OSX build?

NoBrain2k - 13-3-2016 at 07:52 PM

Wow it's weird being back here after all these years. It's making me want to install Windows XP and start using MSN messenger and things all over again!

Anyway, to the point, what are the plans regarding OSX? Is there an ETA for providing builds?

MikeDX - 13-3-2016 at 07:59 PM

I have osx builds, in fact those were done before the windows ones.

I had trouble creating a proper osx bundle due to the sdl dependencies but if you're happy to install the lib frameworks you need yourself i could share a dmg with you to try :)

NoBrain2k - 13-3-2016 at 08:12 PM

Yes please, I'm totally happy to do that. Gotta be worth a shot. Maybe if I can get it working I could write a little guide or something. Is it just SDL that it needs, or could you provide a list? Or will it just moan at me if it can't find something, I'm happy with that too.

MikeDX - 13-3-2016 at 08:44 PM

Prettu sure you just install the sdl and sdl mixer frameworks and the rest just works.

I'll fire the mac up tonight and make a build based on the current source and post a link for you :)

NoBrain2k - 13-3-2016 at 08:46 PM

Thanks Mike. No rush, whenever you get a chance :)

MikeDX - 13-3-2016 at 08:55 PM

It is no problem, id love to get the osx build working properly :)

MikeDX - 13-3-2016 at 10:11 PM

Got the build just making an .app package.



Screen Shot 2016-03-13 at 22.17.29.png - 90kB

MikeDX - 13-3-2016 at 10:22 PM

There is a DMG / app on the downloads page now (beta 11)

http://div-arena.co.uk/downloads/div/div-beta11-OSX.dmg

Please give it a try!

NoBrain2k - 13-3-2016 at 11:14 PM

Well, it definitely runs! I need to try and put it through its paces now. I tried to run an old bit of code my friend and I wrote back in the day and got "insufficient memory" (16gb is probably about 32 times what I had back then!) same happens if I try to run your Columns remake.

It also feels a little bit choppy within the GUI (not a complaint, just an observation) and uses 150% of my CPU when just sat there doing nothing.

NoBrain2k - 13-3-2016 at 11:15 PM

That's for Execute, Compile and Debug btw. They all give the same message.

MikeDX - 13-3-2016 at 11:19 PM

Was that running it inside your applications folder or from the dmg? It will probably not run at all within the dmg so copy that div2015.app to your app folder or Desktop or something and then you may have more luck :)

MikeDX - 13-3-2016 at 11:22 PM

Hmmm... Having just tested it I get the same problem..

I'll look into it. I have had the examples running, so I may just have done something wrong building the app

NoBrain2k - 13-3-2016 at 11:27 PM

Quote: Originally posted by MikeDX  
Hmmm... Having just tested it I get the same problem..

I'll look into it. I have had the examples running, so I may just have done something wrong building the app


Awesome, Good luck!

MikeDX - 13-3-2016 at 11:30 PM

I can make a .tgz of the OSX build you can run from the bash prompt if you fancy giving that a go.

NoBrain2k - 14-3-2016 at 12:00 AM

Quote: Originally posted by MikeDX  
I can make a .tgz of the OSX build you can run from the bash prompt if you fancy giving that a go.


Yeah great, go for it.

MikeDX - 14-3-2016 at 12:10 AM

Think I may have found the problem - Will upload a new app / dmg soon :)

NoBrain2k - 14-3-2016 at 12:17 AM

Quote: Originally posted by MikeDX  
Think I may have found the problem - Will upload a new app / dmg soon :)


Great, looking forward to it. Don't forget to get some sleep ;)

MikeDX - 14-3-2016 at 12:21 AM

I slept last week ;)

MikeDX - 14-3-2016 at 12:34 AM

Updated the downloads page. Please try beta11b OSX :)

BreadCaster - 14-3-2016 at 12:59 AM

Crashed for me upon launching. Details as follows:

Code:
Process: launchd [2250] Path: /Users/USER/*/div2015.app/Contents/MacOS/d-OSX Identifier: com.mycompany.MyApp Version: ??? (???) Code Type: X86-64 (Native) Parent Process: launchd [122] Date/Time: 2016-03-14 00:57:13.381 +0000 OS Version: Mac OS X 10.7.5 (11G63) Report Version: 9 Interval Since Last Report: 5807723 sec Crashes Since Last Report: 182 Per-App Crashes Since Last Report: 6 Anonymous UUID: 57BEE13C-0D77-455B-8F54-29C879EA2041 Crashed Thread: Unknown Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028 Backtrace not available Unknown thread crashed with X86 Thread State (64-bit): rax: 0x0000000000000055 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000000000000 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x00007fff5fc01028 rfl: 0x0000000000010203 cr2: 0x00007fff5fc01028 Logical CPU: 0 Binary images description not available External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 1 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 5543 thread_create: 0 thread_set_state: 0

MikeDX - 14-3-2016 at 01:05 AM

Quote: Originally posted by BreadCaster  
Crashed for me upon launching. Details as follows:

Code:
Process: launchd [2250] Path: /Users/USER/*/div2015.app/Contents/MacOS/d-OSX Identifier: com.mycompany.MyApp Version: ??? (???) Code Type: X86-64 (Native) Parent Process: launchd [122] Date/Time: 2016-03-14 00:57:13.381 +0000 OS Version: Mac OS X 10.7.5 (11G63) Report Version: 9 Interval Since Last Report: 5807723 sec Crashes Since Last Report: 182 Per-App Crashes Since Last Report: 6 Anonymous UUID: 57BEE13C-0D77-455B-8F54-29C879EA2041 Crashed Thread: Unknown Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028 Backtrace not available Unknown thread crashed with X86 Thread State (64-bit): rax: 0x0000000000000055 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000000000000 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x00007fff5fc01028 rfl: 0x0000000000010203 cr2: 0x00007fff5fc01028 Logical CPU: 0 Binary images description not available External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 1 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 5543 thread_create: 0 thread_set_state: 0


Have you got the OSX SDL Frameworks installed?

SDL, SDL_Mixer, SDL_Image, maybe?

BreadCaster - 14-3-2016 at 01:19 AM

How would I get all that? I have barely any idea how to work this macbook thing :p Googling brings up various kinds of SDL packages but they all seem to have rather lengthy and complicated installs or may not be the ones that DivDX requires?

MikeDX - 14-3-2016 at 01:23 AM

It's pretty easy to do

https://www.libsdl.org/download-1.2.php (SDL1.2)


https://www.libsdl.org/projects/SDL_mixer/release-1.2.html (SDL Mixer)

download the dmg files, and copy the framework to /Libraries/Frameworks

Hopefully that'll get you running :)

BreadCaster - 14-3-2016 at 01:47 AM

Quote: Originally posted by MikeDX  
It's pretty easy to do

https://www.libsdl.org/download-1.2.php (SDL1.2)


https://www.libsdl.org/projects/SDL_mixer/release-1.2.html (SDL Mixer)

download the dmg files, and copy the framework to /Libraries/Frameworks

Hopefully that'll get you running :)


Nope - downloaded both for OSX and stuck them in system/libraries/frameworks, still not working D:

Code:
Process: launchd [2373] Path: /Users/USER/*/div2015.app/Contents/MacOS/d-OSX Identifier: com.mycompany.MyApp Version: ??? (???) Code Type: X86-64 (Native) Parent Process: launchd [122] Date/Time: 2016-03-14 01:45:34.492 +0000 OS Version: Mac OS X 10.7.5 (11G63) Report Version: 9 Interval Since Last Report: 5810620 sec Crashes Since Last Report: 188 Per-App Crashes Since Last Report: 12 Anonymous UUID: 57BEE13C-0D77-455B-8F54-29C879EA2041 Crashed Thread: Unknown Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028 Backtrace not available Unknown thread crashed with X86 Thread State (64-bit): rax: 0x0000000000000055 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000000000000 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x00007fff5fc01028 rfl: 0x0000000000010203 cr2: 0x00007fff5fc01028 Logical CPU: 0 Binary images description not available External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 1 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 6113 thread_create: 0 thread_set_state: 0 Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.4 GHz, 4 GB, SMC 1.68f99 Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353737334448302D4348392020 Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353737334448302D4348392020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.198.19.22) Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: APPLE HDD HTS545050A7E362, 500.11 GB Serial ATA Device: HL-DT-ST DVDRW GS31N USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 3 USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfa100000 / 2 USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0253, 0xfa120000 / 5 USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 4 USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 7 USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfd100000 / 2 USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3

MikeDX - 14-3-2016 at 02:13 AM

Very odd

Maybe your osx is too old

I'll investigate....

MikeDX - 15-3-2016 at 08:06 PM

Quote: Originally posted by NoBrain2k  

It also feels a little bit choppy within the GUI (not a complaint, just an observation) and uses 150% of my CPU when just sat there doing nothing.


Because of how div works (at the moment), "doing nothing" is still updating and redrawing the whole screen every frame...

but all this will be fixed, in good time :)

NoBrain2k - 15-3-2016 at 08:09 PM

I have just tried the 11b build and where I used to get the IDE I now get nothing whatsoever. I tried running it on the command line and got the following message:

LSOpenURLsWithRole() failed with error -10810 for the file /Applications/div2015.app.

If that's any use to you at all?

MikeDX - 15-3-2016 at 08:33 PM

No Sadly not. Hmm.. I've clearly broken something.

I've got to make beta12 on the mac so I'll see what i can dig up and hopefully we can have the osx build as stable as the others (as in, crashing as often :) )

NoBrain2k - 15-3-2016 at 08:36 PM

Good luck Mike, happy to help in any way I can

MikeDX - 15-3-2016 at 08:43 PM

Thanks, I'll buzz you if i get anywhere!