Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QHTTPEngine #27

Open
hexabyte23 opened this issue Sep 22, 2018 · 1 comment
Open

QHTTPEngine #27

hexabyte23 opened this issue Sep 22, 2018 · 1 comment

Comments

@hexabyte23
Copy link

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.

@jiakuan
Copy link

jiakuan commented Mar 19, 2019

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants