Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qtsdk-error
QtWS25 Last Chance

Qtsdk-error

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    a.roy
    wrote on last edited by
    #1

    I'm new in qt development environment. I'm running Ubuntu in Vmware Player and installed QTCreator with 2 compiler one qtsdk-2009.03 for intel processor and the other for ARM.
    I've configured QT Versions for these two compilers. But unfortunately while compiling a simple program of Qt4 Console Application (test2.pro) its gives an build error :

    code:
    @
    #include <QtCore/QCoreApplication>
    int main(int argc, char *argv[])
    {
    QCoreApplication a(argc, argv);
    return a.exec();
    }
    @
    Error:
    @
    make:Entering directory `/home/user/test2'
    g++ -WI,-rpath./opt/qtsdk-2009.03/qt/lib -o test2 main.o -L/opt/qtsdk-2009.03/qt/lib -IQtCore -L/opt/qtsdk -2009.03/qt/lib -lm -pthread -lgthread-2.0 -ldl -lpthread
    /usr/bin/Id: cannot find -lgthread-2.0
    collect2:Id returned 1 exit status
    @
    I've explored all types of settings but unable to short it out.

    Thanks for an advice in advance

    [edit] code tags added, koahnig

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Looks like you are missing some dependencies. The easiest way to get all of them installed is most likely to just install the Qt4 development packages provided by ubuntu. Those install fine next to the SDK and should pull in everything that Qt will need.

      The package is most likely called something along the lines of "libqt4-dev" (Sorry, I am not on ubuntu).

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Or even just the build deps:
        @
        sudo apt-get build-dep libqt4-dev
        @

        (Z(:^

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved