Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Build on clean ubuntu 9.10

(1/2) > >>

bradr:
I'm trying to build CB on a clean install ubuntu 9.10 vm. Installed all prerequisites, ran bootstrap, configure, make and make install.  All seemed to work but when I run it from ubuntu app menu I get a task tray thing saying "starting code blocks" then it just dissappears.

Where do I start trying to sort this out? (really new to both CB and Linux so probably doing something stupid and any help appreciated)

Brad

Jenna:

--- Quote from: bradr on November 06, 2009, 11:18:44 pm ---Where do I start trying to sort this out? (really new to both CB and Linux so probably doing something stupid and any help appreciated)

--- End quote ---

Open a console window and run codeblocks from the commandline and examine the error message.
It might be that C::B does not find it's libraries.

Did you read this wiki-article: http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29 ?
Especially the last point about troubleshooting ?

bradr:
Excellent, thanks Jens.

I did read that document, except the bit on troubleshooting at the bottom - which is exactly what I was missing, and you were right - bad lib path was the problem.

For anyone who's interested, below is the full set of commands I used to build and get it running - assumes nothing installed except a clean, out of the box Ubuntu 9.10.  I haven't really tested it's all working yet, but certainly fires up and looks like it's all there.

Thanks again,
Brad

sudo apt-get install libgtk2.0-dev libwxgtk2.8-0 libwxgtk2.8-dev wx-common subversion autoconf automake libtool gobjc++
mkdir codeblocks
cd codeblocks
svn checkout svn://svn.berlios.de/codeblocks/trunk
cd trunk
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
./bootstrap
./configure --with-contrib-plugins=all
make
sudo make install
echo /usr/local/lib | sudo tee -a /etc/ld.so.conf
sudo ldconfig
codeblocks

MortenMacFly:
Here it comes:

I tried the same with Ubuntu 9.10 and get the following error:
/home/morten/bin/codeblocks/libcodeblocks.so: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8.2 not defined in file libwx_baseu-2.8.so.0 with link time reference


Huh? I installed wx from Ubuntu and yes, all data path's etc. are correct, even if I start C::B from /home/morten/bin/codeblocks/. And actually I should have wx 2.8.9 reading the Ubuntu package manager. So I have no idea where that "2.8.2" comes from...?! I never had 2.8.2 on Ubuntu?!

C::B devs should fix that ASAP! :lol:

...Jens?! :(

Jenna:

--- Quote from: MortenMacFly on November 09, 2009, 12:09:16 pm ---C::B devs should fix that ASAP! :lol:

...Jens?! :(

--- End quote ---

I just install ubuntu 9.10 on a virtual-system and look into it.

Navigation

[0] Message Index

[#] Next page

Go to full version