sprinfall / webcc

Lightweight C++ HTTP client and server library based on Asio for embedding purpose.
GNU Lesser General Public License v3.0
270 stars 61 forks source link

Windows Compile #27

Closed MyraBaba closed 2 years ago

MyraBaba commented 2 years ago

Hi,

I am trying to compile on the windows 10 .

compiled boost 1.74.0 and then try to :

cmake -G"MinGW Makefiles" ..

gives error.

CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Boost (missing: system date_time) (found version "1.74.0") Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.21/Modules/FindBoost.cmake:2360 (find_package_handle_standard_args) CMakeLists.txt:68 (find_package)

Boost is at C:\boost_1_74_0\

I used before cmake. : set Boost_ROOT=C:\boost_1_74_0\

compiled boost as

`b2.exe --with-system --with-date_time --with-filesystem variant=debug variant=release link=static threading=multi address-model=64 stage

best `

MyraBaba commented 2 years ago

new error for windows 10.

I linked boost manually.

C:/Qt/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/fstream:667:4: error: no matching function for call to 'std::basic_ifstream::open(const value_type*, std::ios_base::openmode&)' { open(__s.c_str(), __mode); }

MyraBaba commented 2 years ago

it could be a good idea to release a webc static dll to use windows10 32 & 64 bit :)

sprinfall commented 2 years ago

Sorry, I never tried MinGW on Windows. So I can't help you right now.

MyraBaba commented 2 years ago

Hi,

I compiled with VS 2019 successfully.