Ask Your Question

jaquense's profile - activity

2017-02-12 15:16:07 -0600 commented answer Convert std::vector<double> to Mat and show the image

This solution only works for c++11....

2016-02-17 23:53:30 -0600 asked a question Run a C++ code that was programmed for OpenCV 2.0 with OpenCV 2.4.9

Hi,

I have installed OpenCV 2.4.9 in Ubuntu 14.04 LTS. I want to run a C++ code that was programmed for OpenCV 2.0 with OpenCV 2.4.9. Is that possible? or do I have to install OpenCV 2.0?

I tried but I got the following errors:

g++ -I/usr/local/include   -Wall -O2 -c common.cpp
g++ -shared -lcv -lcxcore -lhighgui -lm  grid_map.o hough.o io.o  manipulatemap.o common.o -o libmapmerge.so
/usr/bin/ld: cannot find -lcv
/usr/bin/ld: cannot find -lcxcore
/usr/bin/ld: cannot find -lhighgui
/usr/bin/ld: grid_map.o: relocation R_X86_64_32S against `_ZTVSt9basic_iosIcSt11char_traitsIcEE' can not be used when making a shared object; recompile with -fPIC
grid_map.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [libmapmerge.so] Error 1

Best,

2016-02-15 00:54:18 -0600 asked a question Problems installing Opencv 2.0 on Ubuntu 14.0

Hi,

I'm having problems trying to install OpenCV 2.0 on Ubuntu 14.04. When I want to install the dependencies I got the following problem:

"andres@andres-VirtualBox:~$ sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-dev cmake libswscale-dev libjasper-dev [sudo] password for andres: Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: libtiff4-dev : Depends: libtiff5-dev (> 4.0.3-6~) but it is not going to be installed E: Unable to correct problems, you have held broken packages."

I want to install OpenCV 2.0 because there is an old project that uses that version of OpenCV.

Best,