CMA-ES / libcmaes

libcmaes is a multithreaded C++11 library with Python bindings for high performance blackbox stochastic optimization using the CMA-ES algorithm for Covariance Matrix Adaptation Evolution Strategy
Other
315 stars 79 forks source link

fatal error: cmaes_export.h: No such file or directory #211

Closed raghavsood1996 closed 3 years ago

raghavsood1996 commented 3 years ago

I am getting this error when I try to build the library. Any solutions?

make  all-recursive
make[1]: Entering directory '/home/raghav/test/libcmaes/libcmaes'
Making all in src
make[2]: Entering directory '/home/raghav/test/libcmaes/libcmaes/src'
depbase=`echo cmastrategy.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include/eigen3  -Wall -Wextra -g -O3 -fopenmp -g -O2 -std=gnu++11 -MT cmastrategy.lo -MD -MP -MF $depbase.Tpo -c -o cmastrategy.lo cmastrategy.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/eigen3 -Wall -Wextra -g -O3 -fopenmp -g -O2 -std=gnu++11 -MT cmastrategy.lo -MD -MP -MF .deps/cmastrategy.Tpo -c cmastrategy.cc  -fPIC -DPIC -o .libs/cmastrategy.o
In file included from genopheno.h:26:0,
                 from parameters.h:26,
                 from cmaparameters.h:25,
                 from candidate.h:26,
                 from esostrategy.h:26,
                 from cmastrategy.h:25,
                 from cmastrategy.cc:24:
pwq_bound_strategy.h:26:26: fatal error: cmaes_export.h: No such file or directory
compilation terminated.
Makefile:522: recipe for target 'cmastrategy.lo' failed
make[2]: *** [cmastrategy.lo] Error 1
make[2]: Leaving directory '/home/raghav/test/libcmaes/libcmaes/src'
Makefile:499: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/raghav/test/libcmaes/libcmaes'
Makefile:387: recipe for target 'all' failed
make: *** [all] Error 2
beniz commented 3 years ago

Hi, I believe the build section has the answer, https://github.com/beniz/libcmaes#build , echo "#define CMAES_EXPORT" > cmaes_export.h ?