GLBasic forum

Main forum => GLBasic - en => Topic started by: spicypixel on 2011-Dec-28

Title: Compiling for OSX help needed
Post by: spicypixel 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 ^
Title: Re: Compiling for OSX help needed
Post by: Sokurah 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.
Title: Re: Compiling for OSX help needed
Post by: quangdx 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.
Title: Re: Compiling for OSX help needed
Post by: erico 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.
Title: Re: Compiling for OSX help needed
Post by: spicypixel 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?
Title: Re: Compiling for OSX help needed
Post by: erico 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.
Title: Re: Compiling for OSX help needed
Post by: Kitty Hello 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.
Title: Re: Compiling for OSX help needed
Post by: spicypixel on 2011-Dec-29
Quote from: Kitty Hello 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 ;)
Title: Re: Compiling for OSX help needed
Post by: Dabz 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
Title: Re: Compiling for OSX help needed
Post by: trucidare on 2011-Dec-29
Proven that Windows sucks  :rtfm:

Title: Re: Compiling for OSX help needed
Post by: Kitty Hello 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.
Title: Re: Compiling for OSX help needed
Post by: erico 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.
Title: Re: Compiling for OSX help needed
Post by: Gary 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)