Getting a sonar.cfamily.build-wrapper-output not found error

Hi,

I’m trying to setup up the evaluation version of sonarqube and sonar-scanner to scan my visual studio c++ projects, and am running into some basic config difficulties.

I’ve managed to generate my build-wrapper.log and build-wrapper-dump.json. The problem is that when I run sonar-scanner I get the message

ERROR: Error during SonarScanner execution
java.lang.UnsupportedOperationException:

The only way to get an accurate analysis of C/C++/Objective-C files is by using the SonarSource build-wrapper and setting the property “sonar.cfamily.build-wrapper-output”, but it was not specified.

I do have a sonar-scanner.properties in the root directory of the project, and it contains

#Configure here general information about the environment, such as SonarQube server connection details for example
#No information about specific project should appear here

#----- Default SonarQube server
sonar.host.url=http://sonar:9000

#----- Default source code encoding
#sonar.sourceEncoding=UTF-8

sonar.projectKey=MyProj
sonar.projectName=MyProj
sonar.projectVersion=1.0
sonar.sources=src
sonar.cfamily.build-wrapper-output=build_wrapper_output_directory
sonar.sourceEncoding=UTF-8

The environment is odd in that the root directory of the project does not contain the solution file, that’s in a subdirectory (mk32).

So, my questions are:
Any idea why it can’t find the buidl-wrapper files?
What should the sonar.sources point to?

-Thanks
-Mark

In another thread I showed my yaml build definition including the sonar properties for a C++ analysis. May it give you some help.

Resolved the first issue, at least. While the documentation says to put the sonar-projects.properties file “at the root of your project” (https://docs.sonarqube.org/latest/analysis/languages/cfamily/), it was actually searched for in C:\Program Files\sonar-scanner-4.5.0.2216-windows\conf.