Author Message

<  code::blocks (windows)  ~  openFramworks wizard for CodeBlocks

PostPosted: Sun May 17, 2009 11:27 am
Joined: Wed Aug 06, 2008 5:53 pmPosts: 158Location: Amsterdam
Hi,

Weehoo an openFrameworks wizard for CodeBlocks!

This wizard lets you easily create openframeWorks projects, select the addons you want to use and all project settings are done for you. This is the first release which works on Windows. In the future I'll add support for Mac as well (if you're interested please tell me).

Image

Download the source from SVN:
http://ofcodeblocks.googlecode.com/

Install how-to:
http://code.google.com/p/ofcodeblocks/wiki/InstallingOpenFrameworksWizard

Roxlu
http://www.roxlu.com



_________________
http://www.roxlu.com
http://www.openframeworks.info
Offline Profile
PostPosted: Sun May 17, 2009 11:56 am
Site AdminJoined: Wed Apr 11, 2007 1:02 amPosts: 1192Location: barcelona
oooh man that's so great!! going to try to port it to linux

thanks!


Offline Profile
PostPosted: Sun May 17, 2009 4:32 pm
User avatarSite AdminJoined: Mon Feb 05, 2007 9:31 pmPosts: 1806Location: brooklyn
that's get triple smiles:

:D :D :D

can't wait to check it out....


Offline Profile
PostPosted: Mon May 18, 2009 6:16 am
Joined: Fri Jun 27, 2008 4:49 amPosts: 453Location: Brooklyn
This is going to be awesome... but right now it isn't working :(

When I follow the instructions on the Google code site, when I get to the "creating a new project" step there's a weird issue.

For some reason the prompts are using some text from the OGRE wizard, but with the OF logo (see attachment).

Also, you write:

Quote:
Add this line in the RegisterWizards() function (i.e. line 66)


But in my config.script file, line 66 is RegisterWizard(type, folder, title, category) rather than RegisterWizards().
Attachments:
ogre-of.png
ogre-of.png [ 7.86 KiB | Viewed 6627 times ]

Offline Profile
PostPosted: Mon May 18, 2009 7:48 am
Joined: Wed Aug 06, 2008 5:53 pmPosts: 158Location: Amsterdam
Ah you're right. I'll fix this today. The reason for the screens you see is that CodeBlocks doesn't show that first page to me anymore.
-snip-
no it's not.. something went wrong when adding the files to te repository.
-snip-

kylemcdonald wrote:
This is going to be awesome... but right now it isn't working :(

When I follow the instructions on the Google code site, when I get to the "creating a new project" step there's a weird issue.

For some reason the prompts are using some text from the OGRE wizard, but with the OF logo (see attachment).

Also, you write:

Quote:
Add this line in the RegisterWizards() function (i.e. line 66)


But in my config.script file, line 66 is RegisterWizard(type, folder, title, category) rather than RegisterWizards().



_________________
http://www.roxlu.com
http://www.openframeworks.info
Offline Profile
PostPosted: Mon May 18, 2009 7:21 pm
Joined: Wed Aug 06, 2008 5:53 pmPosts: 158Location: Amsterdam
Hi kylemcdonald,

I've updated the script. Somehow the wrong script was added to the repository. I've updated the repository with the correct script. Can you test this maybe?

Greetings



_________________
http://www.roxlu.com
http://www.openframeworks.info
Offline Profile
PostPosted: Mon May 18, 2009 7:34 pm
Joined: Fri Jun 27, 2008 4:49 amPosts: 453Location: Brooklyn
Sweet, it works now!

Some requests:

1 Would it be possible to not copy over the .svn folder into the project? It's kind of confusing, and might cause conflicts for people who manage their projects using svn.

2 All of the files are added under the root directory of the project. One of the things that is most annoying about C::B is creating virtual directories and dragging files around one at a time. Would it be possible to create the virtual directories automatically? In the XML, it looks like this:

Code:
<Option virtualFolders="addons\;addons\ofxDirList\;addons\ofxVectorMath" />


Just before the <Build>.

Then, later in the project, instead of saying:

Code:
<Unit filename="..\..\..\addons\ofxDirList\src\ofxDirList.cpp"/>


You say:

Code:
<Unit filename="..\..\..\addons\ofxDirList\src\ofxDirList.cpp"><Option virtualFolder="addons\ofxDirList\" /></Unit>


I don't know how much of this can be automated with the scripting you're doing, but I figured I'd ask :)


