PDA

View Full Version : Code::Blocks



Jason2gs
March 2nd, 2008, 07:52 AM
I everyone :)

So I was here:

http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_bu ild_on_Ubuntu

I got down to the part where it wanted me to go to the Nightly Build forum and download the current release.

I went there, clicked on the thread for the right release, followed the link for my processor and distribution of Linux, but I couldn't find the right download link.

I went here:

http://www.codeblocks.org/

Went down to Downloads, then Binaries, and downloaded codeblocks_8.02-0ubuntu1.deb.tar.gz from Sourceforge.

So far, so good.

I unzipped the tar file, and in it I found seven .deb files.

As the first page said, I ran sudo dpkg -i *.deb to install it.

Yay! It installed :D

But, then I tried to install another package. The package wouldn't install, and apt-get threw me:


You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libcodeblocks0: Depends: libwxgtk2.8-0 (>= 2.8.7) but 2.8.4.0-0ubuntu3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Running "sudo apt-get -f install" tells me:


The following packages will be REMOVED:
codeblocks codeblocks-contrib codeblocks-dbg codeblocks-dev libcodeblocks0 libwxsmithlib0 libwxsmithlib0-dev
0 upgraded, 0 newly installed, 7 to remove and 58 not upgraded.
7 not fully installed or removed.

And running "sudo apt-get install libwxgtk2.8-0" only says that libwxgtk2.8-0 is already at it's newest version.

And now I'm here. Asking for help on one of two things:

1) Force apt-get to ignore any unmet dependencies.

2) Make whatever piece of software that isn't recognizing libwxgtk2.8-0, recognize it.

If someone lend their cybernetic hand, I would be very please :)

Thanks for reading,

-Mike

Quikee
March 2nd, 2008, 09:17 AM
If you look closely you see that libcodeblocks0 depends on libwxgtk2.8-0 version greater of equal to 2.8.7, but you have 2.8.4.0-0ubuntu3.

Anyway.. you can try code::blocks from ths repository:


deb http://lgp203.free.fr/ubuntu/ gutsy universe

To add the repository go to synaptic > settings > repositories > third-party software > add.. and paste the above line

Jason2gs
March 2nd, 2008, 04:07 PM
Well, I saw that, but I had no way to fix it, either. I couldn't find the 2.8.4.0-0ubuntu3 package.

I added that to the repository, but I don't know which package(s) to install. I try to mark codeblocks for installation but it gives me the same error message about libwxgtk2.8-0.

Jason2gs
March 2nd, 2008, 09:15 PM
Bump.

dynamethod
March 2nd, 2008, 09:19 PM
No, you need the dev packages of libwxgtk2.8-0, so try sudo apt-get install libwxgtk2.8-0-dev or just use synaptic to search for it, but if you get any problems usually its because you dont have the dev packages for whatever

And why not make it easier on yourself, use this link to get the .deb packages: http://downloads.sourceforge.net/codeblocks/codeblocks_8.02-0ubuntu1.deb.tar.gz
untar, then install the .deb packages, if it whines that you need a dependency it will be one of the debs in that tar (dont be a hero, just use the gui.. double click those debs..)

NOTE 2: The Ubuntu packages have been linked against wxGTK-2.8.7, which is not available in the default Ubuntu repositories.To successfully install these packages, you have to add the wxWidgets repository for Ubuntu in your /etc/apt/sources.list (e.g. deb http://apt.wxwidgets.org/ gutsy-wx main).

so do wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -

sudo apt-get update
sudo apt-get upgrade

Jason2gs
March 2nd, 2008, 09:30 PM
Thank you :)

Unfortunately, there's no libwxgtk2.8-0-dev package.

There's a libwxgtk2.8-dev package, but it's already installed.

What I need to do is force a different version of libwxgtk2.8-0 to install. It's just that, in Synaptic, "Package -> Force Version" is grayed out. Why is this?

dynamethod
March 2nd, 2008, 09:36 PM
Thank you :)

Unfortunately, there's no libwxgtk2.8-0-dev package.

There's a libwxgtk2.8-dev package, but it's already installed.

What I need to do is force a different version of libwxgtk2.8-0 to install. It's just that, in Synaptic, "Package -> Force Version" is grayed out. Why is this?

look at my post above closely here:

NOTE 2: The Ubuntu packages have been linked against wxGTK-2.8.7, which is not available in the default Ubuntu repositories.To successfully install these packages, you have to add the wxWidgets repository for Ubuntu in your /etc/apt/sources.list (e.g. deb http://apt.wxwidgets.org/ gutsy-wx main).

so do wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -

sudo apt-get update
sudo apt-get upgrade

Jason2gs
March 2nd, 2008, 09:50 PM
Thank you :)

I already said in the first post that I had downloaded the .deb files.

