Build wrapper issue for C project


Need help on static code analysis (C- project) using SonarQube.

Our requirement is, we need to analyze the static code for .C and .h files using SonarQube.

As part of setup and process, we run the SonarQube successfully and trying to build the build wrapper using below command for the project(C-project).

build-wrapper-win-x86-64.exe --out-dir build_wrapper_output_directory MSBuild.exe /t:Rebuild

We got error (The system cannot find the file specified.)


  1. Is it require to build the source code for run the sonarqube?

  2. Is there any way to scan the sonarqube Without compiling the source code?

Thanks in Advance.

Hello @dineshrao,

Welcome to the community!



You are doing it wrong. you should pass to the build wrapper the command that you usually use to build the project. How do you usually build your project?


Hi Abbas,
Thank you for the reply.
Our project is developed in Linux environment using Make.
And sonarQube installed/configured in Windows 10 machine and trying to Build Wrapper using above mentioned build wrapper command.

is it correct process what we are doing?

Do we need to configure SonarQube in Linux Environment?
Do we need to build wrapper using " ```
build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory make clean all"
After this we need to run sonar-scanner right?

My understanding is correct?

Thanks in Advance…


You need to build and scan your project on the same host. so if you are doing your scan on windows, you should build your project using build-wrapper on windows.

So if you build your project on Linux with “make” you should run build-wrapper with “make clean all” as you mentioned and you should do the scan on Linux on the same machine.

I hope it is clear now,