My First iPhone/iPod Touch App Made On Linux?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

My First iPhone/iPod Touch App Made On Linux?

Post by LeonBlade »

Hey guys,

As most of you may know, the iPhone SDK is a powerful tool that includes lots of great applications to develop for the iPhone or iPod Touch.
However, the iPhone SDK is only available on Mac computers.

But, after doing some research, I saw a website telling you how to make your own apps WITHOUT the need for a Mac computer at all!

So how does this work?
Well, all the header files and other source code from the iPhone SDK get placed onto the device itself via SSH into the /var/mobile/include/ directory.

So what do you need to make an app?
A simple file structure containing a build, Classes, and Recources folder.
Inside the root of the main project folder is a Makefile and Info.plist file.
The Recources folder contains all the images needed for the application such as the icon.
The build folder contains the app once you build.
And the Classes folder contains all the source code for the app.

You have your main.m which contains the main function.
And you have the App.h which is the application header file.
And then you have the App.m which is the main class of your application.

Obviously your project may contain more files than that, but that is the base of it all.

The Makefile is configured to build your source code and then you install the app on your device using make and make install.
Once you've done that, you can test out your application on your device.

But how do you build?
Well all of this is done on the device itself, and you build on the device too.
You simply use the terminal or better yet SSH into the device and run the commands to build the app.

The only thing you don't get is GUI support for using UIKit or anything else, no Xcode unfortunately.
But that doesn't mean you can't build apps, you'll be writing the code that the GUI would normally make for you.

So what have I made so far?
Well, I don't have much documentation on the iPhone SDK, and most of the tutorials you see are based on using Xcode and building on a Mac.
So right now I'm testing out some of the features and learning how Objective-C works, slowly learning as I go along.

Here is a screen shot of the current application I'm making.
Image

All that it does right now is when you press the "Pools Closed" button, the text on it switches to "Due To AIDS".
And the ON/OFF switch disables the button, changes it to say "LOCKOUT" and changes the color of the button text.

So far I've learned a little about UIView, UIButton, UIColor, UISwitch, and a few others.
But I still have a long list of header files to go through to learn everything.

If you have a jailbroken iPod Touch or iPhone and you have Cydia, then add this repo to your list:
http://irepo.leonblog.it.cx/
And you'll be able to install my Pools Closed app to test it out.

More to come soon, and if anyone has suggestions on an app I should try to make or features I should implement in this current application, please let me know.

Thanks,
Leon Blade
There's no place like ~/
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: My First iPhone/iPod Touch App Made On Linux?

Post by LeonBlade »

Here is a simple video, no audio, just showing the works and then a screen shot at the end...
There's no place like ~/
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: My First iPhone/iPod Touch App Made On Linux?

Post by MarauderIIC »

So you're Jimmy Stine? Here I was thinking it was just some name you made up. Also, could you not remember what you were doing? I noticed some stutters before 2clicking on directories. And where's the video of you holding your ipod with this app on it? And you probably should fix those pointer-integer comparisons. :)

But hey, non-PC platforms (in this case, iSomething) always score points. :)
Last edited by MarauderIIC on Mon Mar 16, 2009 6:12 pm, edited 1 time in total.
Reason: oops fixed your last name :D
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: My First iPhone/iPod Touch App Made On Linux?

Post by LeonBlade »

Jimmy Stine yes, (not Stein lol)
And yeah it was like really late at night when I made this LOL so I was like half asleep.
My web cam isn't working too well with Ubuntu, I'll give it a go right now.
But like I said above, if you have a jailbroken device, you can download my app from Cydia.
There's no place like ~/
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: My First iPhone/iPod Touch App Made On Linux?

Post by LeonBlade »

ALRIGHT TIMES FOR SOME PROOF


My voice in this video might be too exciting for you all so be warned...
There's no place like ~/
User avatar
sparda
Chaos Rift Junior
Chaos Rift Junior
Posts: 291
Joined: Tue Sep 23, 2008 3:54 pm

Re: My First iPhone/iPod Touch App Made On Linux?

Post by sparda »

Oh snap! Leon said, "this crap"

Marauder vs. LeonBlade

FIGHT! FIGHT! FIGHT! FIGHT!

lol :lol:
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: My First iPhone/iPod Touch App Made On Linux?

Post by MarauderIIC »

OMG
BANBANBANBANBABNABNANBANBABANBABNABANBABANBABNABNABNABNABNANNANANABAN
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: My First iPhone/iPod Touch App Made On Linux?

Post by LeonBlade »

Lol, I didn't mean it that way in the video, just so you know.

Right now I'm working on Animation and using the built in accelerometer to move stuff...
I have an accelerometer thing going on, but it doesn't work out that great lol.

I'm making my Pixel Ship Saves Space From Evil Asteroids Game on my iPhone...
If anyone wants to develop for the iPhone and iPod touch, you should defiantly consider jailbreaking your device.
Just because you jailbreak it, doesn't mean that you pirate games...

I'll post some quick screen caps of the two apps I have made to show you guys.
There's no place like ~/
Post Reply