Ask Your Question
0

Attempting to compiling OpenCV Libs using MinGW and CMake for Eclipse

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

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.
-PF

edit retag flag offensive close merge delete

Comments

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

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

1 answer

Sort by ยป oldest newest most voted
0

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

berak gravatar image

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

  • 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:


 WITH_IPP=OFF
 WITH_MSMF=OFF
 ENABLE_PRECOMPILED_HEADERS=OFF
 CPU_DISPATCH=""
edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 396 times

Last updated: Sep 20 '18