detectMultiScale call error

Whole the staff is on Ubuntu PC. I don’t use RPi.
But the source code and .xml are in different locations ?
This poses a problem ?
After all I point in my source code the location of .xml.
Regards.