Spherical forums

Sphere Development => Sphere Support => Topic started by: JeeboLion on March 27, 2014, 09:21:15 pm

Title: How to install/run engine on Mac (OSX)
Post by: JeeboLion on March 27, 2014, 09:21:15 pm
I've had trouble locating an actual step-by-step guide in which to get the "SphereEngine" running. I have my "frameworks" folder in the Library folder (which I believe I read I should do), but the engine still does not run. Honestly, I have no idea what I'm doing. Hahaha   :)  :o  :'(

I haven't used Sphere since I had my good ol' Windows 98 maybe 10 years ago. Goodness.

Thanks!
Title: Re: How to install/run engine on Mac (OSX)
Post by: Flying Jester on March 28, 2014, 05:23:10 am
Have you tried the sourceforge site (http://sourceforge.net/projects/sphere/)?
Title: Re: How to install/run engine on Mac (OSX)
Post by: Rahkiin on March 28, 2014, 04:05:42 pm
What I did was move all the frameworks into the Engine.app/Contents/Frameworks, but that failed. It started looking for a framework that wasn't in the package.

If you get it to work, please tell me :D

// Rahkiin
Title: Re: How to install/run engine on Mac (OSX)
Post by: JeeboLion on March 28, 2014, 05:08:54 pm

Have you tried the sourceforge site (http://sourceforge.net/projects/sphere/)?


Yep, that's where I downloaded it from. Whenever I try to open "SphereEngine" I get the error "SphereEngine cannot be opened because of a problem." I wasn't sure if that was because of the location of the "framework" folder or if it is some other issue. "Config" opens just fine.
Title: Re: How to install/run engine on Mac (OSX)
Post by: Flying Jester on March 28, 2014, 06:28:23 pm
You have now reached the end of my expertise  :-\

Last time I tried it, on OS X 10.5, everything just worked. I didn't even need the frameworks archive.
Title: Re: How to install/run engine on Mac (OSX)
Post by: JeeboLion on March 28, 2014, 06:48:06 pm
Haha, it's all good. Thanks anyway!
Title: Re: How to install/run engine on Mac (OSX)
Post by: Rahkiin on March 29, 2014, 09:16:16 am
BTW, you need to put the .frameworks located in the framework folder, in the ~/Users/<name>/Library/Frameworks/ folder. So without the framework folder itself. (I think the User Library works too, else try /Library/Frameworks). I am not sure from your story whether you copied the folder too or not :)
Title: Re: How to install/run engine on Mac (OSX)
Post by: JeeboLion on March 29, 2014, 12:49:18 pm

BTW, you need to put the .frameworks located in the framework folder, in the ~/Users/<name>/Library/Frameworks/ folder. So without the framework folder itself. (I think the User Library works too, else try /Library/Frameworks). I am not sure from your story whether you copied the folder too or not :)


Cool, good to know. Definitely didn't do it that way. SphereEngine still fails to open so I assume my issue is something else entirely. Thanks!
Title: Re: How to install/run engine on Mac (OSX)
Post by: Rahkiin on March 29, 2014, 01:38:18 pm
What error does it give, exactly?
Title: Re: How to install/run engine on Mac (OSX)
Post by: N E O on March 29, 2014, 04:33:23 pm
I'm now keeping track of this topic. Next time I'm on my MacBook I'll give it a go and see if I can resolve this issue. I'm almost certain it's a misplaced directories (the frameworks) issue since this sounds really familiar to me, but without being in front of the thing I can't confirm it.
Title: Re: How to install/run engine on Mac (OSX)
Post by: JeeboLion on March 30, 2014, 03:27:28 am

What error does it give, exactly?


The exact error is:

"SphereEngine cannot be opened because of a problem. Check with the developer to make sure SphereEngine works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS X."

It's pretty vague so I'm not exactly sure how to proceed. The Sphere folder is on the Desktop at the moment, with the frameworks files in the Frameworks folder in the user library.


I'm now keeping track of this topic. Next time I'm on my MacBook I'll give it a go and see if I can resolve this issue. I'm almost certain it's a misplaced directories (the frameworks) issue since this sounds really familiar to me, but without being in front of the thing I can't confirm it.


Thanks! I appreciate it.
Title: Re: How to install/run engine on Mac (OSX)
Post by: Flying Jester on March 30, 2014, 03:47:54 am
What version of OS X are you using? We know it's got serious issues with Mavericks.

Quote
Check with the developer to make sure SphereEngine works with this version of Mac OS X

...
Title: Re: How to install/run engine on Mac (OSX)
Post by: JeeboLion on March 30, 2014, 08:33:46 pm

What version of OS X are you using? We know it's got serious issues with Mavericks.


