dorian3d / DBoW2

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

Compile Errors in Ubuntu14.04 #8

Closed LiliMeng closed 8 years ago

LiliMeng commented 8 years ago

Hi,

   Thanks a lot for the code. It works great after executing $cmake, but after execute $make, it has the following errors. Any suggestions? Thanks a lot!

Linking CXX executable demo /usr/bin/ld: cannot open output file demo: Is a directory collect2: error: ld returned 1 exit status make[2]: * [demo] Error 1 make[1]: * [CMakeFiles/demo.dir/all] Error 2 make: *\ [all] Error 2

LiliMeng commented 8 years ago

Solved!:-D

Change the Line26 and 27 the demo to Demo in CMakeLists.txt as the original executable name demo is the same with directory name demo:-D

add_executable(Demo demo/demo.cpp) target_link_libraries(Demo ${PROJECT_NAME} ${OpenCV_LIBS} ${DLib_LIBS})