New Templates for Xcode 4

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

New Templates for Xcode 4

Post by masterfalcon »

Hello everyone!

I am happy to announce new templates for Xcode 4. They should be much more trouble free than the Xcode 3 templates.

For starters, the installer no longer asks for your Ogre SDK location(yay!). You are asked when you create a new project from a template. And the value is persistent so you only need to enter it once for OS X or iOS or if you change where the SDK is located.

Since the boost version is in the folder name in the OS X SDK, you may need to adjust the header search path after you have created a project.

To use them, just run the installer(you don't even need to quit Xcode for them to get recognized), then create a new project. You will see a section titled "Ogre" for both OS X and iOS, choose whichever you want, enter the information that it asks for, and off you go!

They can be found on SourceForge for now, here is a direct link: http://sourceforge.net/projects/ogre/fi ... p/download

As usual, let me know if you run into any issues!
User avatar
mcteapot
Gnoblar
Posts: 20
Joined: Wed Apr 13, 2011 9:40 am
x 1
Contact:

Re: New Templates for Xcode 4

Post by mcteapot »

Thanks so much for the templates, I am testing them now. Any chance of seeing an iOS template in the near future?
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

Yup. As I'd said, it's already included.
User avatar
mcteapot
Gnoblar
Posts: 20
Joined: Wed Apr 13, 2011 9:40 am
x 1
Contact:

Re: New Templates for Xcode 4

Post by mcteapot »

May bad, I did not see it, You made my day!
User avatar
mcteapot
Gnoblar
Posts: 20
Joined: Wed Apr 13, 2011 9:40 am
x 1
Contact:

Re: New Templates for Xcode 4

Post by mcteapot »

Tried out the iOS template. The only thing I am noticing is the Ogre's tusks texture is not being mapped on to the object. Not a deal breaker.
I changed the code to. Not sure if it is a real fix..

Code: Select all

texture_unit
{
  texture tusk.jpg
  colour_op_ex add src_texture src_current
  colour_op_multipass_fallback one one
}
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

Thanks! I'll add that fix
mmortall
Gnoblar
Posts: 13
Joined: Fri May 20, 2011 1:48 pm

Re: New Templates for Xcode 4

Post by mmortall »

I have problem the same as in thread:
http://www.ogre3d.org/forums/viewtopic.php?f=21&t=63923

I have three installed SDK: 3.2(xCode 3.2), 4.2(xCode 3.6) and 4.3(xCode 4)
Mac Mini 10.6.7
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

Could you post a screenshot of the new project window in Xcode?
mmortall
Gnoblar
Posts: 13
Joined: Fri May 20, 2011 1:48 pm

Re: New Templates for Xcode 4

Post by mmortall »

masterfalcon wrote:Could you post a screenshot of the new project window in Xcode?
Image

Template use /Developer/Library/Xcode folder or is looking for xCode 4 installation folder?
My xCode is installed in /Developer43/Library/Xcode
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

What happens if you close all 3 copies of Xcode, run the installer, and then try running just Xcode 4?
mmortall
Gnoblar
Posts: 13
Joined: Fri May 20, 2011 1:48 pm

Re: New Templates for Xcode 4

Post by mmortall »

all the same(((
may be I try to compile SDK Templates using xCode 4 ?

may be log will be useful
May 20 17:55:58 khamac0200 Installer[888]: @(#)PROGRAM:Install PROJECT:Install-595.1
May 20 17:55:58 khamac0200 Installer[888]: @(#)PROGRAM:Installer PROJECT:Installer-430.1
May 20 17:55:58 khamac0200 Installer[888]: Hardware: Macmini3,1 @ 2.26 GHz (x 2), 2048 MB RAM
May 20 17:55:58 khamac0200 Installer[888]: Running OS Build: Mac OS X 10.6.7 (10J869)
May 20 17:55:58 khamac0200 Installer[888]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
May 20 17:55:58 khamac0200 Installer[888]: Env: TMPDIR=/var/folders/Ld/LdJoXhlrFdOoRvsodwlEfpuJR6s/-Tmp-/
May 20 17:55:58 khamac0200 Installer[888]: Env: SHELL=/bin/bash
May 20 17:55:58 khamac0200 Installer[888]: Env: HOME=/Users/username
May 20 17:55:58 khamac0200 Installer[888]: Env: USER=username
May 20 17:55:58 khamac0200 Installer[888]: Env: LOGNAME=username
May 20 17:55:58 khamac0200 Installer[888]: Env: DISPLAY=/tmp/launch-giqVjE/org.x:0
May 20 17:55:58 khamac0200 Installer[888]: Env: SSH_AUTH_SOCK=/tmp/launch-3sJhLv/Listeners
May 20 17:55:58 khamac0200 Installer[888]: Env: Apple_PubSub_Socket_Render=/tmp/launch-dB0gYc/Render
May 20 17:55:58 khamac0200 Installer[888]: Env: COMMAND_MODE=unix2003
May 20 17:55:58 khamac0200 Installer[888]: Env: __CF_USER_TEXT_ENCODING=0x5E95748E:0:0
May 20 17:55:58 khamac0200 Installer[888]: Ogre Xcode 4 Templates Installation Log
May 20 17:55:58 khamac0200 Installer[888]: Opened from: /Users/username/Ogre Templates for Xcode 4.pkg
May 20 17:57:33 khamac0200 runner[893]: Administrator authorization granted.
May 20 17:57:33 khamac0200 Installer[888]: ================================================================================
May 20 17:57:33 khamac0200 Installer[888]: User picked Standard Install
May 20 17:57:33 khamac0200 Installer[888]: Choices selected for installation:
May 20 17:57:33 khamac0200 Installer[888]: Install: "Ogre Xcode 4 Templates"
May 20 17:57:33 khamac0200 Installer[888]: Install: "File Templates"
May 20 17:57:33 khamac0200 Installer[888]: Ogre Templates for Xcode 4.pkg#fileTemplates.pkg : org.ogre3d.Xcode4Templates.FileTemplates.pkg : 1.0
May 20 17:57:33 khamac0200 Installer[888]: Install: "Project Templates"
May 20 17:57:33 khamac0200 Installer[888]: Ogre Templates for Xcode 4.pkg#ogre.pkg : org.ogre3d.Xcode4Templates.ProjectTemplates.pkg : 1.0
May 20 17:57:33 khamac0200 Installer[888]: ================================================================================
May 20 17:57:33 khamac0200 Installer[888]: It took 0.00 seconds to summarize the package selections.
May 20 17:57:33 khamac0200 Installer[888]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
May 20 17:57:33 khamac0200 Installer[888]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/username/Ogre%20Templates%20for%20Xcode%204.pkg#fileTemplates.pkg
May 20 17:57:33 khamac0200 Installer[888]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/username/Ogre%20Templates%20for%20Xcode%204.pkg#ogre.pkg
May 20 17:57:33 khamac0200 Installer[888]: Will use PK session
May 20 17:57:33 khamac0200 Installer[888]: Starting installation:
May 20 17:57:33 khamac0200 Installer[888]: Configuring volume "Macintosh HD"
May 20 17:57:33 khamac0200 Installer[888]: Preparing disk for local booted install.
May 20 17:57:33 khamac0200 Installer[888]: Free space on "Macintosh HD": 28.86 GB (28860338176 bytes).
May 20 17:57:33 khamac0200 Installer[888]: Create temporary directory "/var/folders/Ld/LdJoXhlrFdOoRvsodwlEfpuJR6s/-Tmp-//Install.888X104fD"
May 20 17:57:33 khamac0200 Installer[888]: IFPKInstallElement (2 packages)
May 20 17:57:33 khamac0200 installd[899]: PackageKit: ----- Begin install -----
May 20 17:57:33 khamac0200 installd[899]: PackageKit: request=PKInstallRequest <2 packages, destination=/Users/username>
May 20 17:57:33 khamac0200 installd[899]: PackageKit: packages=(\n "PKLeopardPackage <file://localhost/Users/username/Ogre%20Templates%20for%20Xcode%204.pkg#fileTemplates.pkg>",\n "PKLeopardPackage <file://localhost/Users/username/Ogre%20Templates%20for%20Xcode%204.pkg#ogre.pkg>"\n)
May 20 17:57:33 khamac0200 installd[899]: PackageKit: Extracting file://localhost/Users/username/Ogre%20Templates%20for%20Xcode%204.pkg#fileTemplates.pkg (destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root/Library/Developer/Xcode/Templates, uid=0)
May 20 17:57:34 khamac0200 installd[899]: PackageKit: Extracting file://localhost/Users/username/Ogre%20Templates%20for%20Xcode%204.pkg#ogre.pkg (destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root/Library/Developer/Xcode/Templates, uid=0)
May 20 17:57:34 khamac0200 installd[899]: PackageKit: Shoving /var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root (1 items) to /Users/username
May 20 17:57:35 khamac0200 installd[899]: Installed "Ogre Xcode 4 Templates" ()
May 20 17:57:35 khamac0200 installd[899]: PackageKit: ----- End install -----
May 20 17:57:35 khamac0200 Installer[888]: Running install actions
May 20 17:57:35 khamac0200 Installer[888]: Removing temporary directory "/var/folders/Ld/LdJoXhlrFdOoRvsodwlEfpuJR6s/-Tmp-//Install.888X104fD"
May 20 17:57:35 khamac0200 Installer[888]: Finalize disk "Macintosh HD"
May 20 17:57:35 khamac0200 Installer[888]: Notifying system of updated components
May 20 17:57:36 khamac0200 Installer[888]:
May 20 17:57:36 khamac0200 Installer[888]: **** Summary Information ****
May 20 17:57:36 khamac0200 Installer[888]: Operation Elapsed time
May 20 17:57:36 khamac0200 Installer[888]: -----------------------------
May 20 17:57:36 khamac0200 Installer[888]: disk 0.01 seconds
May 20 17:57:36 khamac0200 Installer[888]: script 0.00 seconds
May 20 17:57:36 khamac0200 Installer[888]: zero 0.01 seconds
May 20 17:57:36 khamac0200 Installer[888]: install 2.09 seconds
May 20 17:57:36 khamac0200 Installer[888]: -total- 2.11 seconds
May 20 17:57:36 khamac0200 Installer[888]:
May 20 17:57:36 khamac0200 Installer[888]: IFDInstallController 61CD90 state = 5
May 20 17:57:36 khamac0200 Installer[888]: Displaying 'Install Succeeded' UI.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

There's nothing to compile. Are the templates in ~/Library/Developer/Xcode/Templates/Ogre ? You should see a bunch of .xctemplate folders.
mmortall
Gnoblar
Posts: 13
Joined: Fri May 20, 2011 1:48 pm

Re: New Templates for Xcode 4

Post by mmortall »

masterfalcon wrote:There's nothing to compile. Are the templates in ~/Library/Developer/Xcode/Templates/Ogre ? You should see a bunch of .xctemplate folders.
I have no ~/Library/Developer/Xcode folder. Only ~/Library/Developer. There four folders: 3.2, 4.0, Documentation, Shared
Finding by keyword "ogr" find nosing in ~/Library folder
mmortall
Gnoblar
Posts: 13
Joined: Fri May 20, 2011 1:48 pm

Re: New Templates for Xcode 4

Post by mmortall »

I find files with this extension (.xctemplate) in folder:
/Developer43/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application
mmortall
Gnoblar
Posts: 13
Joined: Fri May 20, 2011 1:48 pm

Re: New Templates for Xcode 4

Post by mmortall »

Problem was solved in http://www.ogre3d.org/forums/viewtopic.php?f=21&t=63923.
All working.
Sank for your help and your plugin.
NewOne
Gnoblar
Posts: 16
Joined: Wed Jun 08, 2011 4:54 pm

Re: New Templates for Xcode 4

Post by NewOne »

This template really looks nice and compiled at the very first time. Thanks!

However I am wondering if something should show up by running the compiled app. My console only says "Creating resource group General" and then goes to a not responding state. Is this what should happen?

I should add, that there where the used frameworks are listed the Ogre.framework is marked red. I tried both possible OgreSDK paths /Users/sven/Builds/OgreSDK and /Users/sven/Builds/. But it still didnt work as I added the Ogre.framework by hand.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

I thought i had fixed that bug. I'll have to double check. It's related to the LogManager allocation in the sample.

With regards to them being marked red, I noticed that as well when I was creating them. It appears that way despite the path for the reference being correct and no ill effects coming from it, I just chalked it up to being a bug in Xcode.
NewOne
Gnoblar
Posts: 16
Joined: Wed Jun 08, 2011 4:54 pm

Re: New Templates for Xcode 4

Post by NewOne »

masterfalcon wrote: It's related to the LogManager allocation in the sample.

Ok.
Last edited by NewOne on Wed Jun 22, 2011 8:10 am, edited 2 times in total.
User avatar
Kay Trance
Halfling
Posts: 80
Joined: Wed May 20, 2009 9:01 am
x 1

Re: New Templates for Xcode 4

Post by Kay Trance »

New templates are great, as well as new Xcode4 - I have downloaded it yesterday, and it so much cooler than the previous 3.2 :)
But! Is it normal, that each time I want to use some boost thing, I get an error like unable to find needed header file even if the search path seems to be 100% correct?
Image

Here's the screenshot of the project settings:
Image

And one from finder:
Image
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

It's actually scoped_array.hpp.
User avatar
Kay Trance
Halfling
Posts: 80
Joined: Wed May 20, 2009 9:01 am
x 1

Re: New Templates for Xcode 4

Post by Kay Trance »

masterfalcon wrote:It's actually scoped_array.hpp.
Stupid me... :(
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

No problem. That extension isn't used very often, easy mistake to make.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

Just uploaded a new installer to SourceForge. Highlights include:

* Support for 1.8
* Support for GL ES 2(Can be enabled via a checkbox when creating a project)
* Misc issues fixed.
NewOne
Gnoblar
Posts: 16
Joined: Wed Jun 08, 2011 4:54 pm

Re: New Templates for Xcode 4

Post by NewOne »

I am sorry, but it still freezes after "Creating resource group General".

Code: Select all

GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys001
[Switching to process 4014 thread 0x0]
Creating resource group General
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: New Templates for Xcode 4

Post by masterfalcon »

I still can't reproduce that issue. More information would be handy. Version of Ogre(source or prebuilt), Xcode, OS X. Any settings changed?

Perhaps try running this in Terminal then reinstalling them.

Code: Select all

sudo pkgutil --forget org.ogre3d.ogreXcodeTemplates.pkg
sudo pkgutil --forget org.ogre3d.Xcode4Templates.ProjectTemplates.pkg
sudo pkgutil --forget org.ogre3d.Xcode4Templates.FileTemplates.pkg
Post Reply