Author Topic: Cannot build after moving to ubuntu 9.10  (Read 5571 times)

Offline cecilio

  • Multiple posting newcomer
  • *
  • Posts: 17
Cannot build after moving to ubuntu 9.10
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Cannot build after moving to ubuntu 9.10
« Reply #1 on: January 05, 2010, 10:03:27 pm »
Do you have the -dev packages of the lib you try to link?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline cecilio

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Cannot build after moving to ubuntu 9.10
« Reply #2 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Cannot build after moving to ubuntu 9.10
« Reply #3 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline cecilio

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Cannot build after moving to ubuntu 9.10
« Reply #4 on: January 06, 2010, 02:25:59 pm »
Thanks. I installed libgtk-dev and that solved the problem.

Thank you.
Cecilio