Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinGW under Windows #15

Open
andreyserenkov opened this issue Feb 9, 2017 · 0 comments
Open

MinGW under Windows #15

andreyserenkov opened this issue Feb 9, 2017 · 0 comments

Comments

@andreyserenkov
Copy link

andreyserenkov commented Feb 9, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant