Author Topic: problem with "new from template", nothing is available  (Read 6285 times)

Offline johnnymopo

  • Single posting newcomer
  • *
  • Posts: 4
problem with "new from template", nothing is available
« on: January 17, 2010, 09:44:45 pm »
hello, sorry if this is simple.  I just installed code::blocks on ubuntu 9.10, and I tried to create a new project.  a "new from template" window appears with a list to the left, but as I select project or any of the others....nothing is availble, the center window is blank.  Any help, thankyou

end of output from make:

prefix.cpp: In function ‘char* br_extract_dir(const char*)’:
prefix.cpp:396: error: invalid conversion from ‘const char*’ to ‘char*’
prefix.cpp: In function ‘char* br_extract_prefix(const char*)’:
prefix.cpp:432: error: invalid conversion from ‘const char*’ to ‘char*’
make[3]: *** [prefix.o] Error 1
make[3]: Leaving directory `/home/john/codeblk/codeblocks-8.02/src/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/john/codeblk/codeblocks-8.02/src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/john/codeblk/codeblocks-8.02/src'
make: *** [all-recursive] Error 1


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: problem with "new from template", nothing is available
« Reply #1 on: January 17, 2010, 10:29:28 pm »
What's your problem ?

Did you try to compile C::B yourself, because the templates are not available in your installation ?
Or why did you put the make-fragment here ?
And if you did this, which version of the soucres do you use ?

And please search the forum (and/or the web), because the second issue is known with older sources.

Offline johnnymopo

  • Single posting newcomer
  • *
  • Posts: 4
Re: problem with "new from template", nothing is available
« Reply #2 on: January 17, 2010, 11:29:38 pm »
I'm really new to linux... I thought I would add that fragment as it was the only discernable thing I could fine.

My problem is that when i go to make a new project, there is no options available under project, or any other.  I would assume that at the very least I could select a console application, but nothing is there.  thanks

Offline johnnymopo

  • Single posting newcomer
  • *
  • Posts: 4

Offline TerryP

  • Multiple posting newcomer
  • *
  • Posts: 26
    • My journal
Just Another Computer Geek

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: problem with "new from template", nothing is available
« Reply #5 on: January 18, 2010, 06:50:59 am »
Don't use the source of the 8.02-release or you have to patch it, otherwise you get the error you added above.
You can use svn or (e.g.) a tar-ball from my server.

The easiest way would be to use the packages provided by ubuntu (since 9.10).

And please say clearly what you did before you got the problem.

I still don't know, whether you try to use a self-compiled C::B or a binary package and when exactly the error occurs.

Offline johnnymopo

  • Single posting newcomer
  • *
  • Posts: 4
Re: problem with "new from template", nothing is available
« Reply #6 on: January 19, 2010, 02:27:36 am »
 :D thanks, got it all sorted out.  I had no experience with the wxWidgets and I didn't have the right one I believe, installed when I tried to install the binaries.  So I then attempted to build it myself, with the results above.  I then looked around a little more and must have got the right widget thing, and I was able to get the tar balled version to work and it works fine.  Thanks for the quick replies, I am looking forward to using CODE::BLOCKS!
i used:
sudo apt-get install build-essential gdb libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx2.8-doc wx-common
« Last Edit: January 19, 2010, 02:30:45 am by johnnymopo »

Offline SenseiC

  • Single posting newcomer
  • *
  • Posts: 9
Re: problem with "new from template", nothing is available
« Reply #7 on: March 17, 2010, 08:26:17 pm »
Well I have the same basic issue... Fedora12 x64, have used "yum install wxGTK*" to install wxWidgets (2.8.10-7.fc12)

Used the documented: svn checkout svn://svn.berlios.de/codeblocks/trunk

to get the Code::Blocks code

and as root from the trunk folder:

./configure --with-contrib-plugins=all --enable-static  --enable-source-formatter --enable-autosave  --enable-class-wizard  --enable-code-completion  --enable-compiler --enable-debugger --enable-mime-handler  --enable-open-files-list --enable-projects-importer  --enable-scripted-wizard  --enable-todo --enable-pch

(used those choices based on another forum post related to this same issue which implied the key is the --enable-scripted-wizard)

Then: make
Then: make install

but the templates still fail to appear:


[attachment deleted by admin]
« Last Edit: March 17, 2010, 09:25:04 pm by SenseiC »