Ask Your Question

Attempting to compiling OpenCV Libs using MinGW and CMake for Eclipse

asked 2018-09-19 16:14:47 -0500

onthegrid007 gravatar image

Having an error saying SIZE_LIMIT is not defined in the file named 'jmemmgr.c'
The path to the file is "S:\SYSTEMS\CPP\OpenCV\sources\3rdparty\libjpeg-turbo\src\" and then 'jmemmgr.c'
I have tried to include the file that I KNOW is holding the declaration but I seem to get another error...

Any help would be greatly appreciated.

edit retag flag offensive close merge delete


g++ --version ? (it might be too old for this)

berak gravatar imageberak ( 2018-09-20 00:42:03 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-09-20 00:46:14 -0500

berak gravatar image

updated 2018-09-20 01:58:27 -0500

  • try to update your mingw. you should use mingw64 (not 32) and like 7.x.x or above.
  • some mandatory cmake flags to build the opencv libs for mingw:

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-09-19 16:14:47 -0500

Seen: 176 times

Last updated: Sep 20 '18