Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: cecilio on January 05, 2010, 08:56:34 pm

Title: Cannot build after moving to ubuntu 9.10
Post by: cecilio on January 05, 2010, 08:56:34 pm
I'm trying to compile and build an app. using wxWidgets. The app. compiled and linked ok in 8.04 and 9.04 but after moving to 9.10 I no longer can build. I get the following error:
Code
Linking executable: ../../z_gtk_debug/lenmus
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
1 errors, 1 warnings

I have uninstalled and reínstalled C::B but the error continues. Any help please? my knowledge of linux is minimal!

Cecilio
Title: Re: Cannot build after moving to ubuntu 9.10
Post by: oBFusCATed on January 05, 2010, 10:03:27 pm
Do you have the -dev packages of the lib you try to link?
Title: Re: Cannot build after moving to ubuntu 9.10
Post by: cecilio on January 05, 2010, 10:37:48 pm
Thanks for answering.

Do you have the -dev packages of the lib you try to link?

Sorry, but my knowledge of Linux is minimal. I don't understand what you said "the -dev packages of the lib". :shock: How can I check if I have 'that'?

I'm not trying explicitly to link to that library. I'm assuming it is required by something unknown to me, wxWidgets or any other thing. :(

I've been using CodeBlock to build my app. for three years and never had this problem! It is something related to moving to 9.10. I upgraded two days ago and since them I'm having this problem!

Thank you
Title: Re: Cannot build after moving to ubuntu 9.10
Post by: oBFusCATed on January 05, 2010, 11:34:35 pm
You need wxgtk-dev, wxwidgets-dev or something like that, I'm not an ubuntu user.
Please learn how to install things on you linux distro, there is plenty of info on the net.
Title: Re: Cannot build after moving to ubuntu 9.10
Post by: cecilio on January 06, 2010, 02:25:59 pm
Thanks. I installed libgtk-dev and that solved the problem.

Thank you.
Cecilio