Results 1 to 2 of 2

Thread: QtSingleApplication, QtService and Qt5

  1. #1
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default QtSingleApplication, QtService and Qt5

    Hello. I am using QtSingleApplication and QtService from QtSolutions in my applications. They work fine with Qt4, but I can't build them against Qt5:
    Qt Code:
    1. yarko@ubuntu:/qt/qt-solutions/qtsingleapplication$ qmake
    2. WARNING: Include file /qt/qt-solutions/qtsingleapplication/config.pri not found
    3. yarko@ubuntu:/qt/qt-solutions/qtsingleapplication$ make
    4. cd examples/ && ( test -f Makefile || /qt/qt-5.0.0-x64/5.0.0/gcc_64/bin/qmake /qt/qt-solutions/qtsingleapplication/examples/examples.pro -o Makefile ) && make -f Makefile
    5. make[1]: Entering directory `/qt/qt-solutions/qtsingleapplication/examples'
    6. cd trivial/ && ( test -f Makefile || /qt/qt-5.0.0-x64/5.0.0/gcc_64/bin/qmake /qt/qt-solutions/qtsingleapplication/examples/trivial/trivial.pro -o Makefile ) && make -f Makefile
    7. WARNING: Include file /qt/qt-solutions/qtsingleapplication/config.pri not found
    8. make[2]: Entering directory `/qt/qt-solutions/qtsingleapplication/examples/trivial'
    9. g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../qt-5.0.0-x64/5.0.0/gcc_64/mkspecs/linux-g++-64 -I. -I../../src -I../../../../qt-5.0.0-x64/5.0.0/gcc_64/include -I../../../../qt-5.0.0-x64/5.0.0/gcc_64/include/QtNetwork -I../../../../qt-5.0.0-x64/5.0.0/gcc_64/include/QtGui -I../../../../qt-5.0.0-x64/5.0.0/gcc_64/include/QtCore -I. -o qtsingleapplication.o ../../src/qtsingleapplication.cpp
    10. In file included from ../../src/qtsingleapplication.cpp:42:0:
    11. ../../src/qtsingleapplication.h:44:30: fatal error: QtGui/QApplication: No such file or directory
    12. compilation terminated.
    To copy to clipboard, switch view to plain text mode 

    I'm running Ubuntu 12.04.1 LTS x64, Qt5 x64 is installed.

    I've searched over the web and it seems like those classes use some deprecated functionality and should be replaced. Is there a way to use QtSolutions along with Qt5? Or are there new superseding classes in Qt5 framework?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtSingleApplication, QtService and Qt5

    Get rid of "QtGui/" from the include line. Also make sure your project file contains a QT+=widgets line.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Problem building QtSingleApplication
    By skuallpa in forum Installation and Deployment
    Replies: 0
    Last Post: 28th April 2010, 15:20
  2. QtSingleApplication in Windows with release mode
    By Auryn in forum Qt Programming
    Replies: 2
    Last Post: 28th October 2009, 11:36
  3. Replies: 10
    Last Post: 11th June 2007, 09:18
  4. QtSingleApplication and Qr 4.2.1
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 23rd October 2006, 10:41
  5. QtSingleApplication
    By mule in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 19:21

Tags for this Thread

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.