BASIC

Author Topic: Compiling for OSX help needed  (Read 2233 times)

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Compiling for OSX help needed
« on: 2011-Dec-28 »
OK so I've compiled for OSX_uni and it happily creates the ".app" within the "distribute" "MacOSX" structure. The build is created in my private dropbox folder which is synced with my mini Mac. However... When I now go to the Mac and double click my game.app the icon expands as if it's about to run then does nothing. Is there more I should do?

Makes me seem such a noob ^
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline Sokurah

  • Mr. Polyvector
  • ***
  • Posts: 177
    • View Profile
Re: Compiling for OSX help needed
« Reply #1 on: 2011-Dec-28 »
You're not the only person who's had problems with Dropbox.

Earlier this year, when I did ports of some of my games (WIN>OSX), I first copied the .app files to my own Dropbox to try on another Mac, but it didn't work. Tried several times with different files.

Then I transferred the same files to my website using FTP and downloaded them again on the other Mac and it worked right away.

It's like something happens to the files when copying them to Dropbox?  :blink:
...your problem could be something entirely different, though.
Website: Tardis remakes / Mostly remakes of Arcade and ZX Spectrum games. All freeware. :-)
Twitter: Sokurah

Offline quangdx

  • Mr. Polyvector
  • ***
  • Posts: 233
  • work hard / play hard
    • View Profile
    • Asobi tech
Re: Compiling for OSX help needed
« Reply #2 on: 2011-Dec-28 »
My games don't seem to run on any Mac OS but Snow Leopard and Lion,
the other thing is, maybe it's losing the permissions in the transfer.

Right click on the game.app and open the package file,
Contents/MacOS/
In terminal run the command
chmod +x and drag in the MacOSX file on to the terminal window.
Asobi tech - the science of play.
Spare time indiegame developer.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4174
    • View Profile
    • Portfolio
Re: Compiling for OSX help needed
« Reply #3 on: 2011-Dec-29 »
last I had trouble with that was with osx lower then 10.6

I´m installing latest glbasic on laptop and should have somethings going these days, hope it is ok.
I have win 7 64 bit, ubuntu and osx installed on this laptop, hope I can help figuring out that.

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: Compiling for OSX help needed
« Reply #4 on: 2011-Dec-29 »
I wouldn't have thought it would be that difficult to get something running on OSX after all GLB is intended for multi-platform development. The idea being cross-platform is simplified. So hopefully someone can give a definitive working method if others are having problems too?
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4174
    • View Profile
    • Portfolio
Re: Compiling for OSX help needed
« Reply #5 on: 2011-Dec-29 »
never had trouble with it, it always worked perfectly out of the box.
this one last time I said, I tested on a friends house running 10.5.something, it didn´t work.
but it worked here and so on all my other friends with mac.

before you transfer something to mac environment, try zipping it.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10683
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Compiling for OSX help needed
« Reply #6 on: 2011-Dec-29 »
Windows does notnhave the +x attribute thatbindicates a program is executable. GLBasic does some trick to fake this, so when you zip it, it works on the mac. however most file sharing tools as SMB and Dropbox don't understand this. Either zip it or directly compile on the Mac drive.

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: Compiling for OSX help needed
« Reply #7 on: 2011-Dec-29 »
Windows does notnhave the +x attribute thatbindicates a program is executable. GLBasic does some trick to fake this, so when you zip it, it works on the mac. however most file sharing tools as SMB and Dropbox don't understand this. Either zip it or directly compile on the Mac drive.

Basically a CHMOD cool ;)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline Dabz

  • Mr. Polyvector
  • ***
  • Posts: 104
    • View Profile
    • BambooCoder
Re: Compiling for OSX help needed
« Reply #8 on: 2011-Dec-29 »
Yep, I've just done this using dropbox, I zipped it up (using 7zip), dropped it in my dropbox folder, went into mac, it came through, unzipped it, and voila, ran fine!

Dabz

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: Compiling for OSX help needed
« Reply #9 on: 2011-Dec-29 »
Proven that Windows sucks  :rtfm:

MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10683
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Compiling for OSX help needed
« Reply #10 on: 2012-Jan-02 »
I think it's more a problem of the file sharing protocol that drops the "+x" file attribute. Which I "think" is the "archive" attribute in windows. But I'm not sure.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4174
    • View Profile
    • Portfolio
Re: Compiling for OSX help needed
« Reply #11 on: 2012-Jan-02 »
I do suspect there may be something going with osx lower then 10.6

Like I posted on another thread, my game didn´t work on a friend´s 10.5.8 system.
This one friend has a really messed up system, so it can also be that.

no problems on systems 10.6 and above.

Unfortunantly that is the only lower the 6 mac I know, all the other macs I have access are above and none showed problems.

Offline Gary

  • Dr. Type
  • ****
  • Posts: 313
    • View Profile
Re: Compiling for OSX help needed
« Reply #12 on: 2012-Jan-06 »
I had exactly the same problem using dropbox, if I sent the raw files I got an icon on the dock I could not get rid of. Good thing was I was using parallels to run windows so I could right click on the folder, open in finder and run it straight from there and not send via dropbox.

So just to back up what others have said, zip everything up to send it to another OS, much safer than a raw send (and quicker too)