Results 1 to 12 of 12

Thread: Problem compiling qt5-related software

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2017
    Posts
    6
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Problem compiling qt5-related software

    Hello!!

    I am sure this have came up earlier but I have yet to find a resolution for it.

    I have come across a problem to upgrade my gentoo system because of this; I dont think this is gentoo-specific, since very similar errors occur on many systems aparrently, however the difference is the paths in quotation-marks after:"The imported target "Qt5::Core" references the file" differ only for which I can see.

    I have heard that double-slashes is not the issue, however there is something missing and I don't know what.
    For sure I can submit the whole log, however I thought that perhaps someone recognises this very problem
    I just don't understand what it's looking fore here:

    Qt Code:
    1. ...
    2. -- Using system-installed ZLIB
    3. -- Found LibRHash: /usr/lib64/librhash.so
    4. -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
    5. -- Found CURL: /usr/lib64/libcurl.so (found version "7.55.1")
    6. -- Found EXPAT: /usr/lib64/libexpat.so (found version "2.2.1")
    7. -- Found LibArchive: /usr/lib64/libarchive.so (found suitable version "3.3.1", minimum required is "3.0.0")
    8. -- Looking for cbreak in /usr/lib64/libncurses.so
    9. -- Looking for cbreak in /usr/lib64/libncurses.so - found
    10. -- Looking for elf.h
    11. -- Looking for elf.h - found
    12. CMake Error at /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):
    13. The imported target "Qt5::Core" references the file
    14.  
    15. "/usr/lib64/qt5//mkspecs//usr/lib64/qt5/mkspecs/linux-g++"
    16.  
    17. but this file does not exist. Possible reasons include:
    18.  
    19. * The file was deleted, renamed, or moved to another location.
    20.  
    21. * An install or uninstall procedure did not complete successfully.
    22.  
    23. * The installation package was faulty and contained
    24.  
    25. "/usr/lib64/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"
    26.  
    27. but not all the files it references.
    28.  
    29. Call Stack (most recent call first):
    30. /usr/lib64/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:50 (_qt5_Core_check_file_exists)
    31. /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake:158 (include)
    32. /usr/lib64/cmake/Qt5Gui/Qt5GuiConfig.cmake:99 (find_package)
    33. /usr/lib64/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:99 (find_package)
    34. Source/QtDialog/CMakeLists.txt:9 (find_package)
    35. ...
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,328
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem compiling qt5-related software

    Seems like line 15 is garbled - it contains the first part of the path twice. Look at line 27 of your file Qt5CoreConfig.cmake to see if there is an indication of what might cause the error.

    Is this error occurring in a CMake generate step, or later?
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Nov 2017
    Posts
    6
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Problem compiling qt5-related software

    Yes, the line 27 only indicates the case of a FATAL ERROR in case the ${file} does not fulfil, and I don't understand what file that is, in case that is the actual problem?

    fatal_error.jpg

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,328
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem compiling qt5-related software

    I think you need to post the CMakelists.txt for the top level project, as well as the command line you are running when this error occurs. It looks to me like an environment or CMake variable that tells it where to look for Qt components is set incorrectly.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Singal and Slot related simple problem!!!
    By eklavay_tonoy in forum Newbie
    Replies: 3
    Last Post: 29th September 2015, 17:49
  2. CSS Related Problem
    By GabrielGray in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2011, 05:19
  3. Multi-thread related problem,help me
    By mendynew in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2008, 03:02
  4. Problem related exiting the thread
    By raghvendramisra in forum Qt Programming
    Replies: 1
    Last Post: 16th July 2008, 10:10
  5. Problem related to porting from QT3 to QT4 in list items
    By rohitjun in forum Qt Programming
    Replies: 5
    Last Post: 1st June 2007, 09:05

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
  •  
Qt is a trademark of The Qt Company.