Repository navigation
Open
Description
Brief overview
I tried to build EasyHttp on Windows using the wiki guide. It worked for EasyHttp 1.0.0, but not for 2.0.0 or 2.1.0.
First I was getting this error:
CMake Error at C:/repo/poco/NetSSL_Win/cmake/PocoNetSSLWinConfig.cmake:5 (include):
include could not find load file:
C:/repo/poco/NetSSL_Win/cmake/PocoNetSSLWinTargets.cmake
I fixed it by changing my Poco CMake command to this:
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_NETSSL_WIN=ON ../
But now I have a new issue when I try to build:
C:\repo\easyhttpcpp\_build>cmake -DCMAKE_PREFIX_PATH="C:/repo/poco/_build" ..
-- Configuring done
CMake Warning:
Value of CMAKE_CXX_FLAGS_DEBUG contained a newline; truncating
CMake Warning:
Value of CMAKE_CXX_FLAGS_MINSIZEREL contained a newline; truncating
CMake Warning:
Value of CMAKE_CXX_FLAGS_RELEASE contained a newline; truncating
CMake Warning:
Value of CMAKE_CXX_FLAGS_RELWITHDEBINFO contained a newline; truncating
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::NetSSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::SSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::NetSSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::SSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::NetSSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::SSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::NetSSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::SSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::NetSSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "Poco::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::SSL" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:105 (add_library):
Target "easyhttp" links to target "OpenSSL::Crypto" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
C:\repo\easyhttpcpp\_build>
What am I doing wrong?
Steps to reproduce
-
Get a Windows 10 x64 machine.
-
Check out release 2.1.0.
-
Follow wiki guide.
-
(Optional) Get rid of first error by replacing poco cmake command with
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_NETSSL_WIN=ON ../.
Specifications like the version of the project, operating system, or hardware etc.
Poco 1.7.9.
Windows 10 x64 on a Dell G3 laptop.
Metadata
Metadata
Assignees
Labels
No labels
Activity
shekharhimanshu commentedon Mar 24, 2020
Hi @serg06
I am sorry for not updating the Wiki after 2.x.x release.
For building EasyHttp 2.x.x on Windows, here are the steps (will update Wiki once this issue is fixed):
When installing Poco, please make sure to use the following settings (especially note this part
-DENABLE_NET=ON -DENABLE_NETSSL=OFF -DENABLE_NETSSL_WIN=ON -DENABLE_CRYPTO=OFF)Please change
%PATH_TO_INSTALL_FOLDER%Please change
%PATH_TO_INSTALL_FOLDER%Let me know if this works.
serg06 commentedon Mar 25, 2020
Hi @shekharhimanshu, thanks for the reply.
I tried building Poco 1.7.9 and EasyHttpCpp 2.1.0 with those commands. All the Poco steps worked perfectly, but the EasyHttpCpp cmake step failed.
Here's the command, with
%PATH_TO_INSTALL_FOLDER%replaced with the same value as I used in the Poco cmake command:And the error:
shekharhimanshu commentedon Mar 27, 2020
My bad. Sorry about that.
We need
googletestfor testing purposes.In step 2, kindly turn off tests,
-DENABLE_TESTS=ON->-DENABLE_TESTS=OFF.Please change
%PATH_TO_INSTALL_FOLDER%If you wish to build EasyHttp tests as well, please install GoogleTest as well.
Let me know if this works.