opencv in codeblocks - compile error
-
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?!
-
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?!
-
__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!