Ask Your Question
0

undefined reference to gp_camera_autodetect

asked 2016-03-28 01:16:39 -0600

abhiemanyu gravatar image

updated 2016-03-28 01:55:30 -0600

Hi, i'm trying to install OpenCV 3.0 on my Ubuntu 12.04, i'm getting error

../../lib/libopencv_videoio.so.3.0.0: undefined reference to `gp_camera_autodetect' 
collect2: error: ld returned 1 exit status
make[2]: *** [bin/opencv_perf_video] Error 1

make[1]: *** [modules/video/CMakeFiles/opencv_perf_video.dir/all] Error 2

make: *** [all] Error 2

I guess this is all about gphoto2 library, i've tried to install libgphoto2 and gphoto2 from source based on this post

How do i solve this error?

edit retag flag offensive close merge delete

Comments

how did you install opencv ?

berak gravatar imageberak ( 2016-03-28 02:10:21 -0600 )edit

I want to install opencv 3.0 side-by-side with opencv 2.8, so i installed opencv 3.0 from source, run cmake and set -DCMAKE_INSTALL_PREFIX to certain path (so i dont want to mess up with existing opencv 2.8). just like this post, any idea? i also reinstall gphoto2...

abhiemanyu gravatar imageabhiemanyu ( 2016-03-28 02:15:28 -0600 )edit

I'm getting this error too. Do you solve this error?

vincentweisen gravatar imagevincentweisen ( 2016-04-11 01:04:33 -0600 )edit

I also get this error and am not able to install opencv 3.0.0 or above due to this....

ralff gravatar imageralff ( 2016-04-27 13:02:09 -0600 )edit

folks, please try with opencv master, not 3.0

berak gravatar imageberak ( 2016-04-27 13:09:02 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-27 17:56:58 -0600

ralff gravatar image

I followed berak's advice, and tried to install opencv from master, and everything installed no problem. Thanks!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-28 01:16:39 -0600

Seen: 441 times

Last updated: Apr 27 '16