Lion -> 10.7.5
Title: Re: How to install/run engine on Mac (OSX)
Post by: N E O on March 31, 2014, 12:08:26 pm
I can only personally guarantee Leopard and 32-bit Snow Leopard compatibility since my MacBook Pro is too old (early 2006 Intel Core Duo MacBook Pro 17") to install 10.7 or newer. I would pleasantly surprised if if works in any capacity in Lion, especially in 64-bit since the thing was a Universal Binary for PPC+x86 rather than x86+x64.
Title: Re: How to install/run engine on Mac (OSX)
Post by: Fat Cerberus on March 31, 2014, 02:32:37 pm

I can only personally guarantee Leopard and 32-bit Snow Leopard compatibility since my MacBook Pro is too old (early 2006 Intel Core Duo MacBook Pro 17") to install 10.7 or newer. I would pleasantly surprised if if works in any capacity in Lion, especially in 64-bit since the thing was a Universal Binary for PPC+x86 rather than x86+x64.


A bit off-topic, but x86+x64 strikes me as a colossal waste of space seeing as any x64 CPU can run x86 code just fine.  Unless the situation is different on OS X than on Windows/Linux?  I've never used any Mac OS past OS 9 way back in high school, so my knowledge in that area is admittedly slim...
Title: Re: How to install/run engine on Mac (OSX)
Post by: Flying Jester on March 31, 2014, 09:35:55 pm
OS X used to be primarily for PowerPC. Of no relation to x86 at all. So you really did need universal (aka 'fat') binaries for a while.

And remember that running x86 binaries on x86_64 requires all the necessary libraries exist in 32-bit form on the machine. This might not be the case here, particularly given how long ago Sphere was ported to OS X.
Title: Re: How to install/run engine on Mac (OSX)
Post by: Rahkiin on April 01, 2014, 10:46:37 am
The OSX platform is almost only updated for the 64 bit software. It means that any new programs will be compiled to 64 bit, and that the new libraries only exist in 64bit. The fragile Objective-C ABI is also 64 bit only, and a lot of optimizations is 64bit only. When writing for OSX, it is mostly 64bit only nowadays.
Title: Re: How to install/run engine on Mac (OSX)
Post by: Fat Cerberus on April 01, 2014, 12:11:01 pm
Ah, alright, that makes sense then.  And yes, I knew OS X used to be for PPC, I had nothing against PPC+x86 fat binaries, it's just the x86+x64 ones that seemed like a waste of space.  But if most of the low-level libraries for OS X are 64-bit-only, then it makes sense.  I guess I'm just biased because I've been spoiled from using Windows for so long, which has always included the full set of Win32 libraries along with the Win64 ones, and thus x86-only apps run natively.  And I'm not positive, but I think Linux might be the same as Windows in that regard.
Title: Re: How to install/run engine on Mac (OSX)
Post by: Rahkiin on April 01, 2014, 12:55:12 pm
X86 applications run natively, but they can't use some new stuff. Chrome used to run in 32 bit, IIRC. AFAIK, I don't see any 32 bit programs running on my system now. There is just no reason to run in 32 bit :P
On windows and linux, there are reasons to do so. Mostly way-back-legacy and poort universal packaging.
Title: Re: How to install/run engine on Mac (OSX)
Post by: Flying Jester on April 01, 2014, 10:21:12 pm
And I'm not positive, but I think Linux might be the same as Windows in that regard.

99% of the time, Linux programs are either fully open source or distributed natively for x64. It's extremely rare to need to do anything 32-bit on a 64-bit system.

Just checking, and I have exactly zero 32-bit binaries or libraries on my Gentoo laptop  :D
Title: Re: How to install/run engine on Mac (OSX)
Post by: Fat Cerberus on April 01, 2014, 10:59:42 pm

Just checking, and I have exactly zero 32-bit binaries or libraries on my Gentoo laptop  :D


Is that inclusive of libraries included with the OS?  As in, your laptop couldn't run an x86 binary if you wanted it to?
Title: Re: How to install/run engine on Mac (OSX)
Post by: Flying Jester on April 01, 2014, 11:19:04 pm
I could run a 32-bit binary, but I would need to first install literally every libraries it needs in 32-bit form. So no, not as things stand right now. There are NO 32-bit binaries or libraries, with the possible exception of my bootloader and some bootstrapping portion of my kernel.

And on Gentoo, every program that can be is distributed as source-only, and compiled on the end machine. I don't and never have had a 32-bit capable version of GCC installed.

It's very uncommon for Linux programs that are distributed as binaries to not include a 64-bit version, and even rarer for source-distributed programs to not be 64-bit ready.

I was under the impression that the situation for OS X was somewhere between Windows and Linux.
Title: Re: How to install/run engine on Mac (OSX)
Post by: DaVince on April 03, 2014, 04:43:45 am
What if you install Steam games? I was under the impression that there's a fair bit of 32-bit stuff on Steam. (But that might just be me spouting things; I haven't done any fact checking.)
Title: Re: How to install/run engine on Mac (OSX)
Post by: Flying Jester on April 03, 2014, 07:39:22 am

What if you install Steam games? I was under the impression that there's a fair bit of 32-bit stuff on Steam. (But that might just be me spouting things; I haven't done any fact checking.)


The situation has yet to come up for me :D

Previously, on my Fedora machine, Steam just downloaded opaque binaries and libraries for whatever it needed, which either had very odd library settings or were mostly statically linked. Likely to avoid problems like this.

I think the main thing Steam requires to have in 32-bits is SDL.
Title: Re: How to install/run engine on Mac (OSX)
Post by: Rhuan on October 18, 2014, 11:37:22 am
To the original question my final version wanted the frameworks in a folder called frameworks in the same directory as the app, not inside the package or installed anywhere else. There were earlier versions that wanted them in your user's library folder.

That said I'm not aware of it being tested on anything newer than Neo's snow leopard MacBook, so it may just break on newer machines.