Cant build C++ code with build-wrapper

cant build my C,C++ code base with build wrapper command: here is my command to build the code:

build-wrapper-linux-x86-64 --out-dir . make clean all

here is the output logs:
LicenseManager.cpp: In member function ‘bool LicenseManager::getRemainingAnalyticUnits(int&) const’:
LicenseManager.cpp:2432:11: error: ‘scoped_ptr’ is not a member of ‘boost’
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~~
LicenseManager.cpp:2432:11: note: suggested alternative: ‘shared_ptr’
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~~
shared_ptr
LicenseManager.cpp:2432:39: error: expected primary-expression before ‘>’ token
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^
LicenseManager.cpp:2432:41: error: ‘p_license’ was not declared in this scope
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~
LicenseManager.cpp: In member function ‘std::pair<reid::license::LicenseStatus_ENUM, reid::license::SufficientLicenseInfo> LicenseManager::checkSufficientLicenseStats(const std::vectorreid::license::CameraModelInfo&) const’:
LicenseManager.cpp:2640:11: error: ‘scoped_ptr’ is not a member of ‘boost’
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~~
LicenseManager.cpp:2640:11: note: suggested alternative: ‘shared_ptr’
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~~
shared_ptr
LicenseManager.cpp:2640:39: error: expected primary-expression before ‘>’ token
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^
LicenseManager.cpp:2640:41: error: ‘p_license’ was not declared in this scope
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~
: recipe for target ‘LicenseManager.o’ failed
make: *** [LicenseManager.o] Error 1

Here is my Sonar scanner environment setup.

Sonar-scanner version: 3.3.0
java version: 11.0.18
g++ version: 7.5.0
Build-wrapper version: build-wrapper, version 6.32 (linux-x86)
ubuntu version: 20.04

Hey there.

The build wrapper should just be listening in on the build. Do you get these same errors when just running make clean all?

yes, its same error with make clean all.

In that case, you’ll need to resolve that issue before thinking about SonarQube analysis. Analysis of C/C++ code relies on a reliable (functional) build, but it’s a separate concern from SonarQube analysis (and this forum).

If you face any issues once you have a working build, feel free to come back to us.