Template what next?

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
samthomson
Gnoblar
Posts: 11
Joined: Tue Jun 21, 2011 11:43 am

Template what next?

Post by samthomson »

Hello, I'm trying to get a basic hello world type app running using OGRE iphone. I've downloaded and successfully built Ogre for iphone and got the sample browser running in the simulator but am getting stuck with the template(s).

I run the template installer which completes, but nothing seems to of happened. I'm new to mac os development. Do I have to manually add the installed template to the xcode IDE? I've tried two of the template installers. The older one (Ogre_Xcode_Templates_20101211.pkg.zip) asks for an SDK location but the newer one (Ogre_Xcode4_Templates_20110616.pkg.zip) doesn't, both are available on SF, I presume the newer one is the correct one?

Xcode 3.2.6
iPhone SDK 4.3
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Template what next?

Post by masterfalcon »

A new category named Ogre should appear in the new project dialog.
samthomson
Gnoblar
Posts: 11
Joined: Tue Jun 21, 2011 11:43 am

Re: Template what next?

Post by samthomson »

Just the standard templates are there. The installer completes successfully. Might there be some kind of log file created by it I can look at? Sorry if these are pretty newbie questions, any help's much appreciated.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Template what next?

Post by masterfalcon »

Hmm, there's a log that you can view from within the installer app. Not sure where it's stored though.

BTW, the Xcode4 templates are for Xcode 4. You will want the older ones.
samthomson
Gnoblar
Posts: 11
Joined: Tue Jun 21, 2011 11:43 am

Re: Template what next?

Post by samthomson »

Okay, running the older installer this is what the log produces:


Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3144]: Env: LOGNAME=samthompson
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3144]: Env: DISPLAY=/tmp/launch-KmXnV5/org.x:0
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3144]: Env: SSH_AUTH_SOCK=/tmp/launch-xu5U1s/Listeners
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3144]: Env: Apple_PubSub_Socket_Render=/tmp/launch-xzW0uc/Render
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3144]: Env: COMMAND_MODE=unix2003
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3144]: Env: __CF_USER_TEXT_ENCODING=0x1F9:0:0
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: @(#)PROGRAM:Install PROJECT:Install-595.1
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: @(#)PROGRAM:Installer PROJECT:Installer-430.1
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Hardware: iMac9,1 @ 2.66 GHz (x 2), 4096 MB RAM
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Running OS Build: Mac OS X 10.6.7 (10J869)
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: TMPDIR=/var/folders/ev/evT7nzLnFM4d6DpO563xg++++TY/-Tmp-/
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: SHELL=/bin/bash
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: HOME=/Users/samthompson
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: USER=samthompson
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: LOGNAME=samthompson
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: DISPLAY=/tmp/launch-KmXnV5/org.x:0
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: SSH_AUTH_SOCK=/tmp/launch-xu5U1s/Listeners
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: Apple_PubSub_Socket_Render=/tmp/launch-xzW0uc/Render
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: COMMAND_MODE=unix2003
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Env: __CF_USER_TEXT_ENCODING=0x1F9:0:0
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Ogre Xcode Templates Installation Log
Jun 27 15:10:49 suhayb-mahmoods-imac Installer[3147]: Opened from: /Users/samthompson/Downloads/Ogre Templates for Xcode.pkg
Jun 27 15:11:03 suhayb-mahmoods-imac runner[3149]: Administrator authorization granted.
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: ================================================================================
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: User picked Standard Install
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Choices selected for installation:
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Upgrade: "Ogre Xcode Templates"
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Ogre Templates for Xcode.pkg : org.ogre3d.ogreXcodeTemplates.pkg : 1.7.2.1.7
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: ================================================================================
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: It took 0.00 seconds to summarize the package selections.
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (\n "file://localhost"\n)
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/samthompson/Downloads/Ogre%20Templates%20for%20Xcode.pkg
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Will use PK session
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Starting installation:
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Configuring volume "Macintosh HD"
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Preparing disk for local booted install.
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Free space on "Macintosh HD": 270.54 GB (270536458240 bytes).
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: Create temporary directory "/var/folders/ev/evT7nzLnFM4d6DpO563xg++++TY/-Tmp-//Install.3147V7qcgf"
Jun 27 15:11:03 suhayb-mahmoods-imac Installer[3147]: IFPKInstallElement (1 packages)
Jun 27 15:11:03 suhayb-mahmoods-imac installd[3152]: PackageKit: ----- Begin install -----
Jun 27 15:11:03 suhayb-mahmoods-imac installd[3152]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Jun 27 15:11:03 suhayb-mahmoods-imac installd[3152]: PackageKit: packages=(\n "PKJaguarPackage <file://localhost/Users/samthompson/Downloads/Ogre%20Templates%20for%20Xcode.pkg>"\n)
Jun 27 15:11:03 suhayb-mahmoods-imac installd[3152]: PackageKit: Extracting file://localhost/Users/samthompson/Downloads/Ogre%20Templates%20for%20Xcode.pkg (destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root/Library/Application Support/Developer/Shared, uid=0)
Jun 27 15:11:04 suhayb-mahmoods-imac installd[3152]: PackageKit: Shoving /var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root (1 items) to /
Jun 27 15:11:04 suhayb-mahmoods-imac installd[3152]: Installed "Ogre Xcode Templates" ()
Jun 27 15:11:04 suhayb-mahmoods-imac installd[3152]: PackageKit: ----- End install -----
Jun 27 15:11:04 suhayb-mahmoods-imac Installer[3147]: Removing temporary directory "/var/folders/ev/evT7nzLnFM4d6DpO563xg++++TY/-Tmp-//Install.3147V7qcgf"
Jun 27 15:11:04 suhayb-mahmoods-imac Installer[3147]: Finalize disk "Macintosh HD"
Jun 27 15:11:04 suhayb-mahmoods-imac Installer[3147]: Notifying system of updated components
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]:
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]: **** Summary Information ****
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]: Operation Elapsed time
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]: -----------------------------
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]: zero 0.01 seconds
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]: install 1.02 seconds
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]: disk 0.01 seconds
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]: -total- 1.04 seconds
Jun 27 15:11:05 suhayb-mahmoods-imac Installer[3147]:
Jun 27 15:11:57 suhayb-mahmoods-imac Installer[3147]: IFDInstallController 10F880 state = 5
Jun 27 15:11:57 suhayb-mahmoods-imac Installer[3147]: Displaying 'Install Succeeded' UI.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Template what next?

