trainHOG icon indicating copy to clipboard operation
trainHOG copied to clipboard

MinGW under Windows

Open andreyserenkov opened this issue 8 years ago • 0 comments

For those who is trying to compile under Windows using MinGW (I have Windows 10 64bit): make compile.bat file in trainHOG folder and put next: @echo off set opencv_incdir=C:/OpenCV/OpenCV32/build/include set svmlight_srcdir=C:/Projects/tests/svm_light pkg-config opencv --cflags --libs >tmp.txt set /p pkg-info= <tmp.txt del tmp.txt rem echo %pkg-info% g++ main.cpp -c -g -MMD -MP -I %opencv_incdir% -I %svmlight_srcdir% gcc %svmlight_srcdir%/svm_learn.c -c -g gcc %svmlight_srcdir%/svm_hideo.c -c -g gcc %svmlight_srcdir%/svm_common.c -c -g g++ -o trainhog.exe main.o svm_learn.o svm_hideo.o svm_common.o -Wall %pkg-info%

Change opencv_incdir, svmlight_srcdir to your correct pathes

andreyserenkov avatar Feb 09 '17 09:02 andreyserenkov