I am trying to analyze a project on Linux using PVS-Studio. I have added the necessary disclaimers to the top of all source files as described here: https://www.viva64.com/en/b/0457/#ID16F8E8F09A (How to use PVS-Studio for Free)
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
When I try to build my project I see the following error:
--- snip ---
-- Configuring done
-- Generating done
-- Build files have been written to: /home/david/code/build/test
[ 11%] Analyzing with PVS-Studio
Using tracing file: compile_commands.json
Error: License was not entered. Please enter a valid PVS-Studio license or request a trial license at https://www.viva64.com/en/pvs-studio-download/#trial_form
make[2]: *** [CMakeFiles/pvs.dir/build.make:69: PVS-Studio.log.pvs.analyzer.raw] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/pvs.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
--- snip ---
CMakeLists.txt contains the following PVS-Studio specific commands:
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include($ENV{HOME}/code/repo/other/pvs-studio-cmake-examples/PVS-Studio.cmake)
pvs_studio_add_target(TARGET ALL COMPILE_COMMANDS OUTPUT FORMAT errorfile)
The project builds perfectly fine if the above PVS-Studio specific commands are commented out/disabled.
According to the article linked above I should not require a license file.