Post by masterfalcon »

Hmm, just for fun. Try running these from terminal then reinstalling.

Code: Select all

sudo pkgutil --forget org.ogre3d.ogreXcodeTemplates.pkg
sudo pkgutil --forget org.ogre3d.Xcode4Templates.FileTemplates.pkg
sudo pkgutil --forget org.ogre3d.Xcode4Templates.ProjectTemplates.pkg
samthomson
Gnoblar
Posts: 11
Joined: Tue Jun 21, 2011 11:43 am

Re: Template what next?

Post by samthomson »

Okay thanks,

The first one ran fine, the second two didn't ("No receipt for 'org.ogre3d.Xcode4Templates.ProjectTemplates.pkg' found at '/'.") perhaps because I'm in xcode 3 not 4.

I've ran the installer again and still nothing shows in the template dialog after starting up xcode.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Template what next?

Post by masterfalcon »

Do you have Xcode installed in a non-standard location? Are you and administrator user? Is the file system case sensitive?
samthomson
Gnoblar
Posts: 11
Joined: Tue Jun 21, 2011 11:43 am

Re: Template what next?

Post by samthomson »

- Xcode resides in the Applications folder, I didn't install it, but presume this is the standard place?
- I don't think the file system is case sensitive, from the terminal I can navigate into the same folder with both cd library and cd Library, (I don't know how to tell if file system is case sensitive so thought this would determine)
- I think I'm ad admin. If I look in System preferences > System > acounts I can see 'admin' under my name. I'm one of several users with an account on this computer (it's in a uni lab).

Is there no way I can just copy and paste a template in somewhere no? Or through the xcode interface import a template or something? I'm pretty new to mac development, very much a windows person so I'm afraid a little naive to troubleshooting these problems.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Template what next?

Post by masterfalcon »

In theory, the templates should just work. Clearly something is strange with your setup(Xcode is in /Developer/Applications by default) The Xcode 3 templates have always been a pain, I'd recommend switching to Xcode 4.
samthomson
Gnoblar
Posts: 11
Joined: Tue Jun 21, 2011 11:43 am

Re: Template what next?

Post by samthomson »

Okay thanks, I'll try that and see if anything changes.