Can't find any -lQt5* libraries



  • 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?



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



  • Hi,

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.