Offline Profile
PostPosted: Mon May 18, 2009 8:31 pm
Joined: Wed Aug 06, 2008 5:53 pmPosts: 158Location: Amsterdam
Hi kylemcdonald,

You should use "svn export" instead of "svn checkout". When using "svn export" you won't have the .svn info.

I've been trying to create virtual folders automatically for a couple of hours but I did find a solution for this. I'm not sure if this is even possible. I need to use the API CodeBlocks provides and I couldnt find a method to add files with a virtual folder. I've posted this question on the CodeBlocks forum.


If someone knows how to do this please reply.


I'm also thinking to create another "plugin" which let you add addons after you've created a project.

Roxlu



_________________
http://www.roxlu.com
http://www.openframeworks.info
Offline Profile
PostPosted: Fri May 29, 2009 12:07 pm
User avatarJoined: Tue May 27, 2008 10:03 amPosts: 691Location: London, UK
man this is awesome! just tried it out and works ace. Being a complete noob to codeblocks it made me very happy :P
A question about the addons list, is this hardcoded or is it read from somewhere? I have all of my own addons in a separate folder (/ofw/addons MSA) for SVN reasons (it's a working copy of http://ofxmsaof.googlecode.com/svn/trunk/ - I couldn't figure out a way of keeping all the addons in the same folder and easily committing the whole folder without making a project per addon, which I don't wanna do). So is it possible to configure the template to read the available addons from the addons folder and/or additional folders?


Offline Profile
PostPosted: Fri May 29, 2009 12:38 pm
Joined: Wed Aug 06, 2008 5:53 pmPosts: 158Location: Amsterdam
Hi Memo,

If the path of the addons is at the depth as the other addons it's definitely possible.
The wizard in OF uses a scripting language called squirrel, which is new to mee. It looks nice, though the community is very tiny and I haven't found a XML parser to parse the addons XML install files.

Therefore I hardcoded all the include/links/etc.. information into the script. Some of your addons are currently in my working copy as I'm a big fan of them :> Especially ofxSimpleGuiTOO!

I'll check if I can give you access to the repository so you can edit the script.


Roxlu



_________________
http://www.roxlu.com
http://www.openframeworks.info
Offline Profile
PostPosted: Fri May 29, 2009 4:44 pm
Joined: Fri Jun 27, 2008 4:49 amPosts: 453Location: Brooklyn
By the way Roxlu, I've stopped using virtual folders recently. So I'm 10x more satisfied with this plugin :)


Offline Profile
PostPosted: Sat May 30, 2009 9:05 am
Joined: Wed Aug 06, 2008 5:53 pmPosts: 158Location: Amsterdam
kylemcdonald wrote:
By the way Roxlu, I've stopped using virtual folders recently. So I'm 10x more satisfied with this plugin :)


Nice! I'm thinking to create another plugin which let you add OF addons after you've created a project. It would be also great if one could just download plugins/addons and add those to a project....


Roxlu



_________________
http://www.roxlu.com
http://www.openframeworks.info
Offline Profile
PostPosted: Wed Jun 03, 2009 7:26 pm
Joined: Tue May 26, 2009 12:30 amPosts: 1
am i missing something or there is no downloads of script: http://code.google.com/p/ofcodeblocks/downloads/list ?

ok, sorry i got it


Offline Profile
PostPosted: Thu Jun 04, 2009 12:08 pm
User avatarJoined: Tue May 27, 2008 10:03 amPosts: 691Location: London, UK
Hey, I just tried a release build and it didn't work :( lots of errors:

undefined reference to: 'ofAppGlutWindow::ofAppGlutWindow()'
undefined reference to: 'ofSetupOpenGL(ofAppBaseWindow*, int, int, int)'
undefined reference to: 'ofRunApp(ofBaseApp)'

etc.

in fact undefined reference to everything!!

any ideas what the problem is and how I can fix it? (ideally without starting the project from scratch)


Offline Profile
PostPosted: Thu Jun 04, 2009 12:19 pm
Joined: Fri Jun 27, 2008 4:49 amPosts: 453Location: Brooklyn
Hey Memo, I got this same error. For some reason it isn't importing libs/openframeworks. Go to project->add files recursively and add the folder. It's already in the build path.


Offline Profile

Display posts from previous:  Sort by:

All times are UTC
Page 1 of 3
45 posts
Go to page 1, 2, 3  Next
Users browsing this forum: No registered users and 0 guests
Search for:
Post new topic  Reply to topic
Jump to:  
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
You cannot post attachments in this forum
cron