User forums > Help
Compiling Codeblocks from source (not svn)
hibbity:
The 10.05 packages installed from Ubuntu's repositories (sudo apt-get install codeblocks codeblocks-dev libwxsmith-dev)
or
installed from the "codeblocks-10.05-1-debian-i386.tar.bz2" package available
from http://www.codeblocks.org/downloads/binaries do not exhibit this problem.
Although, why this should be any different than building and installing Codeblocks from source makes me wonder....
hibbity:
Not much has changed. Still looking to resolve this problem. Was unable to find a solution by searching forums.
Motivation this time was to generate detailed debug info, when a custom plugin install resulted in a fail-to-install error message.
running "codeblocks -d" should enable this level of detailed info, but instead it was necessary to change line 473 of app.cpp
from: wxLog::EnableLogging(false);
to: wxLog::EnableLogging(true);
then build codeblocks 10.05 from source, (not from svn), using:
./configure --prefix=/usr --libdir=/usr/lib --with-contrib-plugins=all --enable-pch=no --enable-shared --enable-unicode --with-wxdir=/home/guest/wx/wxWidgets-2.8.12 build=i686-pc-linux-gnu
make && make install
No compile or link errors were observed.
Then running codeblocks:
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading toolbar...
Initializing plugins...
(codeblocks:12922): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12922): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:12922): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12922): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(...repeated many times, presumably the same warning for all plugins...)
Segmentation fault (core dumped)
When running with the debugger, this is added:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb50fbb70 (LWP 13321)]
0x007e1d6c in wxMBConv::FromWChar(char*, unsigned int, wchar_t const*, unsigned int) const ()
from /home/guest/wx/wxWidgets-2.8.12/shared-monolithic/lib/libwx_gtk2u-2.8.so.0
(gdb)
wxWidgets was built with:
../configure --prefix=/usr/lib --build=i686-pc-linux-gnu --enable-unicode --enable-monolithic --enable-xrc
Note: A new runtime error is also introduced. How to fix this too?
Codeblocks error: Unable to open requested HTML document: /usr/share/codeblocks/start_here.zip#start_here.html
Ideas?
hibbity:
Here is the internal error log (codeblocks.xml process context descripton): attached as cb_.txt
oBFusCATed:
Why do you use self-compiled wxGTK?
Why don't you use a package from ubuntu?
Are you use you have only one version of wxGTK installed?
hibbity:
--- Quote from: oBFusCATed on July 04, 2011, 08:18:41 pm ---Why do you use self-compiled wxGTK?
Why don't you use a package from ubuntu?
Are you use you have only one version of wxGTK installed?
--- End quote ---
I like to be able to build different versions. GTK2 for now, possibly windows later.
Currently, I have installed into /usr/lib:
- libwx_gtk2u-2.8.so
- libwx_gtk2ud-2.8.so
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version