homuler / MediaPipeUnityPlugin

Unity plugin to run MediaPipe
MIT License
1.77k stars 461 forks source link

gcc: error trying to exec 'cc1plus': execvp: No such file or directory #35

Closed elblogbruno closed 3 years ago

elblogbruno commented 3 years ago

I Was trying to build for arm64 android and fails with this strange issue. I do have gcc and g++ installed, as I've seen on the internet solutions telling me to install them.

2021-01-19 12_24_15-bruno-pc (bruno-pc)_ VNC Viewer

what could be wrong? If I run make as sudo, I do get numpy missing issue m and I do have numpy installed.

Thanks Great Job! Bruno Moya

homuler commented 3 years ago

If the problem continues after running make clean, will you tell me the output of the below command?

cd C && /bazel build -c opt --config=android_arm64 --sandbox_debug //mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android
elblogbruno commented 3 years ago

The problem does continue after make clean Here is the output: image

homuler commented 3 years ago

Are ANDROID_HOME and ANDROID_NDK_HOME set correctly?

elblogbruno commented 3 years ago

yes I always run this script that exports correct path for both variables

image

elblogbruno commented 3 years ago

by the moment I have seen i do have different g++ and gcc version,i will see if that is the issue

elblogbruno commented 3 years ago

it seems this was the issue, i had version gcc 7 but g++ 8 version installed. Did downgraded from g++8 version to g++7 and now it is not crashing. https://askubuntu.com/questions/26498/how-to-choose-the-default-gcc-and-g-version Thanks