Author Topic: no template for new project  (Read 8951 times)

Offline OSSGeek

  • Single posting newcomer
  • *
  • Posts: 4
no template for new project
« on: April 19, 2009, 05:32:05 pm »
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

  • Guest
Re: no template for new project
« Reply #1 on: April 19, 2009, 08:38:56 pm »
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

Offline OSSGeek

  • Single posting newcomer
  • *
  • Posts: 4
Re: no template for new project
« Reply #2 on: April 20, 2009, 05:18:28 am »
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

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"));
}

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: no template for new project
« Reply #3 on: April 20, 2009, 05:53:06 am »
The main cause of the problem for windows C::B users is the Scripted Wizard plugin not being enabled.
Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline OSSGeek

  • Single posting newcomer
  • *
  • Posts: 4
Re: no template for new project
« Reply #4 on: April 20, 2009, 07:14:03 am »
I'm not on windows and still don't know how should I start using codeblocks or these templates to start a new project...

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: no template for new project
« Reply #5 on: April 21, 2009, 12:13:55 am »
I'm not on windows and still don't know how should I start using codeblocks or these templates to start a new project...

Even if you are on linux, make sure that you have not accidently disabled the "Scripted wizard"-plugin.

Offline OSSGeek

  • Single posting newcomer
  • *
  • Posts: 4
Re: no template for new project
« Reply #6 on: April 21, 2009, 08:31:47 am »
how can I enable it, if I disable it accidentally?

Thanks

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: no template for new project
« Reply #7 on: April 24, 2009, 06:18:38 pm »
how can I enable it, if I disable it accidentally?

Thanks

Go to "Plugins -> Manage Plugins" and look if it is enabled or disabled.