Comment 1 for bug 938293

tmodes (tmodes) wrote :

Hi Bruno,

try the following:
in CMakeLists.txt:
remove line 110: include_directories( ${CMAKE_SOURCE_DIR}/src/foreign )
and add instead after line 288: FIND_PACKAGE(flann)

IF(NOT FLANN_FOUND)
  include_directories( ${CMAKE_SOURCE_DIR}/src/foreign )
ENDIF()

Maybe a further change to src/hugin_base/algorithms/optimizer/PhotometricOptimizer.cpp is necessary
Replace
#include <levmar/lm.h>
with
#include <foreign/levmar/lm.h>