Qtsdk-error



  • 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


  • Moderators

    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).


  • Moderators

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.