Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Run a C++ code that was programmed for OpenCV 2.0 with OpenCV 2.4.9

$
0
0
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,

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>