Author Topic: Build on clean ubuntu 9.10  (Read 8676 times)

Offline bradr

  • Single posting newcomer
  • *
  • Posts: 3
Build on clean ubuntu 9.10
« on: November 06, 2009, 11:18:44 pm »
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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Build on clean ubuntu 9.10
« Reply #1 on: November 07, 2009, 09:07:14 am »
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 ?

Offline bradr

  • Single posting newcomer
  • *
  • Posts: 3
Re: Build on clean ubuntu 9.10
« Reply #2 on: November 07, 2009, 02:57:29 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Build on clean ubuntu 9.10
« Reply #3 on: November 09, 2009, 12:09:16 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Build on clean ubuntu 9.10
« Reply #4 on: November 09, 2009, 01:39:26 pm »
C::B devs should fix that ASAP! :lol:

...Jens?! :(

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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Build on clean ubuntu 9.10
« Reply #5 on: November 09, 2009, 03:04:50 pm »
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.
« Last Edit: November 09, 2009, 10:50:13 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Build on clean ubuntu 9.10
« Reply #6 on: November 09, 2009, 04:19:30 pm »
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 .

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Build on clean ubuntu 9.10
« Reply #7 on: November 09, 2009, 08:06:37 pm »
just for information : there are a lot of issues with Ubuntu 9.10 (it even made it on slashdot), so everybody be careful ;-)