Mountain Lion compile only for Mountain Lion?
-
jesperbrannmark
- Enthusiast

- Posts: 536
- Joined: Mon Feb 16, 2009 10:42 am
- Location: sweden
- Contact:
Mountain Lion compile only for Mountain Lion?
Hi.
I just compiled my program and distributed it. (using Mountain lion since a few days).
Now it seem noone with lion (or older) can use it.
Is there some setting to allow backward compatibility?
I just compiled my program and distributed it. (using Mountain lion since a few days).
Now it seem noone with lion (or older) can use it.
Is there some setting to allow backward compatibility?
Re: Mountain Lion compile only for Mountain Lion?
In their relentless pursuit of pure Cocoa, more and more Carbon APIs are being deprecated. There should still be some workarounds, but this shouldn't come as a surprise.jesperbrannmark wrote:Hi.
I just compiled my program and distributed it. (using Mountain lion since a few days).
Now it seem noone with lion (or older) can use it.
Is there some setting to allow backward compatibility?
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 
Re: Mountain Lion compile only for Mountain Lion?
Cocoa has been around since 2001. It's quite logical that they want to get rid of some old deprecated APIs.TI-994A wrote:In their relentless pursuit of pure Cocoa, more and more Carbon APIs are being deprecated.
But it doesn't make sense if something compiled with PureBasic on Mountain Lion doesn't work on Lion.
The current PureBasic version doesn't output anything different. All I can think of is that something has changed in NASM.
-
jesperbrannmark
- Enthusiast

- Posts: 536
- Joined: Mon Feb 16, 2009 10:42 am
- Location: sweden
- Contact:
Re: Mountain Lion compile only for Mountain Lion?
Yes, this came as a unpleasant surprise to me too. I have a Mac with Lion still (or I have to borrow my girlfriends), so I can recompile. But I am using Pb 4.61 on both of them. On this one (mountain lion) Xcode is newer, because old xcode wouldnt run on mountain lion therefor I had to upgrade.
Thats probably what I need to do, but someone should have a warning here.
It could be something in my code that compiles this way, so it might not apply to all sources.
but ....
Compiled with mountain lion -> will only run on mountain lion or newer
compiled with older -> will run on all..
Thats probably what I need to do, but someone should have a warning here.
It could be something in my code that compiles this way, so it might not apply to all sources.
but ....
Compiled with mountain lion -> will only run on mountain lion or newer
compiled with older -> will run on all..
Re: Mountain Lion compile only for Mountain Lion?
You could try to use NASM from their website instead of the Apple compiled version.
http://www.nasm.us/pub/nasm/releasebuil ... macosx.zip
Maybe that makes a difference
http://www.nasm.us/pub/nasm/releasebuil ... macosx.zip
Maybe that makes a difference
Re: Mountain Lion compile only for Mountain Lion?
Hi wilbert. You've got a good point. I was also thinking that it could be a Gatekeeper code signing issue, but still, that should only affect Mountain Lion.wilbert wrote:Cocoa has been around since 2001. It's quite logical that they want to get rid of some old deprecated APIs.
But it doesn't make sense if something compiled with PureBasic on Mountain Lion doesn't work on Lion.
The current PureBasic version doesn't output anything different. All I can think of is that something has changed in NASM.
Hi jesperbrannmark. Have you confirmed this? So, PureBasic runs on Mountain Lion, and PureBasic apps can compile and run on it? And PureBasic apps compiled on Lion run on Mountain Lion as well?jesperbrannmark wrote:Compiled with mountain lion -> will only run on mountain lion or newer
compiled with older -> will run on all..
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 
-
jamirokwai
- Addict

- Posts: 802
- Joined: Tue May 20, 2008 2:12 am
- Location: Cologne, Germany
- Contact:
Re: Mountain Lion compile only for Mountain Lion?
Hi there,
just compiled two of my Apps on Mountain Lion, xCode 4.4, PB 4.61. Then I tested on Snow Leopard, which works as expected. Can't try on Lion, though...
Which functions do not work on your Lion-Installation?
just compiled two of my Apps on Mountain Lion, xCode 4.4, PB 4.61. Then I tested on Snow Leopard, which works as expected. Can't try on Lion, though...
Which functions do not work on your Lion-Installation?
Regards,
JamiroKwai
JamiroKwai
-
jesperbrannmark
- Enthusiast

- Posts: 536
- Joined: Mon Feb 16, 2009 10:42 am
- Location: sweden
- Contact:
Re: Mountain Lion compile only for Mountain Lion?
I tried on the older mac os mac... i got a crash first thing.
Then i tried putting purebasic (4.61) on that and compile and put it in a DMG file.
Now when i run the software on the Mountain Lion Mac I get the message:
If I put the application (compiled in older mac os) over and then make the DMG file on Mountain Lion it work for everyone.
Its not a general PB issue, but I have a need a drink...
Then i tried putting purebasic (4.61) on that and compile and put it in a DMG file.
Now when i run the software on the Mountain Lion Mac I get the message:
(i have not signed the code)“clinicbuddy” can’t be opened because it is from an unidentified developer.
Your security preferences allow installation of only apps from the Mac App Store and identified developers.
If I put the application (compiled in older mac os) over and then make the DMG file on Mountain Lion it work for everyone.
Its not a general PB issue, but I have a need a drink...
Re: Mountain Lion compile only for Mountain Lion?
Not sure I understand it all: do our ML compiled apps run on older OS? They should, at least til snow leopard.
Now, Any of our apps will display the gatekeeper message and won't run on ML, unless gatekeeper is turned off. Haven't tried the signing process yet!
Now, Any of our apps will display the gatekeeper message and won't run on ML, unless gatekeeper is turned off. Haven't tried the signing process yet!
Re: Mountain Lion compile only for Mountain Lion?
Hello again jesperbrannmark. The good news is that PureBasic works on Mountain Lion; and jamirokwai was able to run his Mountain-Lion compiled app on Snow Leopard as well.jesperbrannmark wrote:I tried on the older mac os mac... i got a crash first thing.
Then i tried putting purebasic (4.61) on that and compile and put it in a DMG file.
Now when i run the software on the Mountain Lion Mac I get the message:(i have not signed the code)“clinicbuddy” can’t be opened because it is from an unidentified developer.
Your security preferences allow installation of only apps from the Mac App Store and identified developers.
If I put the application (compiled in older mac os) over and then make the DMG file on Mountain Lion it work for everyone.
Its not a general PB issue, but I have a need a drink...
Still no idea why your app is crashing on the older mac os; but like Polo said, if Gatekeeper is turned off, you should be able to run your app on Mountain Lion even without signing it.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 
-
spacebuddy
- Enthusiast

- Posts: 364
- Joined: Thu Jul 02, 2009 5:42 am
Re: Mountain Lion compile only for Mountain Lion?
In Mountain Lion you can right click on the Icon and select "Open" even
if GateKeeper is on and the program will run without the security warning.
------------------
http://www.xshld.com
if GateKeeper is on and the program will run without the security warning.
------------------
http://www.xshld.com
