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

Installation problem : libopencv end by *.a?

$
0
0
I am successfully run example program in `opencv/build/bin`
for example `opencv_test_core cpp-example-opencv_version`. My version is 3.0-dev.
It looks find. But when I try manually without `make` . I got error. The error comes when I remove libopencv2.4 which is Debian package from my computer and then compiled and installed latest version from github. sarit@cmd-center:~/opencv/samples/cpp$ g++ -I/usr/local/include -L/usr/local/lib -lopencv_core opencv_version.cpp /tmp/cciphMKR.o: In function `main': opencv_version.cpp:(.text+0x69): undefined reference to `cv::CommandLineParser::CommandLineParser(int, char const* const*, cv::String const&)' opencv_version.cpp:(.text+0x99): undefined reference to `cv::CommandLineParser::has(cv::String const&) const' opencv_version.cpp:(.text+0xb7): undefined reference to `cv::CommandLineParser::printMessage() const' opencv_version.cpp:(.text+0xc8): undefined reference to `cv::CommandLineParser::check() const' opencv_version.cpp:(.text+0xdb): undefined reference to `cv::CommandLineParser::printErrors() const' opencv_version.cpp:(.text+0x104): undefined reference to `cv::CommandLineParser::has(cv::String const&) const' opencv_version.cpp:(.text+0x11b): undefined reference to `cv::getBuildInformation()' opencv_version.cpp:(.text+0x171): undefined reference to `cv::CommandLineParser::~CommandLineParser()' opencv_version.cpp:(.text+0x19e): undefined reference to `cv::CommandLineParser::~CommandLineParser()' opencv_version.cpp:(.text+0x1da): undefined reference to `cv::CommandLineParser::~CommandLineParser()' /tmp/cciphMKR.o: In function `cv::String::String(char const*)': opencv_version.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x4f): undefined reference to `cv::String::allocate(unsigned long)' /tmp/cciphMKR.o: In function `cv::String::~String()': opencv_version.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x14): undefined reference to `cv::String::deallocate()' collect2: error: ld returned 1 exit status Here is my `pkg-config` sarit@cmd-center:~/opencv/samples/cpp$ pkg-config --cflags --libs opencv -I/usr/local/include/opencv -I/usr/local/include -L/usr/local/lib -lopencv_cudabgsegm -lopencv_cudaobjdetect -lopencv_cudastereo -lopencv_shape -lopencv_stitching -lopencv_cudafeatures2d -lopencv_superres -lopencv_cudacodec -lopencv_videostab -lopencv_cudaoptflow -lopencv_cudalegacy -lopencv_calib3d -lopencv_features2d -lopencv_objdetect -lopencv_highgui -lopencv_videoio -lopencv_photo -lopencv_imgcodecs -lopencv_cudawarping -lopencv_cudaimgproc -lopencv_cudafilters -lopencv_video -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_cudaarithm -lopencv_core -lopencv_hal -lopencv_cudev Installed library. But I don't know why they end with `*.a`
sarit@cmd-center:~/opencv/samples/cpp$ ls /usr/local/lib cmake libflandmark.so.1 libopencv_cudabgsegm.a libopencv_cudalegacy.a libopencv_cudev.a libopencv_imgcodecs.a libopencv_shape.a libopencv_videoio.a python3.4 libclandmark.so libflandmark.so.1.5 libopencv_cudacodec.a libopencv_cudaobjdetect.a libopencv_features2d.a libopencv_imgproc.a libopencv_stitching.a libopencv_videostab.a libclandmark.so.1 libopencv_calib3d.a libopencv_cudafeatures2d.a libopencv_cudaoptflow.a libopencv_flann.a libopencv_ml.a libopencv_superres.a node_modules libclandmark.so.1.5 libopencv_core.a libopencv_cudafilters.a libopencv_cudastereo.a libopencv_hal.a libopencv_objdetect.a libopencv_ts.a pkgconfig libflandmark.so libopencv_cudaarithm.a libopencv_cudaimgproc.a libopencv_cudawarping.a libopencv_highgui.a libopencv_photo.a libopencv_video.a python2.7 I am not sure if I create a symbolic link and end then by .so for example
$ ln -s libopencv_core.a libopencv_core.so
Will harm my system or not. I am so afriad I am going to break something then I ask you experts in forum here.

**OS :** GNU/Linux Debian Jessie
**Question :**
Is this all about linking problem?
Can I simply use `ldconfig` to get the job done?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



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