Code::Blocks Forums
User forums => Help => Topic started by: johnnymopo 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
-
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.
-
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
-
I followed the steps out line here: http://tuxarena.blogspot.com/2009/01/how-to-compile-and-install-codeblocks.html
-
You might find this more appropriate Johnny: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu
-
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.
-
: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
-
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]