User forums > Using Code::Blocks
no template for new project
OSSGeek:
Hi,
I've just installed codeblocks on my ubuntu 8.10 but can't see any template when I start a new project...
[attachment deleted by admin]
mariocup:
Hi OSSGeek,
in your codeblocks installation directory share/codeblocks/templates/wizard there should be a lot of directories with wizards. The registered wizards are listed in the config.script file in this directory.
Please check your installation
OSSGeek:
Hi mariocup :)
Anything I should change?
--- Code: ---$ ls -l /usr/share/codeblocks/templates/wizard/
total 132
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 avr
drwxr-xr-x 2 root root 4096 2009-04-18 21:10 c_file
-rw-r--r-- 1 root root 19033 2008-07-24 20:20 common_functions.script
-rw-r--r-- 1 root root 4129 2008-07-24 20:20 config.script
drwxr-xr-x 4 root root 4096 2009-04-18 21:10 console
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 d
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 directx
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 dll
drwxr-xr-x 2 root root 4096 2009-04-18 21:10 empty
drwxr-xr-x 2 root root 4096 2009-04-18 21:10 empty_file
drwxr-xr-x 4 root root 4096 2009-04-18 21:10 fltk
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 glfw
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 glut
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 gtk
drwxr-xr-x 2 root root 4096 2009-04-18 21:10 h_file
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 irrlicht
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 lf
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 ogre
drwxr-xr-x 4 root root 4096 2009-04-18 21:10 opengl
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 plugins
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 qt4
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 sdl
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 sharedlib
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 smartwin
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 staticlib
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 sys
drwxr-xr-x 3 root root 4096 2009-04-18 21:10 win32gui
drwxr-xr-x 7 root root 4096 2009-04-18 21:10 wxwidgets
--- End code ---
--- Code: ---$ cat /usr/share/codeblocks/templates/wizard/config.script
/*
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
* http://www.gnu.org/licenses/gpl-3.0.html
*
* $Revision$
* $Id$
* $HeadURL$
*/
//
// Main wizards configuration script.
// Here, we register all the available wizards.
//
function RegisterWizards()
{
//
// project wizards
//
RegisterWizard(wizProject, _T("empty"), _T("Empty project"), _T("Console"));
RegisterWizard(wizProject, _T("console"), _T("Console application"), _T("Console"));
RegisterWizard(wizProject, _T("d"), _T("D application"), _T("D language"));
if (PLATFORM == PLATFORM_MSW)
{
RegisterWizard(wizProject, _T("directx"), _T("Direct/X project"), _T("2D/3D Graphics"));
RegisterWizard(wizProject, _T("dll"), _T("Dynamic Link Library"), _T("Console"));
RegisterWizard(wizProject, _T("sys"), _T("Kernel Mode Driver"), _T("Native"));
}
RegisterWizard(wizProject, _T("fltk"), _T("FLTK project"), _T("GUI"));
RegisterWizard(wizProject, _T("glfw"), _T("GLFW project"), _T("2D/3D Graphics"));
RegisterWizard(wizProject, _T("glut"), _T("GLUT project"), _T("2D/3D Graphics"));
RegisterWizard(wizProject, _T("gtk"), _T("GTK+ project"), _T("GUI"));
RegisterWizard(wizProject, _T("irrlicht"), _T("Irrlicht project"), _T("2D/3D Graphics"));
RegisterWizard(wizProject, _T("lf"), _T("Lightfeather project"), _T("2D/3D Graphics"));
RegisterWizard(wizProject, _T("opengl"), _T("OpenGL project"), _T("2D/3D Graphics"));
RegisterWizard(wizProject, _T("ogre"), _T("Ogre project"), _T("2D/3D Graphics"));
RegisterWizard(wizProject, _T("plugins"), _T("Code::Blocks plugin"), _T("Code::Blocks"));
RegisterWizard(wizProject, _T("qt4"), _T("QT4 project"), _T("GUI"));
RegisterWizard(wizProject, _T("sdl"), _T("SDL project"), _T("2D/3D Graphics"));
if (PLATFORM == PLATFORM_MSW)
RegisterWizard(wizProject, _T("smartwin"), _T("SmartWin project"), _T("GUI"));
RegisterWizard(wizProject, _T("staticlib"), _T("Static library"), _T("Console"));
RegisterWizard(wizProject, _T("sharedlib"), _T("Shared library"), _T("Console"));
RegisterWizard(wizProject, _T("avr"), _T("AVR Project"), _T("Console"));
if (PLATFORM == PLATFORM_MSW)
RegisterWizard(wizProject, _T("win32gui"), _T("Win32 GUI project"), _T("GUI"));
RegisterWizard(wizProject, _T("wxwidgets"), _T("wxWidgets project"), _T("GUI"));
//
// build target wizards
//
RegisterWizard(wizTarget, _T("console"), _T("Console"), _T("Console"));
RegisterWizard(wizTarget, _T("staticlib"), _T("Static library"), _T("Console"));
if (PLATFORM == PLATFORM_MSW)
RegisterWizard(wizTarget, _T("dll"), _T("Dynamic Link Library"), _T("Console"));
RegisterWizard(wizTarget, _T("wxwidgets"), _T("wxWidgets"), _T("GUI"));
//
// file wizards
//
RegisterWizard(wizFiles, _T("empty_file"), _T("Empty file"), _T("C/C++"));
RegisterWizard(wizFiles, _T("c_file"), _T("C/C++ source"), _T("C/C++"));
RegisterWizard(wizFiles, _T("h_file"), _T("C/C++ header"), _T("C/C++"));
}
function RegisterWizard(type, folder, title, category)
{
// syntax:
// AddWizard(type, title, category, script, template_png, wizard_png, xrc)
Wizard.AddWizard(type,
title,
category,
folder + _T("/wizard.script"),
folder + _T("/logo.png"),
folder + _T("/wizard.png"),
folder + _T("/wizard.xrc"));
}
--- End code ---
stahta01:
The main cause of the problem for windows C::B users is the Scripted Wizard plugin not being enabled.
Tim S
OSSGeek:
I'm not on windows and still don't know how should I start using codeblocks or these templates to start a new project...
Navigation
[0] Message Index
[#] Next page
Go to full version