Ask Your Question
0

installing opencv in ubuntu.

asked 2015-12-13 02:37:34 -0600

msucv gravatar image

updated 2015-12-13 12:45:40 -0600

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

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-12-14 08:33:48 -0600

mani94 gravatar image

try this link given below it worked fine for me to install opencv-3.0.0 in ubuntu-14.04. link : http://rodrigoberriel.com/2014/10/ins...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-12-13 02:37:34 -0600

Seen: 625 times

Last updated: Dec 13 '15