liuliu / ccv

C-based/Cached/Core Computer Vision Library, A Modern Computer Vision Library
http://libccv.org
Other
7.08k stars 1.71k forks source link

Installation failed on Ubuntu 18.04 #210

Closed sendjasni closed 6 years ago

sendjasni commented 6 years ago

I followed the instruction from the getting started tutorial on the Libccv web site, but I think it didn't work, I don't know why. This is the last lines after executing the ./configure && make command :

` gcc ccv_algebra.c -o ccv_algebra.o -c -O3 -ffast-math -Wall -msse2 -D HAVE_LIBPNG -D HAVE_LIBJPEG -D HAVE_AVCODEC -D HAVE_AVFORMAT -D HAVE_SWSCALE -D HAVE_SSE2 -I/usr/local/include gcc ccv_util.c -o ccv_util.o -c -O3 -ffast-math -Wall -msse2 -D HAVE_LIBPNG -D HAVE_LIBJPEG -D HAVE_AVCODEC -D HAVE_AVFORMAT -D HAVE_SWSCALE -D HAVE_SSE2 -I/usr/local/include gcc ccv_basic.c -o ccv_basic.o -c -O3 -ffast-math -Wall -msse2 -D HAVE_LIBPNG -D HAVE_LIBJPEG -D HAVE_AVCODEC -D HAVE_AVFORMAT -D HAVE_SWSCALE -D HAVE_SSE2 -I/usr/local/include gcc ccv_image_processing.c -o ccv_image_processing.o -c -O3 -ffast-math -Wall -msse2 -D HAVE_LIBPNG -D HAVE_LIBJPEG -D HAVE_AVCODEC -D HAVE_AVFORMAT -D HAVE_SWSCALE -D HAVE_SSE2 -I/usr/local/include gcc ccv_resample.c -o ccv_resample.o -c -O3 -ffast-math -Wall -msse2 -D HAVE_LIBPNG -D HAVE_LIBJPEG -D HAVE_AVCODEC -D HAVE_AVFORMAT -D HAVE_SWSCALE -D HAVE_SSE2 -I/usr/local/include

cc1: out of memory allocating 65536 bytes after a total of 5508444160 bytes makefile:27: recipe for target 'ccv_resample.o' failed make: *** [ccv_resample.o] Error 1 `

liuliu commented 6 years ago

This is out of memory issue. With GCC, it requires at least 16GiB memory computer to compile. Clang has much less requirement. Won't fix this until we are close to release and I need to revisit ccv part.