Skip to content

QHTTPEngine #27

Open
Open

Description

@hexabyte23

Hi,

Get this error when try to compile with latest QT 5.11.2 version for MacOS

CMake Error at CMakeLists.txt:24 (find_package):
By not providing "FindQt5Network.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Network", but CMake did not find one.

Could not find a package configuration file provided by "Qt5Network"
(requested version 5.4) with any of the following names:

Qt5NetworkConfig.cmake
qt5network-config.cmake

Add the installation prefix of "Qt5Network" to CMAKE_PREFIX_PATH or set
"Qt5Network_DIR" to a directory containing one of the above files. If
"Qt5Network" provides a separate development package or SDK, be sure it has
been installed.

Configuring incomplete, errors occurred!
See also "/var/folders/j8/x3mrsj2j76528rhcqqr1kk_h0000gn/T/QtCreator-pRhbmk/qtc-cmake-mauFIuZX/CMakeFiles/CMakeOutput.log".
CMake Project parsing failed.

Activity

  1. jiakuan commented on Mar 19, 2019

    @jiakuan

    As mentioned in the message, you will need to specify the location of Qt5NetworkConfig.cmake :

    Something like this should work:

    cd ${QHTTPENGINE_SRC_DIR}/build
    cmake .. -DQt5Network_DIR=${QT_BIN_DIR}/../lib/cmake/Qt5Network/ -DCMAKE_INSTALL_PREFIX=[your_install_dir]
    make
    make install
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions