Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Running carbon apps from Commandline

Running carbon apps from Commandline
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Fullerton, CA, US
Status: Offline
Reply With Quote
Feb 21, 2002, 01:23 PM
 
I created a carbon app under Mac OS X using CodeWarrior Pro 7.1. I cannot seem to run the app from the OS X Terminal commandline. When I type ./myprog it spews out a lot of junk characters. Almost like it is trying to run it as a shell script. What am I doing wrong?
     
Fresh-Faced Recruit
Join Date: Jan 2001
Location: Hamburg, Germany
Status: Offline
Reply With Quote
Feb 21, 2002, 01:59 PM
 
navigate to the appropriate folder and type 'open myprog'.

have fun,
alex
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 23, 2002, 10:11 AM
 
Just to explain:
Your app was probably a CFM binary, and CFM binaries need a to be launched using a wrapper application because the native binary format on OS X is Mach-O. The wrapper application is called LaunchCFMApp, and is located here:
/System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp

You can either do /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp
./myprog
or
open myproj
because open uses LaunchServices or similar and can tell that it's a CFM binary so it can take the correct steps to launching it.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2