biometrics / openbr

Open Source Biometrics, Face Recognition
www.openbiometrics.org
Other
2.84k stars 772 forks source link

Error while build: janus.cpp.obj #548

Open dhanh opened 6 years ago

dhanh commented 6 years ago

Hi,

I followed instruction here: http://openbiometrics.org/docs/install/#windows and got an error while trying to build OpenBR on Windows.

System: WIndows 10 Visual Studio 2013 Qt5.4.1 opencv-2.4.11 git clone https://github.com/biometrics/openbr.git - 5/5/2018

Instruction : $ cd C:\openbr $ mkdir build-msvc2013 $ cd build-msvc2013 $ cmake -G "CodeBlocks - NMake Makefiles" -DCMAKE_PREFIX_PATH="C:/opencv-2.4.11/build/install;C:/Qt/Qt5.4.1/5.4/msvc2013_64" -DCMAKE_INSTALL_PREFIX="./install" -DBR_INSTALL_DEPENDENCIES=ON -DCMAKE_BUILD_TYPE=Release .. $ nmake <<<<<<<<<<<<<<<<<<<<<<<<<< Error on this step <<<<<<<<<<< $ nmake install

ERROR:

Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 Copyright (C) Microsoft Corporation. All rights reserved.

[ 2%] Built target models [ 3%] Automatic moc for target openbr [ 3%] Built target openbr_automoc [ 3%] Building CXX object openbr/CMakeFiles/openbr.dir/janus.cpp.obj NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\X86_AM~1\cl.exe' : return code '0xc0000135' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2' Stop.

Could anyone help me on this?

benny-innofaith commented 5 years ago

Yes! The janus library is missing. The docs are incomplete.

Instead of git clone https://github.com/biometrics/openbr.git do git clone https://github.com/biometrics/openbr.git --recursive to fetch janus too.