fatal error: third_party/stlplus3/filesystemSimplified/file_system.hpp: no such file or directory: when using openMVG as a third party library
Author: oximi123Created May 1, 2022Updated Jul 29, 2025
I meet such error when trying to use open MVG as a third part library, here is my error report from Clion
In file included from /usr/local/include/openMVG/sfm/sfm.hpp:12,
from /home/hangrui/CLionProjects/untitled/main.cpp:2:
/usr/local/include/openMVG/types.hpp:14:10: fatal error: Eigen/Core: No such file or directory
14 | #include <Eigen/Core>
| ^~~~~~~~~~~~
compilation terminated.Here is my code:
#include <iostream>
#include <openMVG/sfm/sfm.hpp>
using namespace openMVG;
int main() {
openMVG::SIGN(1.0);
std::cout << "Hello, World!" << std::endl;
return 0;
}
Here is my cmakelist:
cmake_minimum_required(VERSION 3.22)
project(untitled)
set(CMAKE_CXX_STANDARD 14)
find_package(OpenMVG REQUIRED)
include_directories(${OPENMVG_INCLUDE_DIRS})
add_executable(untitled main.cpp)
target_link_libraries(untitled ${OPENMVG_LIBRARIES})Source: openMVG/openMVG