Skip to content

Instantly share code, notes, and snippets.

@starius
Created September 3, 2017 17:12
Show Gist options
  • Save starius/79084e1855ef44c1e602cf3ada2446cf to your computer and use it in GitHub Desktop.
Save starius/79084e1855ef44c1e602cf3ada2446cf to your computer and use it in GitHub Desktop.
make[1]: Entering directory `/home/mxe/mxe-opencv-330'
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
uname -a
Linux sd-68075 3.2.0-4-amd64 #1 SMP Debian 3.2.89-2 x86_64 GNU/Linux
git log --pretty=tformat:"%H - %s [%ar] [%d]" -1
1a312a16f9bf8bef2a96be53e6bb1b2578b50fef - Update opencv to 3.3.0 [20 hours ago] [ (HEAD, tt)]
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 7.11 (wheezy)
Release: 7.11
Codename: wheezy
autoconf --version 2>/dev/null | head -1
autoconf (GNU Autoconf) 2.69
automake --version 2>/dev/null | head -1
automake (GNU automake) 1.15
gcc --version
gcc (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
g++ --version
g++ (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
python --version
Python 2.7.3
perl --version 2>&1 | head -3
This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
(with 104 registered patches, see perl -V for more detail)
rm -rf '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static'
mkdir -p '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static'
mkdir -p '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3'
mkdir -p '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3.build_'
# disable wine with readonly directory
# see https://github.com/mxe/mxe/issues/841
mkdir -p '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/readonly'
chmod 0555 '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/readonly'
cd '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static' && unzip -q '/home/mxe/mxe-opencv-330/pkg/CImg_1.6.3.zip'
cd '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3'
(cd '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3' && patch -p1 -u) < /home/mxe/mxe-opencv-330/src/cimg-1-add-option-exe-suffix-exesfx.patch
patching file examples/Makefile
(cd '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3' && patch -p1 -u) < /home/mxe/mxe-opencv-330/src/cimg-2-split-cflags-to-define-and-incdir.patch
patching file examples/Makefile
Hunk #1 succeeded at 142 (offset 5 lines).
Hunk #2 succeeded at 160 (offset 5 lines).
Hunk #3 succeeded at 171 (offset 5 lines).
Hunk #4 succeeded at 260 (offset 5 lines).
cp -r '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3/CImg.h' '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3/plugins' '/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/'
# Build examples
# use Mlinux instead of Mwindows to get more features
# Mlinux does not link against CIMG_GDI32_LIBS,
# so set CIMG_X11_LIBS to -lgdi32
# no colored terminal, no X server, no minc2
# curl is not used by any example
make -C '/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3/examples' -j '2' 'CIMG_VERSION=1.6.3' 'CC=i686-w64-mingw32.static-g++' 'EXESFX=.exe' 'CIMG_VT100_CFLAGS=' 'CIMG_X11_CFLAGS=-mwindows' 'CIMG_X11_LIBS=-lgdi32' 'CIMG_XSHM_CFLAGS=' 'CIMG_XSHM_LIBS=' 'CIMG_XRANDR_CFLAGS=' 'CIMG_XRANDR_LIBS=' 'CIMG_MINC2_CFLAGS=' 'CIMG_MINC2_LIBS=' 'CIMG_CURL_CFLAGS=' 'CIMG_CURL_LIBS=' 'CIMG_TIFF_INCDIR=`i686-w64-mingw32.static-pkg-config --cflags libtiff-4`' 'CIMG_TIFF_LIBS=`i686-w64-mingw32.static-pkg-config --libs libtiff-4`' 'CIMG_EXR_INCDIR=`i686-w64-mingw32.static-pkg-config --cflags OpenEXR`' 'CIMG_EXR_LIBS=`i686-w64-mingw32.static-pkg-config --libs OpenEXR`' 'CIMG_PNG_INCDIR=`i686-w64-mingw32.static-pkg-config --cflags libpng`' 'CIMG_PNG_LIBS=`i686-w64-mingw32.static-pkg-config --libs libpng`' 'CIMG_JPEG_INCDIR=`i686-w64-mingw32.static-pkg-config --cflags jpeg`' 'CIMG_JPEG_LIBS=`i686-w64-mingw32.static-pkg-config --libs jpeg`' 'CIMG_ZLIB_INCDIR=`i686-w64-mingw32.static-pkg-config --cflags zlib`' 'CIMG_ZLIB_LIBS=`i686-w64-mingw32.static-pkg-config --libs zlib`' 'CIMG_OPENCV_INCDIR=`i686-w64-mingw32.static-pkg-config --cflags opencv`' 'CIMG_OPENCV_LIBS=`i686-w64-mingw32.static-pkg-config --libs opencv`' 'CIMG_MAGICK_INCDIR=`i686-w64-mingw32.static-pkg-config --cflags ImageMagick++`' 'CIMG_MAGICK_LIBS=`i686-w64-mingw32.static-pkg-config --libs ImageMagick++`' 'CIMG_FFTW3_INCDIR=`i686-w64-mingw32.static-pkg-config --cflags fftw3`' 'CIMG_FFTW3_LIBS=`i686-w64-mingw32.static-pkg-config --libs fftw3`' Mlinux
make[2]: Entering directory `/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3/examples'
make[3]: Entering directory `/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3/examples'
** Compiling 'CImg_demo (1.6.3)' with 'i686-w64-mingw32.static-g++'
** Compiling 'captcha (1.6.3)' with 'i686-w64-mingw32.static-g++'
i686-w64-mingw32.static-g++ -o CImg_demo.exe CImg_demo.cpp -I.. -Wall -W -O2 -mwindows -Dcimg_use_tiff -Dcimg_use_openexr -I/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/OpenEXR -Dcimg_use_png -I/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/libpng16 -Dcimg_use_jpeg -Dcimg_use_zlib -Dcimg_use_opencv -I/home/mxe/mxe-opencv-330/tmp-opencv-i686-w64-mingw32.static/opencv-3.3.0.build_/install/include/opencv -I/home/mxe/mxe-opencv-330/tmp-opencv-i686-w64-mingw32.static/opencv-3.3.0.build_/install/include -I/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/OpenEXR -Dcimg_use_magick -I/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -D_LIB -Dcimg_use_fftw3 -lm -lgdi32 -ltiff -llzma -ljpeg -lz -ltiffxx -lIlmImf -lImath -lHalf -lIex -lIexMath -lIlmThread -lz -lpng16 -lz -ljpeg -lz -lopencv_dnn -lopencv_ml -lopencv_objdetect -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_imgproc -lopencv_flann -lopencv_core -lIexMath -L/home/mxe/mxe-opencv-330/tmp-opencv-i686-w64-mingw32.static/opencv-3.3.0.build_/install/lib -llibprotobuf -llibwebp -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -lsetupapi -lws2_32 -lvfw32 -lstrmiids -lpng -ltiff -ljasper -lImath -lIlmImf -lIex -lHalf -lIlmThread -lwinmm -lglu32 -lopengl32 -luuid -loleaut32 -llzma -ljpeg -lz -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16 -llcms2 -ljpeg -llqr-1 -lfftw3 -lwebp -llzma -lIlmImf -lImath -lHalf -lIex -lIexMath -lIlmThread -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0 -lharfbuzz -lcairo -lgobject-2.0 -lfontconfig -lmsimg32 -lpixman-1 -lexpat -lfreetype -lbz2 -lpng16 -lharfbuzz_too -lfreetype_too -lglib-2.0 -lusp10 -L/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/lib/../lib -lffi -lws2_32 -lole32 -lwinmm -lshlwapi -lpcre -lintl -liconv -lz -lgdi32 -lm -lfftw3 -lm
i686-w64-mingw32.static-g++ -o captcha.exe captcha.cpp -I.. -Wall -W -O2 -mwindows -Dcimg_use_tiff -Dcimg_use_openexr -I/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/OpenEXR -Dcimg_use_png -I/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/libpng16 -Dcimg_use_jpeg -Dcimg_use_zlib -Dcimg_use_opencv -I/home/mxe/mxe-opencv-330/tmp-opencv-i686-w64-mingw32.static/opencv-3.3.0.build_/install/include/opencv -I/home/mxe/mxe-opencv-330/tmp-opencv-i686-w64-mingw32.static/opencv-3.3.0.build_/install/include -I/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/OpenEXR -Dcimg_use_magick -I/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -D_LIB -Dcimg_use_fftw3 -lm -lgdi32 -ltiff -llzma -ljpeg -lz -ltiffxx -lIlmImf -lImath -lHalf -lIex -lIexMath -lIlmThread -lz -lpng16 -lz -ljpeg -lz -lopencv_dnn -lopencv_ml -lopencv_objdetect -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_imgproc -lopencv_flann -lopencv_core -lIexMath -L/home/mxe/mxe-opencv-330/tmp-opencv-i686-w64-mingw32.static/opencv-3.3.0.build_/install/lib -llibprotobuf -llibwebp -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -lsetupapi -lws2_32 -lvfw32 -lstrmiids -lpng -ltiff -ljasper -lImath -lIlmImf -lIex -lHalf -lIlmThread -lwinmm -lglu32 -lopengl32 -luuid -loleaut32 -llzma -ljpeg -lz -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16 -llcms2 -ljpeg -llqr-1 -lfftw3 -lwebp -llzma -lIlmImf -lImath -lHalf -lIex -lIexMath -lIlmThread -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0 -lharfbuzz -lcairo -lgobject-2.0 -lfontconfig -lmsimg32 -lpixman-1 -lexpat -lfreetype -lbz2 -lpng16 -lharfbuzz_too -lfreetype_too -lglib-2.0 -lusp10 -L/home/mxe/mxe-opencv-330/usr/i686-w64-mingw32.static/lib/../lib -lffi -lws2_32 -lole32 -lwinmm -lshlwapi -lpcre -lintl -liconv -lz -lgdi32 -lm -lfftw3 -lm
In file included from captcha.cpp:47:0:
../CImg.h:262:16: fatal error: cv.h: No such file or directory
compilation terminated.
make[3]: *** [captcha] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from CImg_demo.cpp:48:0:
../CImg.h:262:16: fatal error: cv.h: No such file or directory
compilation terminated.
make[3]: *** [CImg_demo] Error 1
make[3]: Leaving directory `/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3/examples'
make[2]: *** [Mlinux] Error 2
make[2]: Leaving directory `/home/mxe/mxe-opencv-330/tmp-cimg-i686-w64-mingw32.static/CImg-1.6.3/examples'
make[1]: *** [build-only-cimg_i686-w64-mingw32.static] Error 2
make[1]: Leaving directory `/home/mxe/mxe-opencv-330'
real 0m17.527s
user 0m17.457s
sys 0m0.440s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment