Ask Your Question

Ishank's profile - activity

2016-02-27 23:10:10 -0600 received badge  Organizer (source)
2016-02-27 22:53:51 -0600 asked a question Building OpenCV 3.1 with VTK 6.3

I am trying to build OpenCV with VTK but i am getting following error

/usr/bin/ld: /usr/local/lib/libvtkRenderingOpenGL-6.3.a(vtkRenderingOpenGLObjectFactory.cxx.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libvtkRenderingOpenGL-6.3.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[2]: * [lib/libopencv_viz.so.3.1.0] Error 1 make[1]: [modules/viz/CMakeFiles/opencv_viz.dir/all] Error 2 make[1]: ** Waiting for unfinished jobs....

Can anybody point out what the problem is?