Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when installing : missing file BaseMatrixOps.hpp #67

Closed
BlMarc opened this issue Apr 22, 2024 · 2 comments
Closed

Problem when installing : missing file BaseMatrixOps.hpp #67

BlMarc opened this issue Apr 22, 2024 · 2 comments

Comments

@BlMarc
Copy link

BlMarc commented Apr 22, 2024

Hello,

I tried installing optim, after :

git clone https://github.com/kthohr/optim

./configure -i "/usr/local" -l eigen -p

the make command led to what's below (sorry, it's in French, I can translate if need be) and it is not working :

(15:18 bletry@fedora optim) > make
g++ -std=c++14 -Wall -fPIC -march=native -O3 -ffp-contract=fast -flto -DNDEBUG -fopenmp -DOPTIM_FPN_TYPE=double -DOPTIM_ENABLE_EIGEN_WRAPPERS -I/usr/include/eigen3 -I./include src/line_search/more_thuente.cpp -c -o src/line_search/more_thuente.o
Dans le fichier inclus depuis ./include/optim.hpp:24,
                 depuis src/line_search/more_thuente.cpp:27:
./include/misc/optim_options.hpp:221:10: fatal error: BaseMatrixOps/include/BaseMatrixOps.hpp : No such file or directory
  221 | #include "BaseMatrixOps/include/BaseMatrixOps.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminée.
make: *** [Makefile:54 : src/line_search/more_thuente.o] Erreur 1
@kthohr
Copy link
Owner

kthohr commented Apr 22, 2024

You did not clone the required submodule as well. Please read the installation instructions, specifically:

# clone optim into the current directory
git clone https://github.com/kthohr/optim ./optim

# change directory
cd ./optim

# clone necessary submodules
git submodule update --init

@kthohr kthohr closed this as completed Apr 22, 2024
@BlMarc
Copy link
Author

BlMarc commented Apr 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants