qhttpengine icon indicating copy to clipboard operation
qhttpengine copied to clipboard

QHTTPEngine

Open hexabyte23 opened this issue 7 years ago • 1 comments

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.

hexabyte23 avatar Sep 22 '18 16:09 hexabyte23

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

jiakuan avatar Mar 19 '19 07:03 jiakuan