Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Mar 24, 2017 4:45 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Xcode 4 and plugins
PostPosted: Sun Feb 26, 2012 2:20 pm 
Offline
User avatar

Joined: Sat Apr 02, 2011 1:20 pm
Posts: 92
Location: Netherlands
Probably a stupid question, but I can't seem to get Xcode 4 to work with the provided Plugin templates in RS 2011r4. After copying the folder with the Mach-O template to my templates directory for Xcode, the RB template does not show up when I restart the program.
Trying to open the .xcode file gives a warning of incompatibility with the current version of Xcode. I saw someone else complain about this, but have also seen others who claim they do use Xcode 4. Am I missing something?


Top
 Profile  
 
 Post subject: Re: Xcode 4 and plugins
PostPosted: Mon Feb 27, 2012 11:27 am 
Offline

Joined: Thu Sep 13, 2007 6:12 pm
Posts: 6
I have been able to use Xcode4 with RS 2011r4. I agree that the template does not work. What I did was to download a starter project file from the Monkeybread site to get started. They also have some getting started videos there as well. The link is http://www.mbsplugins.com/CreatePluginMac.shtml. You will need to refresh the "includes" and "glue code" folders with files from RS 2011r4 in the /Extras/Plugins SDK folder to get the latest plugin development files. If you are unable to get it working, I could email you a zipped test plugin.

Bill James


Top
 Profile  
 
 Post subject: Re: Xcode 4 and plugins
PostPosted: Mon Feb 27, 2012 2:23 pm 
Offline
User avatar

Joined: Sat Apr 02, 2011 1:20 pm
Posts: 92
Location: Netherlands
Thanks for the tips. I was actually trying to follow the Monkeybread tutorial, but could not get any further because of the changes in Xcode.
I would be really thankful if you could mail me a working Testplugin. After following your steps I am getting warnings from Xcode about missing header files Carbon/Carbon.h and QuickTime/QuickTime.h which are not in the plugin sdk Real provides. If you skip that step it is complaining about the use of asterisks in PluginMain that is not compatible with C++...


Top
 Profile  
 
 Post subject: Re: Xcode 4 and plugins
PostPosted: Tue Feb 28, 2012 3:28 pm 
Offline
User avatar

Joined: Sat Apr 02, 2011 1:20 pm
Posts: 92
Location: Netherlands
I finally discovered what went wrong and the problem was a setting in Xcode... In the project settings you should make sure to build for a previous version of OS X (like 10.6) in order to use the Carbon and Quicktime libraries. If you build for OS X Lion (10.7) they are no longer included.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group