Results 1 to 12 of 12

Thread: error: QtConcurrent: No such file or directory

  1. #1
    Join Date
    Jun 2009
    Posts
    5

    Unhappy error: QtConcurrent: No such file or directory

    Hi.

    I have the qt 4.5.2.
    I have included QtConcurrent (with #include <QtConcurrent>).
    When I try to compile, I have this error:
    [...]: error: QtConcurrent: No such file or directory

    Why?

    Thanks

    Bye

  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: error: QtConcurrent: No such file or directory

    Do you use qmake?
    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.


  3. #3
    Join Date
    Jun 2009
    Posts
    5

    Default Re: error: QtConcurrent: No such file or directory

    Yes, I do.

  4. #4
    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: error: QtConcurrent: No such file or directory

    What's in your qmake project file?
    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.


  5. #5
    Join Date
    Jun 2009
    Posts
    5

    Default Re: error: QtConcurrent: No such file or directory

    CONFIG += exceptions
    TEMPLATE = app
    TARGET =
    DEPENDPATH += .
    INCLUDEPATH += .

    # Input
    HEADERS += [...]
    FORMS += [...]
    SOURCES += [...]

  6. #6
    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: error: QtConcurrent: No such file or directory

    Do you have a "QtConcurrent" file in your includes?
    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.


  7. #7
    Join Date
    Jun 2009
    Posts
    5

    Default Re: error: QtConcurrent: No such file or directory

    Yes, I do.

    Quote Originally Posted by MpMp View Post
    I have included QtConcurrent (with #include <QtConcurrent>).

  8. #8
    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: error: QtConcurrent: No such file or directory

    Could you prepare a minimal compilable project (.pro, .cpp, .h) reproducing the problem? Also how did you install Qt? How do you compile your project?

    BTW. I was asking if you actually have the file on your disk, not if you have an include statement in your project.
    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.


  9. #9
    Join Date
    Jun 2009
    Posts
    5

    Default Re: error: QtConcurrent: No such file or directory

    This example works.


    I changed my code and now I have this error:
    [...]fileslist.cpp:163: error: no matching function for call to ‘mapped(QString&, <unresolved overloaded function type>)’

    This is the row:
    imageScaling->setFuture(QtConcurrent::mapped(path, scale));

  10. #10
    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: error: QtConcurrent: No such file or directory

    Please provide a minimal (almost compilable) example reproducing the problem.
    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.


  11. #11
    Join Date
    Sep 2008
    Posts
    18
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error: QtConcurrent: No such file or directory

    At least on my system (Debian with Qt 4.4.3) there is no QtConcurrent header, there are these: QtConcurrentFilter, QtConcurrentMap, QtConcurrentRun.

    Doing #include <QtConcurrentMap> should get you the QtConcurrent::mapped function.

  12. #12
    Join Date
    Feb 2018
    Posts
    1

    Default Re: error: QtConcurrent: No such file or directory

    I face the same error. I changed it to #include <QtConcurrent/QtConcurrent>. The problem is solved.

Similar Threads

  1. QtGui/QApplication: No such file or directory
    By codeslicer in forum Qt Programming
    Replies: 4
    Last Post: 9th December 2011, 16:29
  2. some questions about install qwt
    By dycjiaoda in forum Qwt
    Replies: 1
    Last Post: 8th February 2011, 02:37
  3. How to handle: QtCore/qconfig.h: No such file or directory ?
    By owen_263 in forum Installation and Deployment
    Replies: 2
    Last Post: 7th April 2008, 10:54
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 11:04

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.