Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

installing opencv in ubuntu.

$
0
0
Hi , i want to install opencv in ubuntu 14.04 and the opencv version are 2.4.11 or 3. . i have error when make files. the error log is: In file included from /home/cv/Desktop/opencv-linux/opencv-3.0.0/modules/core/src/persistence.cpp:67:0: /usr/include/zlib.h:86:5: error: ‘z_const’ does not name a type z_const Bytef *next_in; /* next input byte */ ^ /usr/include/zlib.h:94:5: error: ‘z_const’ does not name a type z_const char *msg; /* last error message, NULL if no error */ ^ In file included from /usr/include/zlib.h:34:0, from /home/cv/Desktop/opencv-linux/opencv-3.0.0/modules/core/src/persistence.cpp:67: /usr/include/zlib.h:1025:29: error: ‘z_const’ has not been declared typedef unsigned (*in_func) OF((void FAR *, ^ /usr/include/zlib.h:1025:29: error: two or more data types in declaration of ‘parameter’ typedef unsigned (*in_func) OF((void FAR *, ^ In file included from /home/cv/Desktop/opencv-linux/opencv-3.0.0/modules/core/src/persistence.cpp:67:0: /usr/include/zlib.h:1349:32: error: expected initializer before ‘Z_ARG’ ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...)); ^ /usr/include/zlib.h:1673:5: error: ‘z_off64_t’ does not name a type z_off64_t pos; ^ /usr/include/zlib.h:1748:15: error: ‘z_crc_t’ does not name a type ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void)); ^ /usr/include/zlib.h:1758:44: error: expected initializer before ‘Z_ARG’ ZEXTERN int ZEXPORTVA gzvprintf Z_ARG((gzFile file, ^ make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/persistence.cpp.o] Error 1 make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: *** [all] Error 2 Many Thanks

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>