Results 1 to 2 of 2

Thread: QTest dir not included by qmake

  1. #1
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTest dir not included by qmake

    Hi,

    I would like to use the QTest class, but qmake doesnt include the QTest header directory as u can see below

    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.2.2/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtNetwork -I/usr/local/Trolltech/Qt-4.2.2/include/QtNetwork -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include -I. -I. -o mainwindow.o mainwindow.cpp

    my *.pro file:

    HEADERS = mainwindow.h \
    mdichild.h \
    ttscp.h
    SOURCES = main.cpp \
    mainwindow.cpp \
    mdichild.cpp \
    ttscp.cpp
    RESOURCES = phoenix.qrc
    QT += network thread
    # install
    target.path = $$[QT_INSTALL_EXAMPLES]/mainwindows/mdi
    sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS phoenix.pro images
    sources.path = $$[QT_INSTALL_EXAMPLES]/mainwindows/mdi
    INSTALLS += target sources

    Please, what I have to add to *.pro file to include the QTest dir?
    Thanks a lot.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTest dir not included by qmake

    To add proper include paths and to link against the QtTest module, add this line to your qmake .pro file:
    CONFIG += qtestlib
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    allstar (20th June 2007)

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  3. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.