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

I got this error during build #37

Open
note8g2018 opened this issue Feb 14, 2020 · 10 comments
Open

I got this error during build #37

note8g2018 opened this issue Feb 14, 2020 · 10 comments

Comments

@note8g2018
Copy link

I got this error during build:

Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Boost (missing: system filesystem) (found suitable version
  "1.72.0", minimum required is "1.60")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.16/Modules/FindBoost.cmake:2179 (find_package_handle_standard_args)
  CMakeLists.txt:45 (find_package)


Configuring incomplete, errors occurred!
See also "C:/Users/GL553VD/source/repos/feather/feather/build/CMakeFiles/CMakeOutput.log".

even I installed boost_1_72_0

@qicosmos
Copy link
Owner

this is the msvc project file: https://github.com/qicosmos/feather/blob/master/feather.vcxproj
just open it with msvc.
the cmakelists.txt is only for linux.

@note8g2018
Copy link
Author

I try but get this error

11

@note8g2018
Copy link
Author

note8g2018 commented Feb 15, 2020

1>------ Build started: Project: feather, Configuration: Debug Win32 ------
1>main.cpp
1>Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:
1>- add -D_WIN32_WINNT=0x0601 to the compiler command line; or
1>- add _WIN32_WINNT=0x0601 to your project's Preprocessor Definitions.
1>Assuming _WIN32_WINNT=0x0601 (i.e. Windows 7 target).
1>C:\Users\GL553VD\source\repos\feather2\feather\cinatra\include\cinatra\utils.hpp(270,16): warning C4018: '<': signed/unsigned mismatch
1>C:\Users\GL553VD\source\repos\feather2\feather\cinatra\include\cinatra\session.hpp(68,22): warning C4244: '=': conversion from 'time_t' to 'size_t', possible loss of data
1>C:\Users\GL553VD\source\repos\feather2\feather\cinatra\include\cinatra\session_manager.hpp(45,32): warning C4244: 'argument': conversion from 'time_t' to 'size_t', possible loss of data
1>C:\Users\GL553VD\source\repos\feather2\feather\cinatra\include\cinatra\request.hpp(72,23): warning C4244: 'argument': conversion from '__int64' to 'size_t', possible loss of data
1>C:\Users\GL553VD\source\repos\feather2\feather\ormpp\mysql.hpp(499,45): error C2065: 'MYSQL_BIND': undeclared identifier
1>C:\Users\GL553VD\source\repos\feather2\feather\ormpp\mysql.hpp(499,38): error C2923: 'std::vector': 'MYSQL_BIND' is not a valid template type argument for parameter '_Ty'
1>C:\Users\GL553VD\source\repos\feather2\feather\ormpp\mysql.hpp(499,3): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>Done building project "feather.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

@qicosmos
Copy link
Owner

https://github.com/qicosmos/feather/blob/master/README.en.md
look at this document.

install one of the three connector.

@note8g2018
Copy link
Author

I do not need any connector. I just care about websocket

@qicosmos
Copy link
Owner

you could use cinatra directly.

@note8g2018
Copy link
Author

I got this error also in cinatra:

>------ Build All started: Project: cinatra, Configuration: x64-Debug ------
  [1/2] C:\PROGRA~2\MICROS~4\2019\ENTERP~1\VC\Tools\MSVC\1424~1.283\bin\HostX64\x64\cl.exe  /nologo /TP -DASIO_STANDALONE  /DWIN32 /D_WINDOWS /W3 /GR /EHsc /std:c++latest /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cinatra_example.dir\main.cpp.obj /FdCMakeFiles\cinatra_example.dir\ /FS -c ..\..\..\main.cpp
  FAILED: CMakeFiles/cinatra_example.dir/main.cpp.obj 
  C:\PROGRA~2\MICROS~4\2019\ENTERP~1\VC\Tools\MSVC\1424~1.283\bin\HostX64\x64\cl.exe  /nologo /TP -DASIO_STANDALONE  /DWIN32 /D_WINDOWS /W3 /GR /EHsc /std:c++latest /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cinatra_example.dir\main.cpp.obj /FdCMakeFiles\cinatra_example.dir\ /FS -c ..\..\..\main.cpp
C:\Users\GL553VD\source\repos\cinatra\include\cinatra\use_asio.hpp(6): fatal error C1083: Cannot open include file: 'asio.hpp': No such file or directory
  ninja: build stopped: subcommand failed.

Build All failed.

@qicosmos
Copy link
Owner

just like feather, use msvc project please, cmakelists is just for linux

@note8g2018
Copy link
Author

there is no msvc project in cinatra

@qicosmos
Copy link
Owner

https://github.com/qicosmos/cinatra/blob/master/example/example.vcxproj
and document is here: https://github.com/qicosmos/cinatra/tree/master/lang/english

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