ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

catkin_make error: CV_INTER_LINEAR’ was not declared in this scope

asked 2015-07-17 20:50:13 -0500

wsAndy gravatar image

Hello, I use Ubuntu 14.04 ,32bit and run ROS indigo and opencv 3.0.0beta. I use to catkin_make 'depthimage_to_laserscan' without error. But today, I get an error.

 /opt/ros/indigo/include/image_geometry/pinhole_camera_model.h:117:41: error: ‘CV_INTER_LINEAR’ was not declared in this scope
           int interpolation = CV_INTER_LINEAR) const;

I search for some information. And I find a similar problem here. But I still cannot solve this problem. I wonder if I am not install opencv rightly. I remember when I use the command

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=OFF ..

I get the information here.

-- Detected version of GNU GCC: 48 (408)
-- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") 
-- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.8") 
-- Found OpenEXR: /usr/lib/i386-linux-gnu/libIlmImf.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- checking for module 'gstreamer-base-1.0'
--   package 'gstreamer-base-1.0' not found
-- checking for module 'gstreamer-video-1.0'
--   package 'gstreamer-video-1.0' not found
-- checking for module 'gstreamer-app-1.0'
--   package 'gstreamer-app-1.0' not found
-- checking for module 'gstreamer-riff-1.0'
--   package 'gstreamer-riff-1.0' not found
-- checking for module 'gstreamer-pbutils-1.0'
--   package 'gstreamer-pbutils-1.0' not found
-- checking for module 'gstreamer-base-0.10'
--   found gstreamer-base-0.10, version 0.10.36
-- checking for module 'gstreamer-video-0.10'
--   found gstreamer-video-0.10, version 0.10.36
-- checking for module 'gstreamer-app-0.10'
--   found gstreamer-app-0.10, version 0.10.36
-- checking for module 'gstreamer-riff-0.10'
--   found gstreamer-riff-0.10, version 0.10.36
-- checking for module 'gstreamer-pbutils-0.10'
--   found gstreamer-pbutils-0.10, version 0.10.36
-- checking for module 'libv4l1'
--   found libv4l1, version 1.0.1
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
-- checking for module 'tbb'
--   found tbb, version 4.2~20130725
CMake Warning at 3rdparty/ippicv/downloader.cmake:54 (message):
ICV: Local copy of ICV package has invalid MD5 hash:
032d7028be0f3ff5e3dbdda68be61af0 (expected:
8b449a536a2157bcad08a2b9f266828b)
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:108 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:212 (include)
cmake/OpenCVFindLibsPerf.cmake:12 (include)
CMakeLists.txt:454 (include)


-- ICV: Downloading ippicv_linux_20141027.tgz...
CMake Error at 3rdparty/ippicv/downloader.cmake:71 (file):
file DOWNLOAD HASH mismatch

for file: [/home/exbot/opencv-3.0.0-beta/3rdparty/ippicv/downloads/linux-8b449a536a2157bcad08a2b9f266828b/ippicv_linux_20141027.tgz]
  expected ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2021-02-08 06:21:41 -0500

Felix Widmaier gravatar image

CV_INTER_LINEAR doesn't exist anymore in newer versions of OpenCV. However, there is cv::INTER_LINEAR which can be used instead.

edit flag offensive delete link more

Comments

Thanks a lot, it works for me.

Ankita gravatar image Ankita  ( 2021-02-20 09:37:35 -0500 )edit
0

answered 2015-08-11 01:55:18 -0500

wsAndy gravatar image

updated 2016-04-23 07:46:35 -0500

This problem is caused by opencv2 and openni3. I download opencv3 and the problem occurs. Then I delete opencv3 and recover opencv2 , the problem is solved.

Besides, I could also fix the problem by changing the CV_INTER_LINEAR to INTER_LINEAR since opencv3 has delete the prefix CV_ .

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-17 20:50:13 -0500

Seen: 8,055 times

Last updated: Feb 08 '21