dorian3d / DBoW2

Enhanced hierarchical bag-of-word library for C++
Other
851 stars 367 forks source link

question about compiling v1.0 on windows #21

Open arifle opened 7 years ago

arifle commented 7 years ago

I am trying to compile your DBoW2 on Windows (the one forked by Jose Luis). The IDE is VS2010 and I use OpenCV2410. I have successfully compiled you DLib but I was stopped while compiling DBoW2. The problem happens at compiling the 'demo' project so that I got 4 projects successfully compiled and 1 failed at last. The VS gives an error of LNK1104: cannot open DBoW2.lib. I have not solved it so far. The dynamic library, DBoW2.dll, has already been generated under the Debug folder but I have no idea what's wrong with .lib file. It seems that I have to modify something in CMakeLists.txt but I don't know very much about CMakeLists.txt. Any idea about that. Thank you.

jcmm33 commented 7 years ago

Either edit the cmake file, or change the type of DBoW2 in vs.net to produce a static library instead of a dll.