Results 1 to 5 of 5

Thread: cannot find -lgobject-2.0 error while building app in qt creator

  1. #1
    Join Date
    Feb 2010
    Posts
    61
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question cannot find -lgobject-2.0 error while building app in qt creator

    HI i am getting the following error while building a sample app .

    /usr/bin/ld:cannot find -lgobject-2.0
    wht might be the issue?
    Wht packages shuld be installed.

    Thankz in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: cannot find -lgobject-2.0 error while building app in qt creator

    For the library, at least the correct glib version.
    For using the headers, I guess the dev package (or how this is called on a normal distro)

    The library should be installed in the common path for libraries (distro takes care of that).

  3. #3
    Join Date
    Feb 2010
    Posts
    61
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: cannot find -lgobject-2.0 error while building app in qt creator

    i installed glib2-devel.., other libs.
    now i am getting an compile error
    cannot find -lSM
    .

    when i googled regarding issue, i came across a weird solution:

    rename the lib to lib2(example) folder in qt and build the app.you wil get some complie issues.
    again rename back to (lib) folder in qt .
    build app .. surprise compile errors were gone and i can run my app..

    Could any one explain me above issue?
    I dont think this is the solution.
    i have installed a qt bin package:qt-sdk-linux-x86-opensource-2009.04.1.bin

    Could also please tell me wht libs required for my compile error.

    Thnkz in advance.

  4. #4
    Join Date
    Feb 2010
    Posts
    61
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re:Weird solution:

    installed glib2-devel.., other libs.
    now i am getting an compile error
    cannot find -lSM

    when i googled regarding issue, i came across a weird solution:

    rename the lib to lib2(example) folder in qt and build the app.you wil get some complie issues.
    again rename back to (lib) folder in qt .
    build app .. surprise compile errors were gone and i can run my app..

    Could any one explain me above issue?
    I dont think this is the solution.
    i have installed a qt bin package:qt-sdk-linux-x86-opensource-2009.04.1.bin

    Could also please tell me wht libs required for my compile error.

    Thnkz in advance.

  5. #5
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Weird solution:

    Did you install libsm-dev (or something similary named like that)?

Similar Threads

  1. Qt Creator Qt Creator run error, cannot find -lpsapi.a
    By kyh23_y in forum Qt Tools
    Replies: 1
    Last Post: 6th September 2010, 22:46
  2. Qt Creator Qt Creator run error, cannot find -lpsapi.a
    By kyh23_y in forum Qt Tools
    Replies: 0
    Last Post: 4th September 2010, 16:52
  3. Replies: 1
    Last Post: 30th July 2010, 01:41
  4. Replies: 1
    Last Post: 23rd February 2010, 00:01
  5. Building Qt creator from gitorious main branch
    By eurodatar in forum Installation and Deployment
    Replies: 2
    Last Post: 8th September 2009, 14:20

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.