I followed what the tutorial said and installed them using sudo dpkg -i *.deb

Also, when I open them in the GUI, there's not one of them that doesn't have an unmet dependency.

I'm running sudo apt-get upgrade right now. Let's hope it works! Restarting now.

dynamethod
March 2nd, 2008, 09:56 PM
edit nvm

Jason2gs
March 2nd, 2008, 10:14 PM
Restarted.

*Sigh*

libwxgtk2.8-0 is still 4.8.4.0-0ubuntu3 :(

Even after sudo apt-get install libwxgtk2.8-0.

dynamethod
March 2nd, 2008, 10:18 PM
Can you please confirm for me that you added:

deb http://apt.wxwidgets.org/ gutsy-wx main

to your sources list AND wget the key

thanks

Jason2gs
March 2nd, 2008, 10:27 PM
I copied-and-pasted the command you gave me.

How can I make sure it took effect?

And thank you for helping me :)

dynamethod
March 2nd, 2008, 10:30 PM
ok open up terminal then type this in:

gksu gedit /etc/apt/sources.list

gedit will then open up and you will have some text inside, scroll to the bottom of the text file and type this in (or copy and paste it):

deb http://apt.wxwidgets.org/ gutsy-wx main

then click on "save"

now close gedit,

now in terminal type this in (or copy and paste it in):

wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -

it should say something like "done" or "Ok" or "key added" something like that anyway

THEN do this:

sudo apt-get update
sudo apt-get upgrade

Jason2gs
March 2nd, 2008, 10:39 PM
Oh thank God!


mike@Juankubariz:/$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

See that? No errors :) All thanks to you!

dynamethod
March 2nd, 2008, 10:41 PM
Glad to help, enjoy

I noticed the 9 not upgraded, can you please open up terminal and type this in:

sudo apt-get upgrade

thanks

Jason2gs
March 2nd, 2008, 10:49 PM
Kay.


The following packages have been kept back:
kaffeine libxine1 libxine1-console libxine1-ffmpeg libxine1-gnome
libxine1-misc-plugins libxine1-plugins libxine1-x ntfs-3g
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

dynamethod
March 2nd, 2008, 10:50 PM
Ah well, no biggie, as long as it works :popcorn:

Jason2gs
March 2nd, 2008, 10:57 PM
Exactly ;)

melopsittacus
March 3rd, 2008, 10:10 PM
Hi, I installed Code::Blocks with the above mentioned process. I noticed however that it said the Code::Blocks packages could not be authenticated (although I did add the signatures file as described). Anyone else noticed this?

dynamethod
March 3rd, 2008, 10:17 PM
Hi there,

Can you please post step by step exactly what you have done to try to install codeblocks, such as where you got and what you got for the packages, did you get the source or the binary?, step by step, if you could also post output from the terminal within code tags that would help to.

intel
March 4th, 2008, 12:14 PM
there's no reason not to use a full featureD iDE like
eclipse CDT instead.

Jason2gs
March 4th, 2008, 06:58 PM
there's no reason not to use a full featureD iDE like
eclipse CDT instead.

Code::Blocks is a full featured IDE?

dynamethod
March 5th, 2008, 12:48 AM
yes codeblocks has alot of features, probably more than you'll ever need to use, you can try eclipse if you like, but i think it comes down to more personal preference.

Jeisson
March 5th, 2008, 01:14 AM
Code::Blocks is a full featured IDE?

Code::Blocks is developed using the cross-platform wxWidgets (http://www.wxwidgets.org/) library, so it is cross-platform also, and it is one of the best IDE for developing applications for several architectures in C++ with the quoted library, because you use real wx controls while you are programming. Of course, there are lots of advantages more to talk about this IDE.

An easy way to install the lastest CVS version is taking advantage of the Jens nighty builds (http://jens.lody.name/debian/)...

Best regards ;)

luke.is.very.handsome
April 11th, 2008, 02:17 AM
So i did this



wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -

then i went in to synaptic and added


deb http://apt.wxwidgets.org/ gutsy-wx main

then i ran the <Reload> button on the spm and then clicked <Mark All Upgrades>.

Amazingly, it listed the stuff that code::blocks still needed, aside from me having the repository for codeblocks in my synaptic as well ( some french written site has it, google search for it ), i installed it all through synaptic and those two repository keys you have to run before the repository will work.

Thanks for the help out on this.

drdos2006
April 11th, 2008, 10:59 PM
Here is how I did it.

http://ubuntuforums.org/showthread.php?t=750323

regards

pasgui
April 22nd, 2008, 12:45 PM
hi,

try this command:

sudo update-alternatives --config wx-config

regards, pasgui

Ferrat
April 26th, 2008, 08:50 PM
As of Hardy (at least 64bit) code::blocks installs just fine from what I can see?