Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-04-2009, 05:20 PM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 3
Default How to execute os x .exe on iPhone OS

Hey guys,

I'm an absolute noob at iPhone development but I know a little C. I need to know how to execute an executable program (compatible under OS X) for an iPhone application. The program has been tested on the mac terminal and works without any flaws. In addition, that program is part of a library deemed platform independent, meaning that it has programmatic support for multiple operating systems.

A question that derives from the last one is: would an OS X compatible executable reliably work on the iPhone OS as well? I know that the iPhone OS is very similar to its counterpart.

Thanks for any help.
philip2718 is offline   Reply With Quote
Old 07-04-2009, 06:21 PM   #2 (permalink)
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
Default

You can't run a Mac OS X executable on an iPhone. Or vice versa. Different processors, among other things.

If you have the source, you can compile the code for the iPhone using the iPhone SDK. But if it's designed to be run as a command line program, you're going to have issues because there's no Terminal on the iPhone. Unless you're talking about a jailbreak environment, which is out of scope for this forum.

You'll have to take that command line code and wrap it in an iPhone application to do what you want, I think.

joe
FlyingDiver is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting 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



» Advertisements
» Stats
Members: 158,309
Threads: 89,033
Posts: 379,817
Top Poster: BrianSlick (7,086)
Welcome to our newest member, alapimba
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:03 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0