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 7971227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:35:13+00:00 2026-06-04T07:35:13+00:00

I moved to Ubuntu recently and I can’t get openCV working with QtCreator. As

  • 0

I moved to Ubuntu recently and I can’t get openCV working with QtCreator. As described in the OpenCv install guide I built and installed the openCV library in /usr/local/lib, I updated opencv.conf in /etc/ld.so.conf.d/ and run sudo ldconfig -v.

But when I try to run a simple “hello world” program that shows an image in a namedWindow I get the following error:

OpenCv Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /home/wedontplay/documenti/Library Installer/OpenCV-2.4.0/modules/core/array.cpp, line 2482 terminate called after throwing an instace of ‘cv::Excepton’ what(): /home/wedontplay/Library Installer/OpenCV-2.4.0/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat

Why does Qt search in /home/wedontplay/Documenti/... instead of /usr/local/lib (it is searching in the folder where I have the OpenCv libs source code)?

Any suggestion would be really appreciated.

  • 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-04T07:35:15+00:00Added an answer on June 4, 2026 at 7:35 am

    Add

    INCLUDEPATH +=  /usr/local/include/Opencvlibname
    LIBS+ = -L/usr/local/lib -[module_name1] -[module_name2] ..
    

    in your .pro file and then try.

    include module name as, for ex if its libopencvmodule1.a ,add it as LIBS+ = -L/usr/local/lib -lopencvmodule1

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

Sidebar

Related Questions

I installed subversion on my Ubuntu server and I can use subclipse (1.6) in
I was working on microsoft environment, but now I moved my website to ubuntu,
Recently I moved one of my rails application to a newly configured EC2 ubuntu
Recently moved server and trying to get everything set up. My memcache class writes
I just recently moved my local MAMP installation to my live Ubuntu EC2 server
I recently moved some sites resp. I backuped them and did a fresh (ubuntu)server
I recently got a mac. I was previously working on a laptop with ubuntu
[Question moved in from askubuntu.com] I'd like to get into Ubuntu systems programming; to
I just moved from an Ubuntu PHP workstation dev environment back to Windows and
I've just moved over to Ubuntu 8.10 as my dev box; it's my first

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.