kthohr / optim

OptimLib: a lightweight C++ library of numerical optimization methods for nonlinear functions

Home Page:https://optimlib.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BaseMatrixOps is empty when installing header files only

osorensen opened this issue · comments

When trying to install with header files only, the directory BaseMatrixOps is empty. The following shell command demonstrates the issue, since the last ls statement shows that the directory is empty.

git clone https://github.com/kthohr/optim.git && cd optim && \
./configure --header-only-version && ls header_only_version/BaseMatrixOps

This further causes the following error when trying to compile with #include "optim.hpp"

fatal error: 'BaseMatrixOps/include/BaseMatrixOps.hpp' file not found
#include "BaseMatrixOps/include/BaseMatrixOps.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Presumably the error message occurs because of this line, i.e., optim.hpp requires the BaseMatrixOps directory to not be empty.

#include "BaseMatrixOps/include/BaseMatrixOps.hpp"

The directory is empty because you did not run:

git submodule update --init