Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8821019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:45:05+00:00 2026-06-14T05:45:05+00:00

I got Ubuntu 12.04 32bit running in VMware. I installed OpenCV 2.4.2 after this

  • 0

I got Ubuntu 12.04 32bit running in VMware. I installed OpenCV 2.4.2 after this (http://www.samontab.com/web/2011/06/installing-opencv-2-2-in-ubuntu-11-04/).

When I try to run the example for findContours from CV-Page (http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html), it compiles, but crashes on the “findContours” call.

OpenCV Error: Assertion failed (k == STD_VECTOR_MAT) in release, file /build/build   /opencv-2.3.1/modules/core/src/matrix.cpp, line 1364
terminate called after throwing an instance of 'cv::Exception'
what():  /build/buildd/opencv-2.3.1/modules/core/src/matrix.cpp:1364: error: (-215) k == STD_VECTOR_MAT in function release

I don’t know, what’s the problem…

I run the code in Eclipse with. CDT Build Console says:

make all 
Building file: ../src/FrameTest.cpp
Invoking: Cross G++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/FrameTest.d" -MT"src/FrameTest.d" -o "src/FrameTest.o" "../src/FrameTest.cpp"
../src/FrameTest.cpp:26:2: warning: "/*" within comment [-Wcomment]
../src/FrameTest.cpp: In function ‘int main()’:
../src/FrameTest.cpp:319:25: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/FrameTest.cpp: In function ‘void thresh_callback(int, void*)’:
../src/FrameTest.cpp:345:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Finished building: ../src/FrameTest.cpp

Building target: FrameTest
Invoking: Cross G++ Linker
g++ -L/home/ubu/workspace/opencv -L/usr/share -L/usr/share/doc/libcv-dev -L/lib -L/lib/i386-linux-gnu -L/home/ubu/OpenCV-2.4.2/include/opencv -L/home/ubu/OpenCV-2.4.2/include/opencv2 -o "FrameTest"  ./src/FrameTest.o   -lopencv_core -lopencv_highgui -lpthread -lopencv_imgproc
Finished building target: FrameTestenter code here

Someone got an idea? I got other code from an old project running with CV2.2 in Windows with VS2010 and it works… Where is the difference VStudio with Win vs. Eclipse and Ubuntu?

Thanks so far.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:45:06+00:00Added an answer on June 14, 2026 at 5:45 am

    It seems you have two versions of OpenCV installed, and the linker tries to use a different one for linking than the one used to compile your code.

    The simplest way is to remove all the other old OpenCV versions, and then a possible wrong library path will be more explicit. check all the settings PATH, linker flags and include folders to make sure you are using the same version through the include/complile/link settings

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got Ubuntu 11.04 i386 server with nginx 1.0.11 installed. Also, I'm using this
I've got a server program running on Ubuntu and it hangs after a few
after i installed ruby from the ruby 1.9.2 package i got :: r@ubuntu:/$ ruby
I've got a just installed ubuntu 11.10. I follow the first answer in this
I am working on Ubuntu and installed the Azure SDK for Linux and got
I got a strange behavior on 2 similar machines, both running ubuntu 10.04 amd64.
I got this following devices : I got my Ubuntu 64 bits PC I
I've got a fresh copy of PHPUnit installed on my system (Ubuntu 11), but
I've got problem with look of freshly installed Eclipse in my Ubuntu 10.04. The
I am running QT Creator on a Linux Ubuntu 9.10 machine. I just got

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.