Py-faster-rcnn: error: ../MatlabAPI/private/maskApi.c: No such file or directory

Created on 4 Nov 2016  路  2Comments  路  Source: rbgirshick/py-faster-rcnn

I downloaded the latest py-faster-rcnn, but when I run the command:

cd py-faster-rcnn/lib
make

it said:
x86_64-linux-gnu-gcc: error: ../MatlabAPI/private/maskApi.c: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
make: [all] Error 1*

Can anyone fix it?

Most helpful comment

@fungtion @eonurk
I got the same error and fixed this as follows:

  1. open the file py-faster-rcnn/lib/_mask.pyx, change the second line # distutils: sources = ../MatlabAPI/private/maskApi.c --> # distutils: sources = pycocotools/maskApi.c
  2. delete the existing *.so files in lib/pycocotools
  3. cd py-faster-rcnn/lib and make

I hope this solution can work for you.

All 2 comments

I'm getting the same error with my code

@fungtion @eonurk
I got the same error and fixed this as follows:

  1. open the file py-faster-rcnn/lib/_mask.pyx, change the second line # distutils: sources = ../MatlabAPI/private/maskApi.c --> # distutils: sources = pycocotools/maskApi.c
  2. delete the existing *.so files in lib/pycocotools
  3. cd py-faster-rcnn/lib and make

I hope this solution can work for you.

Was this page helpful?
0 / 5 - 0 ratings