element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development OpenCV on ZedBoard
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 10 replies
  • Subscribers 329 subscribers
  • Views 1068 views
  • Users 0 members are here
Related

OpenCV on ZedBoard

Former Member
Former Member over 12 years ago

Has anyone been able to successfully install OpenCV on the ZedBoard?  I get an internal compiler error, which I believe has to do with the lack of a GPU.  I've glanced briefly at the make file to try to figure out a way around this but so far no luck.

  • Sign in to reply
  • Cancel
  • bhfletcher
    0 bhfletcher over 12 years ago

    I've heard of a few looking at this, but I have not heard of any successes yet.  The Zynq PS does not have a built-in GPU, so you will have to build that in the programmable logic.

     

    Bryan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    If you don't want it to run as a standalone then try this.  Firstly you need to cross compile the libraries using the arm-xilinx-linux-gcc which Xilinx provide.  I would suggest compiling them as static unless you want to generate a new ramdisk image with enough space for the shared libraries.  After that in SDK you can create a C Linux application but change the compiler and linker to g++ (rather than gcc) and add "-static -lstdc++" to the linker flags (again unless you want to change the ramdisk to include C++ libs).  It will throw up a lot of unused function warnings, but you can turn those off and it works fine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to bhfletcher

    I've been able to get OpenCV to work, although it's somewhat hindered.  Anything with GPU acceleration is obviously not going to work, and because of the ARM processor you don't get the convenient automatic threading you get with Intel processors.  Besides that some dependencies don't work with ARM, and as far as I can tell some that should work with ARM just won't work on this board. 

    I built it within Xillinux rather than try to cross-compile it.  Obviously cross-compiling has its advantages but there are so many dependencies I haven't even tried yet.

    If you follow this guide (http://www.samontab.com/web/2012/06/installing-opencv-2-4-1-ubuntu-12-04-lts/), ignoring the steps about apt-get update and apt-get upgrade (if you do this you will not be able to reboot or recover and have to reformat your SD card), removing any dependencies it says it can't find (there are a lot), ignoring the warnings, it will install and you have a partially working OpenCV library.  As of yet, I can't really figure out why some parts work and some parts don't, but it's a starting point.

    I'm doing this on the compressed xillinux 3.3 kernel, not the full Digilent kernel.  The Digilent kernel has given me nothing but trouble.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    would be an interesting project to make an opencv vhdl library/libraries

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    I am trying to install opencv on Xillinux as described in the link, after installing cmake when i reach to this commnad

    root@localhost:~/OpenCV-2.4.1/build# cmake -DWITH_TBB=ON -DWITH_V4L=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON
    iget this error
    CMake Error: The source directory "/root/OpenCV-2.4.1/build" does not appear to contain CMakeLists.txt.
    Specify --help for usage, or press the help button on the CMake GUI.

    can u help me with this. or may be share with me what exactly you did to get opencv running on zedboard

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    I have a different problem; I need to run a bat file according to the tutorial provided on the xilinx website, but when I run it, it doesn't create the needed files.
    I'm hitting my head against a wall here, hoping someone has some idea what the problem can be.

    EDIT: I feel I should also mention that I have 3 hard drives and I'm trying to get the .bat file to create the needed files on my D: drive (which is where the rest of the Xilinx software is located).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    It would be easier for someone to help if you could specify what tutorial exactly are you following and where are you getting this problem along with other settings

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sergicuen
    0 sergicuen over 12 years ago

    Hi,
    we cross-compiled openCV libs for ARM and installed on Linaro running on Zedboard. In this video (http://youtu.be/ijA5ikkAuyA) you can see an openCV code compiling and running on Zedboard (Linux 3.3). The Zedboard TRD in the community proyects section is a good start point.
    Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to sergicuen

    Could you please explain, how you installed opencv libs on Linaro?  I am trying it for weeks but still cannot get an executable running (Even a basic image display app)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to sergicuen

    Hi,
    Did you use hardware acceleration or just runned the openCV code?
    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube