Closed AlexanderBarnt closed 4 weeks ago
disabling cpplint in cmake with -SQLITECPP_RUN_CPPLINT=OFF
should fix this issue
disabling cpplint in cmake with
-SQLITECPP_RUN_CPPLINT=OFF
should fix this issue487 should fix this for end users by default, you can check a similar issue here #452 (comment)
Thank you very much, the building was almost successful, only got 1 error:
Build started at 2:52 PM...
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_cppcheck, Configuration: Debug x64 ------
2>Building Custom Rule X:/SQLiteCpp/3.3.2/SQLiteCpp-3.3.2/sqlite3/CMakeLists.txt
2>sqlite3.c
2> Creating library X:/SQLiteCpp/3.3.2/SQLiteCpp-3.3.2/BUILD/sqlite3/Debug/sqlite3.lib and object X:/SQLiteCpp/3.3.2/SQLiteCpp-3.3.2/BUILD/sqlite3/Debug/sqlite3.exp
3>cppcheck: Failed to load library configuration file 'std.cfg'. File not found
3>Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled with FILESDIR set to "R:/winlibs64ucrt_stage/inst_cppcheck-2.14.0/share/Cppcheck" and will therefore search for std.cfg in R:/winlibs64ucrt_stage/inst_cppcheck-2.14.0/share/Cppcheck/cfg.
2>sqlite3.vcxproj -> X:\SQLiteCpp\3.3.2\SQLiteCpp-3.3.2\BUILD\bin\Debug\sqlite3.dll
3>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'X:\SQLiteCpp\3.3.2\SQLiteCpp-3.3.2\BUILD\CMakeFiles\681c181c72f8a6061dc1a1ef17a91c93\SQLiteCpp_cppcheck.rule;X:\SQLiteCpp\3.3.2\SQLiteCpp-3.3.2\CMakeLists.txt' exited with code 1.
3>Done building project "SQLiteCpp_cppcheck.vcxproj" -- FAILED.
4>------ Build started: Project: SQLiteCpp, Configuration: Debug x64 ------
4>Building Custom Rule X:/SQLiteCpp/3.3.2/SQLiteCpp-3.3.2/CMakeLists.txt
4>Backup.cpp
4>Column.cpp
4>Database.cpp
4>Exception.cpp
4>Savepoint.cpp
4>Statement.cpp
4>Transaction.cpp
4>Generating Code...
4> Creating library X:/SQLiteCpp/3.3.2/SQLiteCpp-3.3.2/BUILD/Debug/SQLiteCpp.lib and object X:/SQLiteCpp/3.3.2/SQLiteCpp-3.3.2/BUILD/Debug/SQLiteCpp.exp
4>SQLiteCpp.vcxproj -> X:\SQLiteCpp\3.3.2\SQLiteCpp-3.3.2\BUILD\bin\Debug\SQLiteCpp.dll
5>------ Build started: Project: SQLiteCpp_example1, Configuration: Debug x64 ------
5>Building Custom Rule X:/SQLiteCpp/3.3.2/SQLiteCpp-3.3.2/CMakeLists.txt
5>main.cpp
5>SQLiteCpp_example1.vcxproj -> X:\SQLiteCpp\3.3.2\SQLiteCpp-3.3.2\BUILD\bin\Debug\SQLiteCpp_example1.exe
6>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
6>Building Custom Rule X:/SQLiteCpp/3.3.2/SQLiteCpp-3.3.2/CMakeLists.txt
========== Build: 5 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 2:52 PM and took 10.086 seconds ==========
Should I ignore it?
almost forgot, you should disable cppcheck too:
-DSQLITECPP_RUN_CPPCHECK=OFF
Thank you very much, everything went fine.
SQLiteCpp version: 3.3.2 CMAKE GUI version: 3.30.0 MSVC: 2022, Version 17.9.7
Unable to build it with cmake GUI + MSVC 2022.
CMAKE output:
it was able to generate the solution files for VS but when i try to compile i got:
I do have python in my PATH env variable, Perl, and the Sqlite's source code is in SQLiteCpp-3.3.2\sqlite3