Results 1 to 6 of 6

Thread: include gtk wrong?

  1. #1
    Join Date
    Feb 2007
    Beans
    281

    Question include gtk wrong?

    I have aquired code that makes use of gtk... the code askes for the gtk header as <gtk/gtk.h> which geany said was wrong... and after investigation, set it to <gtk-2.0/gtk/gtk.h> which seems to be right... however the gtk.h points to all of it's gtk... 'stuff' as <gtk/ *etc* >... which as I said seems to be wrong. I figure I'm messing up pretty badly somewhere along the lines, can anyone tell me what I'm doing wrong?

    For the record, I am trying to compile Word War VI.

    Sorry if my information isn't very helpful... I'm not used to headers causing me problems.

  2. #2
    WW is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Oct 2004
    Beans
    1,532

    Re: include gtk wrong?

    I've never used geany, but it sounds like geany is "wrong". You should be able to tell geany that you want to add the option -I/usr/include/gtk-2.0 to the compiler command. This looks relevant.

  3. #3
    Join Date
    Aug 2007
    Location
    127.0.0.1
    Beans
    1,800
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: include gtk wrong?

    "Just in terms of allocation of time resources, religion is not very efficient. There's a lot more I could be doing on a Sunday morning."
    -Bill Gates

  4. #4
    Join Date
    Feb 2007
    Beans
    281

    Re: include gtk wrong?

    Oh... duh.

  5. #5
    Join Date
    Feb 2007
    Beans
    281

    Re: include gtk wrong?

    Ok, maybe not so 'duh' but still a major oversight on my part. Regardless, I cannot manage to figure out what I should be using... -lgtk doesn't seem to work, and my attempts at modifying the command to make it right are also wrong. Can+~'s link, therefore, doesn't seem to help. Does anyone else know anything?

  6. #6
    WW is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Oct 2004
    Beans
    1,532

    Re: include gtk wrong?

    I still think the problem is getting geany configured correctly. To be sure that you have gtk+ installed, try compiling and running the simple example here. You can use geany to create the file base.c, but use the command shown in the web page in a terminal to compile the program. You might first have to install pkg-config, e.g.
    $ sudo apt-get install pkg-config
    If that works, then your installation of gtk+ is fine. For help with geany, you could try their mailing list; see the link on the geany web page.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •