Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Qtsdk-error

    Installation and Deployment
    3
    3
    1136
    Loading More Posts
    • 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
      a.roy last edited by

      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 Reply Quote 0
      • T
        tobias.hunger last edited by

        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 Reply Quote 0
        • sierdzio
          sierdzio Moderators last edited by

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

          (Z(:^

          1 Reply Last reply Reply Quote 0
          • First post
            Last post