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
Specifications like the version of the project, operating system, or hardware etc.
EasyHttp Release 2.1.0.
Poco 1.7.9.
Windows 10 x64 on a Dell G3 laptop.
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:
I fixed it by changing my Poco CMake command to this:
But now I have a new issue when I try to build:
What am I doing wrong?
Steps to reproduce
Get a Windows 10 x64 machine.
Install OpenSSL 1.1.1e from Shining Light Productions.
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.
EasyHttp Release 2.1.0.
Poco 1.7.9.
Windows 10 x64 on a Dell G3 laptop.