Results 1 to 4 of 4
Discuss [howto] crosscompilation iphone apps with sdk, without xcode at the Offical Apple iPhone SDK - Hackint0sh.org; it's to compile e.g. console utils, like sshd so , open terminal.app type this export ...
  1. #1
    Engineer Array netkas's Avatar

    Join Date
    Oct 2006
    Posts
    235
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default [howto] crosscompilation iphone apps with sdk, without xcode

    it's to compile e.g. console utils, like sshd

    so , open terminal.app
    type this

    export CFLAGS="-I/Developer/Platforms/Aspen.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ -I/Developer/Platforms/Aspen.platform/Developer/SDKs/Aspen1.2.sdk/usr/include -I/Developer/Platforms/Aspen.platform/Developer/usr/include/ -I/Developer/Platforms/AspenSimulator.platform/Developer/SDKs/AspenSimulator1.2.sdk/usr/include"

    export CPP="/Developer/Platforms/Aspen.platform/Developer/usr/bin/cpp-4.0"

    export CPPFLAGS=$CFLAGS

    export LDFLAGS="-L/Developer/Platforms/Aspen.platform/Developer/SDKs/Aspen1.2.sdk/usr/lib/"

    export PATH="$PATH:/Developer/Platforms/Aspen.platform/Developer/usr/bin/"

    now, cd to dir with ur app (e.g. openssh)

    ./configure --host=arm-apple-darwin9 --build=i386-apple-darwin9.2.0

    if u have powerpc mac, then replace i386 with powerpc

    make and u done
    Last edited by netkas; 03-12-2008 at 08:15 PM.



  2. #2
    Professional Array

    Join Date
    Sep 2006
    Posts
    53
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    Cool - is this going to help us create SDK apps that run on jailbroken 1.1.4 phones in any way? Or just to make SDK apps without XCode?

    EDIT: Hmm. I just had an idea on how to possibly make SDK apps for 1.1.4 - The apps require a new Foundation.framework, but you can't replace the Foundation.framework because it'll break the system. What if we included the framework in the app and loaded it from there? I think this has been thought of before, but I've never seen anyone try it. I'll try it now. Forgive me if I'm doing something stupid - I'm pretty new to the iPhone development scene, with SDK or without.
    Last edited by AriX; 03-12-2008 at 08:34 PM.

  3. #3
    Engineer Array netkas's Avatar

    Join Date
    Oct 2006
    Posts
    235
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    u can try replace frameworks in Aspen1.2 sdk, with 1.1.4's one, so apps will be linked to 1.1.4 frameworks, not a 2.0 (then rebuild app)

    or smth like that

  4. #4
    Engineer Array netkas's Avatar

    Join Date
    Oct 2006
    Posts
    235
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    for beta3 vars is next:

    export CFLAGS="-I/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/include -I/Developer/Platforms/iPhoneOS.platform/Developer/usr/include/ -I/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/usr/include"

    export CPP="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp-4.0"

    export CPPFLAGS=$CFLAGS

    export LDFLAGS="-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/lib/"

    export PATH="$PATH:/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/"
    Last edited by netkas; 04-13-2008 at 10:49 PM.

 

 

Similar Threads

  1. [HowTo] Use Apple SDK to build 1.1.4 apps
    By Darkmen in forum iPhone Developer Exchange
    Replies: 40
    Last Post: 10-14-2008, 11:44 PM
  2. [AppStore][HowTo] Delete Apps I have Installed?
    By th3joker in forum AppStore Software
    Replies: 2
    Last Post: 07-13-2008, 11:23 PM
  3. [Beta 2.0] Install Apps through XCode
    By underwaterdub in forum PwnageTool
    Replies: 4
    Last Post: 04-05-2008, 12:51 AM
  4. Replies: 3
    Last Post: 01-19-2008, 05:01 PM
  5. HowTo Write Native Apps
    By linear in forum General
    Replies: 0
    Last Post: 10-28-2007, 09:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 01:28 AM.
twitter, follow us!