Difference between revisions of "Building waze for iPhone"

From waze
Jump to: navigation, search
(First build: a little fancy formatting)
m (Optional items)
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
'''INCOMPLETE'''
+
'''IMPORTANT NOTE for community developers: There is required data missing from waze's source code release, including but not limited to images, sounds, and web service URLs. It's unclear whether this conforms or does not conform to the GNU GPL under which waze is published, but it does make it impossible to build a working app from the published source code.'''
 +
 
 +
'''As data becomes available to make a working build from the source code, it will be noted here. In the meantime, more experimentation is needed. The instructions given here are not enough to build a working app.'''
  
 
==Required items==
 
==Required items==
  
 
* [http://developer.apple.com/iphone/ Apple iOS SDK] (no charge to register and download)
 
* [http://developer.apple.com/iphone/ Apple iOS SDK] (no charge to register and download)
* [[Source code|waze source code]] (naturally!)
+
* [[Source code|waze source code]] (naturally!)—be sure to get a copy of version 1.9.0 as it includes some images not in the 2.0 sources
* (any other data not in the waze source code zip file?)
+
* A couple of TrueType fonts (maybe [https://fedorahosted.org/liberation-fonts/ Liberation] Sans and Sans Bold from the Fedora Project?)
 +
* (other data not in the waze source code zip file; see important note above)
  
 
==Optional items==
 
==Optional items==
  
* Apple iOS Developer Program (paid membership; necessary to build for an actual iOS device instead of just the simulator)
+
* Paid membership in the Apple iOS Developer Program (necessary to build for an actual iOS device instead of just the simulator; currently US$99/year and up)
  
 
==First build==
 
==First build==
 
'''NOTE: This does not yet produce a build that works, at least not in the iPhone Simulator. More input from other developers is needed here.'''
 
  
 
# Make a working directory for the waze source code. It will need to be somewhere where you can add a symlink to its parent directory. For these examples, we'll say the directory is <tt>/Users/Me/iOS/waze</tt>, but it could be under any path you like.
 
# Make a working directory for the waze source code. It will need to be somewhere where you can add a symlink to its parent directory. For these examples, we'll say the directory is <tt>/Users/Me/iOS/waze</tt>, but it could be under any path you like.

Latest revision as of 19:14, 6 September 2010

IMPORTANT NOTE for community developers: There is required data missing from waze's source code release, including but not limited to images, sounds, and web service URLs. It's unclear whether this conforms or does not conform to the GNU GPL under which waze is published, but it does make it impossible to build a working app from the published source code.

As data becomes available to make a working build from the source code, it will be noted here. In the meantime, more experimentation is needed. The instructions given here are not enough to build a working app.

Required items

  • Apple iOS SDK (no charge to register and download)
  • waze source code (naturally!)—be sure to get a copy of version 1.9.0 as it includes some images not in the 2.0 sources
  • A couple of TrueType fonts (maybe Liberation Sans and Sans Bold from the Fedora Project?)
  • (other data not in the waze source code zip file; see important note above)

Optional items

  • Paid membership in the Apple iOS Developer Program (necessary to build for an actual iOS device instead of just the simulator; currently US$99/year and up)

First build

  1. Make a working directory for the waze source code. It will need to be somewhere where you can add a symlink to its parent directory. For these examples, we'll say the directory is /Users/Me/iOS/waze, but it could be under any path you like.
  2. Unzip the source code into /Users/Me/iOS/waze. You'll end up with the source code under something like /Users/Me/iOS/waze/waze_src_2.0. Just rename it so it becomes /Users/Me/iOS/waze/src.
  3. Change to the parent directory (/Users/Me/iOS) and make a symlink: ln -s waze/src/iphone
  4. Change to the waze/src/iphone directory and make another symlink: ln -s .. src
  5. Fire up Xcode.
  6. Within Xcode, open: waze/src/iPhone/Xcode/waze.xcodeproj
  7. Now you can try your first build. If you go to the Build menu and choose one of the "Build and Debug" or "Build and Run" options, Xcode will automatically install the built app into the iPhone Simulator and run it there.