Hi All
I’m capable to run the c api with no issues however when I’m trying to run it with root privileges I’m stuck in the LoadImageFile function which always returns false.
for example:
CvbHelperBase* cvbHelper = nullptr;
const size_t SIZE = 256;
char fileNamePath[SIZE] = { 0 };
if (!TranslateFileName("/opt/cvb/drivers/GenICam.vin", fileNamePath, SIZE)){
return cvbHelper;
}
IMG img = nullptr;
if (!LoadImageFile(fileNamePath, img)){
return cvbHelper;
}
//continue the code
The above it does work with normal user, but no for root. I need to run my app as a root user. Does anyone know how I can deal with this issue?
Thanks in advance