Comments for Dread Pirate PJ's House of Hacks and Tricks http://www.pjtrix.com/blawg Mon, 03 Aug 2009 17:52:30 +0000 hourly 1 https://wordpress.org/?v=4.2.29 Comment on iPhone Development on Windows & Linux with open source tools by dreadpiratepj http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8632 Mon, 03 Aug 2009 17:52:30 +0000 http/blawg?p=168#comment-8632 Hi Pete,

The code you write to program with the open source toolchain is exactly the same as with the official SDK, as long as you use the SDK headers, frameworks and libraries. You should be able to get started with a Windows or Linux computer and a jailbroken device.

I’ll argue that going this route will make you a better iPhone developer, because you’ll learn how to program your UI from scratch, instead of being spoiled by Interface Builder. 😉

]]>
Comment on iPhone Development on Windows & Linux with open source tools by Pete Bones http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8631 Mon, 03 Aug 2009 15:19:51 +0000 http/blawg?p=168#comment-8631 I’ve been toying with the idea of trying out iPhone dev for a while now, and my question is this:

if I start a project using the open source SDk, how easy is it to transfer it to the official SDK, should I decide to do so? Thanks!

]]>
Comment on iPhone Development on Windows & Linux with open source tools by jason http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8630 Sun, 02 Aug 2009 03:48:51 +0000 http/blawg?p=168#comment-8630 I have tried hard to use gcc4.2 to build the toolchain, and i did follow the instruction of saurik http://www.saurik.com/id/4

but, unfortunately i failed. Contacting with saurik, he just told me that the toolchain will work, but don’t tell me how to make it work. i feel sad, and i am really disappointed because he didn reply my Email anymore

]]>
Comment on iPhone Development on Windows & Linux with open source tools by dreadpiratepj http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8629 Sat, 01 Aug 2009 19:30:16 +0000 http/blawg?p=168#comment-8629 Jason, I had someone write to me in the last few days that the toolchain does not work with 3.0. I’m looking into it but don’t have a timeframe. Will get to it when I can. My hunch is that 3.0 uses GCC 4.2 and this toolchain is GCC 4.0, but it’s just a hunch.

]]>
Comment on iPhone Development on Windows & Linux with open source tools by dreadpiratepj http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8628 Sat, 01 Aug 2009 18:45:10 +0000 http/blawg?p=168#comment-8628 Hi Luis,

Try the 1.2 SDK headers.

svn co http://iphone-dev.googlecode.com/svn/branches/include-1.2-sdk

Sorry for the confusion. It’s been a while since I wrote that HelloWorld example. Notice in the comment header that it’s dated August 2008.

]]>
Comment on iPhone Development on Windows & Linux with open source tools by Jason http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8627 Sat, 01 Aug 2009 13:47:55 +0000 http/blawg?p=168#comment-8627 Hi, when linking this page I don’t have much interest. but after reading it, i find it useful.
and looking at the publishing date 2009-7
oh, i have to ask a question. will this work for IPHONE3.0?
i really need a workable toolchain for 3.0

]]>
Comment on iPhone Development on Windows & Linux with open source tools by Luis http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8626 Sat, 01 Aug 2009 01:22:31 +0000 http/blawg?p=168#comment-8626 Managed to get the Mac OX X 10.4 SDK installed using the iPhone-dev instructions plus your ./configure & sudo steps.

However, that placed all the relevant headers in /usr/local/arm-apple-darwin/include instead of /usr/local/iphone-sysroot/usr/include

So I copied ..darwin/include/* to iphone-sysroot/usr/include

Now your HelloWorldiPhone example has a lot less compile errors, but I still get:

HelloWorld.m:15: error: too many arguments to function ‘UIApplicationMain’

I wonder if your toolchain download and the iPhone-dev team’s header files are incompatible?

thanks again!
L.

]]>
Comment on iPhone Development on Windows & Linux with open source tools by dreadpiratepj http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8625 Fri, 31 Jul 2009 22:15:30 +0000 http/blawg?p=168#comment-8625 Hello Luis, thanks for stopping by!

It seems I forgot a step in using the iPhone-dev team’s header files. You need to provide the location to the Mac OS X 10.4 SDK (the 10.4 SDK that comes with plain XCode 3.1 should be fine). I’ve amended the blog post with the details.

On the other hard, if you’re going to go through the trouble of obtaining 10.4 SDK files, you may as well just get the official SDK files.

]]>
Comment on iPhone Development on Windows & Linux with open source tools by Luis http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8624 Fri, 31 Jul 2009 21:13:54 +0000 http/blawg?p=168#comment-8624 Great info!!! Thanks!!!

I’ve downloaded everything and gave ‘make’ a try (on a linux (Ubuntu) sstem). I got the include files from the iPhone-dev team SVN repository, but it seems that there are some files missing (or at least not corresponding to your sample code).

Here are the first few compilation errors:

/usr/local/bin/arm-apple-darwin9-gcc -c -I/usr/local/lib/gcc/arm-apple-darwin9/4.2.1/include -isysroot /usr/local/iphone-sysroot HelloWorld.m -o HelloWorld.o
HelloWorld.m:9:34: error: Foundation/Foundation.h: No such file or directory
In file included from HelloWorld.m:10:
/usr/local/iphone-sysroot/usr/include/UIKit/UIKit.h:3:38: error: CoreGraphics/CoreGraphics.h: No such file or directory
/usr/local/iphone-sysroot/usr/include/UIKit/UIKit.h:4:42: error: CoreFoundation/CoreFoundation.h: No such file or directory

I don’t have a Foundation directory in iphone-sysroot/usr/include, nor a CoreGraphics.

I suppose I should try getting the includes from the SDK directly?

Thanks for all this!!!
Luis.

]]>
Comment on iPhone Development on Windows & Linux with open source tools by dreadpiratepj http/blawg/2009/07/21/iphone-development-on-windows-linux-with-open-source-tools/comment-page-1/#comment-8623 Fri, 31 Jul 2009 18:02:40 +0000 http/blawg?p=168#comment-8623 Hi Lucas,

What did you use to unpack the toolchain on Windows? I’m afraid WinZip and WinRAR don’t support symlinks. Try from the cygwin command line:

cd /

tar xzf /path/to/toolchain.tgz

]]>