hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, OpenCV Contrib, and OpenVINO.
https://gocv.io
Other
6.75k stars 869 forks source link

Installation failed 'cstddef' file not found #413

Open Deleplace opened 5 years ago

Deleplace commented 5 years ago

Description

make install failed

Steps to Reproduce

$ go get -u -d gocv.io/x/gocv
$ cd ~/go/src/gocv.io/x/gocv
$ make install
...
...
...
-- Set runtime path of "/usr/local/bin/opencv_interactive-calibration" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_version
-- Set runtime path of "/usr/local/bin/opencv_version" to "/usr/local/lib"
/usr/local/google/home/deleplace/go/src/gocv.io/x/gocv
rm -rf /tmp/opencv
go run ./cmd/version/main.go
# gocv.io/x/gocv
In file included from calib3d.cpp:1:
In file included from ./calib3d.h:5:
In file included from /usr/local/include/opencv4/opencv2/opencv.hpp:52:
In file included from /usr/local/include/opencv4/opencv2/core.hpp:52:
In file included from /usr/local/include/opencv4/opencv2/core/cvdef.h:165:
/usr/local/include/opencv4/opencv2/core/hal/interface.h:15:10: fatal error: 'cstddef' file not found
Makefile:93: recipe for target 'verify' failed
make: *** [verify] Error 2

Your Environment

deadprogram commented 5 years ago

Hello @Deleplace you might want to try running

sudo apt-get install build-essential

Then try running the installation again.

deadprogram commented 5 years ago

Did that resolve your issue, @Deleplace ?

Deleplace commented 5 years ago

Hi Ron, thanks for the friendly reminder.

According to dpkg -l and my /var/log/dpkg.log.* files, I already had "build-essential" installed since many months.

I wanted to reproduce the issue today and then try to reinstall "build-essential", however

make clean install

worked out-of-the-box this time, for some reason!

face detected

I still don't know the root cause of my failed build in Feb, it might or might not be related to my underprovisioned system partition sometimes running low of disk space.