Open cppqtdev opened 1 year ago
@artur00231 Ok , Thanks
@artur00231 I Configured the Example code and also generated successfully .
But when I build the project using visual studio 2019 , it showing error in header files I am new in CMake , I don't have much idea about CMake
can you provide me steps for compilation and build release
The Error I got :
Build started...
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>1>Checking Build System
2>------ Build started: Project: sqlite3, Configuration: Debug x64 ------
3>------ Build started: Project: SQLiteCpp_cpplint, Configuration: Debug x64 ------
2>Building Custom Rule C:/Users/ADMIN/Desktop/WebAuthon/webauthn/Example/build/_deps/sqlitecpp-src/sqlite3/CMakeLists.txt
2>sqlite3.c
2>sqlite3.vcxproj -> C:\Users\ADMIN\Desktop\WebAuthon\webauthn\Example\build_deps\sqlitecpp-build\sqlite3\Debug\sqlite3.lib
4>------ Build started: Project: SQLiteCpp, Configuration: Debug x64 ------
4>Building Custom Rule C:/Users/ADMIN/Desktop/WebAuthon/webauthn/Example/build/_deps/sqlitecpp-src/CMakeLists.txt
4>Backup.cpp
3>Building Custom Rule C:/Users/ADMIN/Desktop/WebAuthon/webauthn/Example/build/_deps/sqlitecpp-src/CMakeLists.txt
4>Column.cpp
4>Database.cpp
4>Exception.cpp
4>Statement.cpp
4>Transaction.cpp
4>Generating Code...
4>SQLiteCpp.vcxproj -> C:\Users\ADMIN\Desktop\WebAuthon\webauthn\Example\build_deps\sqlitecpp-build\Debug\SQLiteCpp.lib
5>------ Build started: Project: Example, Configuration: Debug x64 ------
5>Building Custom Rule C:/Users/ADMIN/Desktop/WebAuthon/webauthn/Example/CMakeLists.txt
5>Client.cpp
5>The contents of
Hi, here are steps to build this project
Git: git clone https://github.com/artur00231/webauthn.git cd webauthn
git submodule update --init --recursive
From command line (I'm using vcpkg): mkdir build cmake -S . -B build -DBUILD_EXAMPLE=Yes -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake cmake --build build
Or from Visual Studio: Open directory (webauthn) with Visual Studio Right click on CMakeLists.txt -> CMake Settings for Webauthn Add -DBUILD_EXAMPLE=Yes to CMake command arguments Right click on CMakeLists.txt -> Delete Cache and Reconfigure Right click on CMakeLists.txt -> Build
I’m using VS 2022 Preview and this project is using features from c++23, so you should check if you will VS 2019 already supports this version of standard.
Hi, I just updated CMakeLists.txt, and now this project compiles on Windows and Linux. Check cmake log, because you will need some external libraries (OpenSSL needs to be version 3.X.X).
If you still have issues, try posting cmake or compiler log. Then it will be easier to help you.