Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't find any -lQt5* libraries
Forum Updated to NodeBB v4.3 + New Features

Can't find any -lQt5* libraries

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rw3iss
    wrote on last edited by
    #1

    Hiyas,

    Trying to compile a project, and I get the following list of errors:

    :-1: error: cannot find -lQt5Svg
    :-1: error: cannot find -lQt5Gui
    :-1: error: cannot find -lQt5Core
    :-1: error: cannot find -lQt5Widgets
    :-1: error: cannot find -lQt5Xml
    :-1: error: cannot find -lQt5Network
    :-1: error: cannot find -lQt5WebKitWidgets
    :-1: error: cannot find -lQt5WebKit
    :-1: error: cannot find -lQt5V8
    :-1: error: cannot find -lQt5XmlPatterns
    :-1: error: cannot find -lQt5PrintSupport
    :-1: error: cannot find -lQt5Quick
    :-1: error: cannot find -lQt5Qml
    collect2.exe:-1: error: error: ld returned 1 exit status

    I am on a Windows 64-bit PC, running Qt Creator 5.2. I am in debug mode, and am using the MinGW compiler.

    My computer's PATH variable includes the Qt /bin directory:
    C:\Qt\Tools\mingw48_32\bin;C:\Qt\Tools\mingw48_32\lib;C:\Qt\5.2.0\mingw48_32\bin;C:\Qt\Tools\QtCreator\bin;C:\Program Files (x86)\CMake 2.8\bin

    And the C:\Qt\Tools\mingw48_32\bin includes such files as Qt5Cored.dll, Qt5Guid.dll, Qt5Svgd.dll, Qt5Xmld.dll, and I think all of the rest in the error list.

    I'm running Cmake with the following arguments:
    -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_TOOLCHAIN_FILE=build/mingw32.mingw.cmake -DCMAKE_INSTALL_PREFIX=../win32install

    And here is the output for 'Run Cmake':
    CMake Warning (dev) in CMakeLists.txt:
    Policy CMP0020 is not set: Automatically link Qt executables to qtmain
    target on Windows. Run "cmake --help-policy CMP0020" for policy details.
    Use the cmake_policy command to set the policy and suppress this warning.
    This warning is for project developers. Use -Wno-dev to suppress it.

    CMake Warning (dev) in CMakeLists.txt:
    Policy CMP0020 is not set: Automatically link Qt executables to qtmain
    target on Windows. Run "cmake --help-policy CMP0020" for policy details.
    Use the cmake_policy command to set the policy and suppress this warning.
    This warning is for project developers. Use -Wno-dev to suppress it.
    CMake Warning (dev) in CMakeLists.txt:
    Policy CMP0020 is not set: Automatically link Qt executables to qtmain
    target on Windows. Run "cmake --help-policy CMP0020" for policy details.
    Use the cmake_policy command to set the policy and suppress this warning.
    This warning is for project developers. Use -Wno-dev to suppress it.

    CMake Warning (dev) in CMakeLists.txt:
    Policy CMP0020 is not set: Automatically link Qt executables to qtmain
    target on Windows. Run "cmake --help-policy CMP0020" for policy details.
    Use the cmake_policy command to set the policy and suppress this warning.
    This warning is for project developers. Use -Wno-dev to suppress it.

    Disabling ALSA support due to OS X or MINGW build.
    Doxygen not found-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
    -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
    -- precompiled header generation
    -- No precompiled header
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/rw3iss/Sites/build-MuseScore-master-Desktop-Default

    I also tried adding 'QT += core' to the mscore.pro file, which is contained in a directory 'build.qtc' underneath the main source directory. I don't know if this .pro file is even being used. How can I tell?

    Why can't it find the Qt libraries?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rw3iss
      wrote on last edited by
      #2

      Does anyone have ANY idea how to solve this?
      Would be much appreciated.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        desideroali
        wrote on last edited by
        #3

        Hi,

        Having the same problem on the same OS and version. Any ideas?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved