Results 1 to 3 of 3

Thread: QtCreator problem with linking

  1. #1
    Join Date
    Oct 2005
    Location
    Queensland, Australia
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    QtCreator problem with linking

    Hi, I want to include 'libjpeg' in the link, but can't see a way of doing this in the QtCreator IDE. There doesn't seem to be a way of linking in other libraries. If someone can tell me how to do it I'd be very grateful.
    Cheers, Mike

  2. #2
    Join Date
    Nov 2005
    Beans
    33

    Re: QtCreator problem with linking

    You have to edit your qmake project's .pro file manually. I don't think Qt Creator lets you do this from the gui.

    Have a look [here]. It also may be worthwhile to look at the bit about pkg-config in the previous section.


    I believe, in your case, you can get away with just adding this line to your .pro file:
    Code:
    LIBS += -ljpeg

  3. #3
    Join Date
    Oct 2005
    Location
    Queensland, Australia
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: QtCreator problem with linking

    Thanks a lot haTem, you are exactly right. I'm duly very grateful for your advice. It seems odd that the creators of QtCreator didn't include some method of doing this. Maybe they will at some later stage??? I did search through the docs quite a bit but obviously never found the bit that you pointed out to me. I think tabs would be nice to have too.
    Thanks again. Mike

Tags for this Thread

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
  •