User forums > Using Code::Blocks
Code::Blocks doesn't compile on Ubuntu Linux with wx 2.5
Funto:
Pfiou, the IDE isn't stable yet...
The Qt and wxWidgets templates didn't work, but I managed to creating a simple console project. However, if I let the code completion plug-in activated, when I write "std::" the IDE crashes :'(
I decided to remove this plug-in, but now the caret is not visible anymore (in fact it is visible only at some moments...)
Cray-Z:
--- Quote from: Funto on July 27, 2005, 03:20:35 am ---I know somebody else who is trying to compile with Mandriva/wxGTK 2.4 ANSi and he gets the same errors ^^
This confirms that the Makefile.unix is not up to date in my opinion ^^
--- End quote ---
Hi there!
First off, congratz for such a good C++ IDE ^^ Code::Blocks could become my main IDE if i succeed in compiling it under Linux. As Funto already mentioned, i use wxGtk 2.4 and Mandriva 2005.
Till now, i've never been able to log in CB's forum (i never received any activation email, even by explicitly asking it again). But for some reason, i am able to log in now ^^
However, both revised makefiles proposed here (knue's and mandrav's one) still dont work for me :(
The errors i get are:
--- Code: ---Linking executable devel/codeblocks.exe...
/usr/local/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_detach'
/usr/local/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_attach'
/usr/local/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make: *** [devel/codeblocks.exe] Erreur 1
--- End code ---
Maybe it's a minor problem, but i'm afraid i can't find what the problem is by myself :(
Hopefully, someone already encountered it. Thx in advance :)
knue:
There is a problem with GTK because some names changed.
Some distros build wx with an old GTK version.
see
http://wiki.codeblocks.org/index.php/Compiling_Code::Blocks_in_Linux_(applies_to_all_distros)
for more details
You will also find some infos for patching this
Edit:
However: Codeblocks for linux is -- in my opinion -- pretty unstable and not worth using (too many probls, too many crashes, too many bugs). I had same probls as Funtu (and many more). I am looking forward towards a stable version.
Cray-Z:
--- Quote ---Patching wxGTK
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully.
--- End quote ---
I had read the tutorial before trying to install CB so I checked my GTK version (which is 2.6.4). As a consequence, I didn't apply this patch. However, it seems that _gtk_accel_group_detach and _gtk_rc_context_get_default_font_name are concerned by the patch. Is using Mandriva the reason that gtk 2.6.4 has to be patched ? (while tut only mentioned 2.4.x)
Thx for the help Knue ^^ i guess i have to wait to have CB works on Linux :(
Funto:
knue >> not "Funtu", "Funto" ^^
I use the default GTK+ 2.6.4 in Ubuntu and compile well...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version