News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Build on clean ubuntu 9.10

Started by bradr, November 06, 2009, 11:18:44 PM

Previous topic - Next topic

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)

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?! :(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

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

...Jens?! :(

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

stahta01

#5
What is the oldest version of wxWidgets that can build Code::Blocks?
From http://packages.ubuntu.com/hardy/libwxgtk2.8-0
I am guessing it is based on wxWidgets 2.8.7.

I think some thing newer than that might be required.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Just compiled a fresh svn-checkout on a clean ubuntu 9.10 (no foreign repos) with default wxWdigets (2.8.10) and everything is fine.

The version from my repo does indeed not work and has the "wxSafe..."-relocation error, but it's build on debian and meant to run on debian, if the ubuntu-guys have "fixed" something inside their system, I can't do anything.

I can possibly provide packages for ubuntu also, once I have a faster internet-connection (still ISDN).

I don't know, whether Xaviou or pasgui provide packages for clean 9.10 .

killerbot

just for information : there are a lot of issues with Ubuntu 9.10 (it even made it on slashdot), so everybody be careful ;-)