Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. opencv in codeblocks - compile error

opencv in codeblocks - compile error

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
comlinuxhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    __erfan__
    wrote on last edited by
    #1

    hi i am using codeblocks and i want to use opencv to capture video and image and ... . this is the program : //------------------------------------ #include < iostream > using namespace std; #include "cv.h" #include "highgui.h" int main() { IplImage* img; img = cvLoadImage("lena.bmp", 1); cvNamedWindow("window", 1); cvShowImage("window", img); cvWaitKey(0); cvDestroyWindow("window"); cvReleaseImage(&img); return 0; } //------------------------------------ but there is a compilation error : ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzeof'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzopen'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzclose'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzrewind'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzgets'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzputs'| ||=== Build finished: 6 errors, 0 warnings ===| i used this instructions to install the downloaded package : (OpenCV-2.0.0.tar.bz2) 1. tar -xjf OpenCV-2.0.0.tar.bz2 2. mkdir opencv.build 3. cd opencv.build 4a. cmake [] ../OpenCV-2.0.0 # CMake-way or 4b. ../OpenCV-2.0.0/configure [] # configure-way 5. make -j 2 6. sudo make install 7. sudo ldconfig # linux only and i set the codeblocks envierment parameters as is shown in this page : http://opencv.willowgarage.com/wiki/CodeBlocks any suggestion?!

    _ 1 Reply Last reply
    0
    • _ __erfan__

      hi i am using codeblocks and i want to use opencv to capture video and image and ... . this is the program : //------------------------------------ #include < iostream > using namespace std; #include "cv.h" #include "highgui.h" int main() { IplImage* img; img = cvLoadImage("lena.bmp", 1); cvNamedWindow("window", 1); cvShowImage("window", img); cvWaitKey(0); cvDestroyWindow("window"); cvReleaseImage(&img); return 0; } //------------------------------------ but there is a compilation error : ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzeof'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzopen'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzclose'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzrewind'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzgets'| ../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzputs'| ||=== Build finished: 6 errors, 0 warnings ===| i used this instructions to install the downloaded package : (OpenCV-2.0.0.tar.bz2) 1. tar -xjf OpenCV-2.0.0.tar.bz2 2. mkdir opencv.build 3. cd opencv.build 4a. cmake [] ../OpenCV-2.0.0 # CMake-way or 4b. ../OpenCV-2.0.0/configure [] # configure-way 5. make -j 2 6. sudo make install 7. sudo ldconfig # linux only and i set the codeblocks envierment parameters as is shown in this page : http://opencv.willowgarage.com/wiki/CodeBlocks any suggestion?!

      _ Offline
      _ Offline
      __erfan__
      wrote on last edited by
      #2

      anybody there ?! :doh:

      L 1 Reply Last reply
      0
      • _ __erfan__

        anybody there ?! :doh:

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        __erfan__ wrote:

        anybody there ?

        Yes lots of people, and they will answer when they have something useful that will help you. Unfortunately you forgot to mention what problem you are having. Please review your entry and explain the problem so that someone may help you. And also be patient!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups