User forums > Using Code::Blocks

Code::Blocks doesn't compile on Ubuntu Linux with wx 2.5

<< < (9/13) > >>

Ceniza:
Ok, now it's my turn trying to compile Code::Blocks under Linux.

Right now I'm trying to compile wxWidgets 2.6.1 with GTK+ 2.6.8. configure --help won't list --disable-unicode but it works. --enable-unicode=no is supposed to work too.

The difference is that I'm compiling it under Knoppix 3.2 (using unstable).

I hope I get this working so I can test the help plugin under Linux and work on it.

Ceniza:
It compiled without any problems but in runtime wxDockIt is causing them. The IDE cannot even start because of Segmentation Faults.

If it was, at least, a bug in the IDE...

I would like to know if somebody got to run Code::Blocks CVS HEAD under Linux.

I checked wxDockIt CVS but they haven't really worked recently on it and the source file triggering the bug hasn't been touched for 2 months.

Just in case, the backtrace looks like this:


--- Code: ---0x4034d85b in wxWindowBase::AdjustForParentClientOrigin ()
   from /usr/local/lib/libwx_gtk2-2.6.so.0
(gdb) bt
#0  0x4034d85b in wxWindowBase::AdjustForParentClientOrigin ()
   from /usr/local/lib/libwx_gtk2-2.6.so.0
#1  0x40267114 in wxWindow::DoSetSize ()
   from /usr/local/lib/libwx_gtk2-2.6.so.0
#2  0x08075967 in wxWindowBase::SetSize (this=0x81e04e0, x=-20, y=-8,
    width=17, height=16, sizeFlags=3) at window.h:220
#3  0x0807e441 in wxPaneBase::UpdateLayout (this=0x81df540, cxWidth=0,
    cyHeight=0) at src/wxDockit/src/generic/pane.cpp:222
#4  0x0807ddd5 in wxPaneBase::UpdateSize (this=0x81df540)
    at src/wxDockit/src/generic/pane.cpp:131
#5  0x0807dcab in wxPaneBase::ShowHeader (this=0x81df540, state=false)
    at src/wxDockit/src/generic/pane.cpp:92
#6  0x0806503b in MainFrame::CreateIDE (this=0x81fb398) at src/main.cpp:426
#7  0x08064078 in MainFrame (this=0x81fb398, parent=0x0) at src/main.cpp:362
#8  0x0805ca6d in CodeBlocksApp::InitFrame (this=0x80b6698) at src/app.cpp:175
#9  0x0805cee5 in CodeBlocksApp::OnInit (this=0x80b6698) at src/app.cpp:248
#10 0x0805f41a in wxAppConsole::CallOnInit (this=0x80b6698) at app.h:87
#11 0x401bc957 in wxEntry () from /usr/local/lib/libwx_gtk2-2.6.so.0
#12 0x0805c167 in main (argc=1, argv=0xbffffc94) at src/app.cpp:297
--- End code ---

Funto:
On my Ubuntu system C::B works fine (well, always, there are crashes some times, when we open a Win32 C::B project for example, or Gtk-WARNINGs when we close the IDE), compiled from the source on the site and with wx 2.4.

I thinked since RC1 wxDockIt hasn't been used anymore...

Ceniza:

--- Quote from: Funto ---I thinked since RC1 wxDockIt hasn't been used anymore...
--- End quote ---

wxDockIt is being used in HEAD and isn't in VERSION_1_0, that's why it doesn't come in the source on this site.

This is what I used to build Code::Blocks:

* GTK+ 2.6.8 (debian package @ apt-get)
* GCC 3.4.5 20050706 prerelease (debian package @ apt-get)
* wxWidgets 2.6.1 (compiled with ../configure --with-gtk=2 --enable-monolithic --disable-unicode --enable-shared)
* Code::Blocks latest CVS from HEAD

It seems like I'll have to try with VERSION_1_0.

Funto:
I don't understand...shouldn't HEAD be more recent than VERSION_1_0? Why is wxDockit still present in HEAD?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version