Page 1 of 2
New Templates for Xcode 4
Posted: Sat May 07, 2011 5:52 pm
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!
Re: New Templates for Xcode 4
Posted: Tue May 10, 2011 12:15 pm
by mcteapot
Thanks so much for the templates, I am testing them now. Any chance of seeing an iOS template in the near future?
Re: New Templates for Xcode 4
Posted: Tue May 10, 2011 2:34 pm
by masterfalcon
Yup. As I'd said, it's already included.
Re: New Templates for Xcode 4
Posted: Tue May 10, 2011 7:45 pm
by mcteapot
May bad, I did not see it, You made my day!
Re: New Templates for Xcode 4
Posted: Wed May 11, 2011 9:45 am
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
}
Re: New Templates for Xcode 4
Posted: Wed May 11, 2011 2:49 pm
by masterfalcon
Thanks! I'll add that fix
Re: New Templates for Xcode 4
Posted: Fri May 20, 2011 2:24 pm
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
Re: New Templates for Xcode 4
Posted: Fri May 20, 2011 2:31 pm
by masterfalcon
Could you post a screenshot of the new project window in Xcode?
Re: New Templates for Xcode 4
Posted: Fri May 20, 2011 3:43 pm
by mmortall
masterfalcon wrote:Could you post a screenshot of the new project window in Xcode?
Template use /Developer/Library/Xcode folder or is looking for xCode 4 installation folder?
My xCode is installed in /Developer43/Library/Xcode
Re: New Templates for Xcode 4
Posted: Fri May 20, 2011 3:50 pm
by masterfalcon
What happens if you close all 3 copies of Xcode, run the installer, and then try running just Xcode 4?
Re: New Templates for Xcode 4
Posted: Fri May 20, 2011 4:03 pm
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.
Re: New Templates for Xcode 4
Posted: Fri May 20, 2011 4:15 pm
by masterfalcon
There's nothing to compile. Are the templates in ~/Library/Developer/Xcode/Templates/Ogre ? You should see a bunch of .xctemplate folders.
Re: New Templates for Xcode 4
Posted: Fri May 20, 2011 4:26 pm
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
Re: New Templates for Xcode 4
Posted: Fri May 20, 2011 4:33 pm
by mmortall
I find files with this extension (.xctemplate) in folder:
/Developer43/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application
Re: New Templates for Xcode 4
Posted: Mon May 23, 2011 12:41 pm
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.
Re: New Templates for Xcode 4
Posted: Sun Jun 12, 2011 1:18 pm
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.
Re: New Templates for Xcode 4
Posted: Mon Jun 13, 2011 5:54 am
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.
Re: New Templates for Xcode 4
Posted: Mon Jun 13, 2011 12:31 pm
by NewOne
masterfalcon wrote: It's related to the LogManager allocation in the sample.
Ok.
Re: New Templates for Xcode 4
Posted: Wed Jun 15, 2011 3:27 pm
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?
Here's the screenshot of the project settings:
And one from finder:

Re: New Templates for Xcode 4
Posted: Wed Jun 15, 2011 4:54 pm
by masterfalcon
It's actually scoped_array.hpp.
Re: New Templates for Xcode 4
Posted: Wed Jun 15, 2011 9:55 pm
by Kay Trance
masterfalcon wrote:It's actually scoped_array.hpp.
Stupid me...

Re: New Templates for Xcode 4
Posted: Wed Jun 15, 2011 11:07 pm
by masterfalcon
No problem. That extension isn't used very often, easy mistake to make.
Re: New Templates for Xcode 4
Posted: Thu Jun 16, 2011 6:08 am
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.
Re: New Templates for Xcode 4
Posted: Tue Jun 21, 2011 11:38 pm
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
Re: New Templates for Xcode 4
Posted: Wed Jun 22, 2011 2:49 am
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