Git Product home page Git Product logo

Comments (15)

marla729 avatar marla729 commented on June 19, 2024

Hi,
I have the same issue here. Did you eventually figure out how to fix it?
Thanks!

from sferes2.

ducha-aiki avatar ducha-aiki commented on June 19, 2024

@marla729 unfortunately, no. But since I need sferes for adversarial attack library, I just have found another one, called foolbox.

from sferes2.

jbmouret avatar jbmouret commented on June 19, 2024

Sorry for answering this only now... but can you tell me which version of sferes you were using (the master?) and on which OS/compiler?

Thanks.

from sferes2.

 avatar commented on June 19, 2024

@jbmouret
Hi,I have the same issue here. can you tell me how to fix it?
Thanks!

from sferes2.

jbmouret avatar jbmouret commented on June 19, 2024

Can you tell me which version of sferes and which OS/Compiler ?

from sferes2.

 avatar commented on June 19, 2024

@jbmouret g++ and steres2 in ubuntu16.4

from sferes2.

jbmouret avatar jbmouret commented on June 19, 2024

from sferes2.

 avatar commented on June 19, 2024

5.4.0

from sferes2.

jbmouret avatar jbmouret commented on June 19, 2024

Thanks. It should work with 5.4.0 (I just checked). Can you copy/paste the output of ./waf configure ?

from sferes2.

 avatar commented on June 19, 2024

Thanks. It should work with 5.4.0 (I just checked). Can you copy/paste the output of ./waf configure ?

sure.Thanks!

`module : [modules/nn2]
module : [modules/map_elite]
Check for program g++ or c++ : /usr/bin/g++
Check for program cpp : /usr/bin/cpp
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
boost headers : Version 1_58 (/usr/include)
library boost_serialization : not found
library boost_filesystem : not found
library boost_system : not found
library boost_unit_test_framework : not found
library boost_program_options : not found
library boost_graph : not found
library boost_mpi : not found
library boost_python : not found
library boost_thread : not found
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header mpi.h : ok /usr/include/mpi
Checking for SDL (optional) : not found
Checking for header Eigen/Core : ok /usr/include/eigen3
Check for program ode-config : not found
Checking for ODE (optional) : not found
Checking for GSL (optional) : not found

--- configuration ---
compiler:

  • CXX: gcc
    boost version: 1_58
    mpi: False
    Compilation flags :
  • default:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -DNDEBUG -O3 -ffast-math
    LINKFLAGS:
  • debug:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -O1 -ggdb3 -DDBG_ENABLED
    LINKFLAGS:

--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompagnying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.248s)
`

from sferes2.

jbmouret avatar jbmouret commented on June 19, 2024

OK. So the issue is that you are not in C++11 (it should have been detected automatically). I will check what could be wrong in the detection.

Also, your boost libraries are not found (--boost-libs=/path/to/boost/libs).

The waf configure should look like this (see the compilation options):

Command-line options for module [modules/nn2] :  -> no option found 
Command-line options for exp [exp/coco_elite] :  -> OK 
Command-line options for exp [exp/map_elites_hexapod] :  -> OK 
Command-line options for exp [exp/example]            :  -> OK 
Command-line options for exp [exp/map_elites_softbots_orig] :  -> OK 
Setting top to                           : /home/jmouret/git/sferes2 
Setting out to                           : /home/jmouret/git/sferes2/build 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking boost includes                  : 1_58 
Checking boost libs                      : ok 
Checking Intel TBB includes (optional)   : /usr/include 
Checking Intel TBB libs (optional)       : /usr/lib/x86_64-linux-gnu 
Checking for MPI include (optional)      : ok 
Checking for MPI libs (optional)         : ok 
Checking for Eigen                       : ok 
Configuring for module: [modules/nn2]
 modules/nn2 -> no configuration found

--- configuration ---
compiler(s):
 * CXX: gcc
boost version: 1_58
mpi: True
Compilation flags :
   CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated  -Wno-unused -DSFERES_ROOT="/home/jmouret/git/sferes2"  -std=c++11 -DMPI_ENABLED -DEIGEN3_ENABLED 
   LINKFLAGS: 

from sferes2.

 avatar commented on June 19, 2024

@jbmouret Thanks.But I don't know why my boost libraries and c++11 are not found ,my boost libraries was installed successfully.I don't know how to fix it, thank you for your help.

from sferes2.

 avatar commented on June 19, 2024

@jbmouret Hi,Can you help me solve this problem? my output of waf configure and waf build are below.thanks!
waf configure
`module : [modules/nn2]
module : [modules/map_elite]
Check for program g++ or c++ : /usr/bin/g++
Check for program cpp : /usr/bin/cpp
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
boost headers : Version 1_58 (/usr/include)
library boost_serialization : ok
library boost_filesystem : ok
library boost_system : ok
library boost_unit_test_framework : ok
library boost_program_options : ok
library boost_graph : ok
library boost_mpi : ok
library boost_python : ok
library boost_thread : ok
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header mpi.h : ok /usr/include/mpi
Checking for SDL (optional) : not found
Checking for header Eigen/Core : ok /usr/include/eigen3
Check for program ode-config : not found
Checking for ODE (optional) : not found
Checking for GSL (optional) : not found

--- configuration ---
compiler:

  • CXX: gcc
    boost version: 1_58
    mpi: True
    Compilation flags :
  • default:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DMPI_ENABLED -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -DNDEBUG -O3 -ffast-math
    LINKFLAGS:
  • debug:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DMPI_ENABLED -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -O1 -ggdb3 -DDBG_ENABLED
    LINKFLAGS:

--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompagnying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.311s)`

waf build
module : [modules/nn2] module : [modules/map_elite] Waf: Entering directory /home/rosey/Documents/ML/DNN/sferes/build'
Entering directory /home/rosey/Documents/ML/DNN/sferes' Entering directory /home/rosey/Documents/ML/DNN/sferes/modules/'
Entering directory /home/rosey/Documents/ML/DNN/sferes/modules/' [18/90] cxx: modules/nn2/test_hyper_nn.cpp -> build/default/modules/nn2/test_hyper_nn_4.o [19/90] cxx: modules/nn2/test_dnn_ff.cpp -> build/default/modules/nn2/test_dnn_ff_5.o [21/90] cxx: modules/nn2/bench_nn.cpp -> build/default/modules/nn2/bench_nn_7.o [22/90] cxx: modules/nn2/test_hyper_nn_anh.cpp -> build/default/modules/nn2/test_hyper_nn_anh_8.o In file included from ../modules/nn2/test_dnn_ff.cpp:52:0: ../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params>::max_p’: ../sferes/phen/parameters.hpp:61:52: required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params>; Fit = sferes::fit::FitDummy<>; Params = Params; Exact = stc::Itself]’ ../modules/nn2/phen_dnn.hpp:58:8: required from ‘void sferes::phen::Dnn<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::DnnFF<nn::Neuron<nn::PfWSum<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> >, nn::AfTanh<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> > >, nn::Connection<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> >, Params>; Fit = sferes::fit::FitDummy<Params>; Params = Params; Exact = stc::Itself]’ ../modules/nn2/test_dnn_ff.cpp:123:13: required from here ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params::parameters::max’ is not usable in a constant expression SFERES_CONST float max_p = Params::parameters::max; ^ ../modules/nn2/test_dnn_ff.cpp:75:24: note: ‘Params::parameters::max’ does not have integral or enumeration type SFERES_CONST float max = 5.0f; ^ In file included from ../modules/nn2/test_hyper_nn.cpp:41:0: ../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>::max_p’: ../sferes/phen/parameters.hpp:61:52: required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params1>; Fit = sferes::fit::FitDummy<>; Params = Params1; Exact = stc::Itself]’ ../modules/nn2/gen_hyper_nn.hpp:68:11: required from ‘void sferes::gen::HyperNn<W, Params>::init() [with W = sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>; Params = Params1]’ ../modules/nn2/test_hyper_nn.cpp:196:13: required from here ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params1::parameters::max’ is not usable in a constant expression SFERES_CONST float max_p = Params::parameters::max; ^ ../modules/nn2/test_hyper_nn.cpp:78:24: note: ‘Params1::parameters::max’ does not have integral or enumeration type SFERES_CONST float max = 2.0f; ^ In file included from ../modules/nn2/test_hyper_nn.cpp:41:0: ../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params2>, sferes::fit::FitDummy<>, Params2>::max_p’: ../sferes/phen/parameters.hpp:61:52: required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params2>; Fit = sferes::fit::FitDummy<>; Params = Params2; Exact = stc::Itself]’ ../modules/nn2/phen_hyper_nn.hpp:121:11: required from ‘void sferes::phen::HyperNn<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::HyperNn<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params2>, sferes::fit::FitDummy<>, Params2>, Params2>; Fit = sferes::fit::FitDummy<>; Params = Params2; Exact = stc::Itself]’ ../modules/nn2/test_hyper_nn.cpp:235:17: required from here ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params2::parameters::max’ is not usable in a constant expression SFERES_CONST float max_p = Params::parameters::max; ^ ../modules/nn2/test_hyper_nn.cpp:135:24: note: ‘Params2::parameters::max’ does not have integral or enumeration type SFERES_CONST float max = 2.0f; ^ In file included from ../modules/nn2/test_hyper_nn_anh.cpp:41:0: ../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>::max_p’: ../sferes/phen/parameters.hpp:61:52: required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params1>; Fit = sferes::fit::FitDummy<>; Params = Params1; Exact = stc::Itself]’ ../modules/nn2/gen_hyper_nn.hpp:68:11: required from ‘void sferes::gen::HyperNn<W, Params>::init() [with W = sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>; Params = Params1]’ ../modules/nn2/test_hyper_nn_anh.cpp:209:15: required from here ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params1::parameters::max’ is not usable in a constant expression SFERES_CONST float max_p = Params::parameters::max; ^ ../modules/nn2/test_hyper_nn_anh.cpp:81:24: note: ‘Params1::parameters::max’ does not have integral or enumeration type SFERES_CONST float max = 2.0f; ^ Waf: Leaving directory /home/rosey/Documents/ML/DNN/sferes/build'
Build failed:
-> task failed (err #1):
{task: cxx test_dnn_ff.cpp -> test_dnn_ff_5.o}
-> task failed (err #1):
{task: cxx test_hyper_nn.cpp -> test_hyper_nn_4.o}
-> task failed (err #1):
{task: cxx test_hyper_nn_anh.cpp -> test_hyper_nn_anh_8.o}
`

from sferes2.

jbmouret avatar jbmouret commented on June 19, 2024

Can you try to configure with the cpp14 option? like this:

./waf configure --cpp14=yes

(and copy-paste the output).

from sferes2.

 avatar commented on June 19, 2024

@jbmouret ok,thanks
`./waf configure --boost-libs=/usr/lib64 cpp14=yes
module : [modules/nn2]
module : [modules/map_elite]
Check for program g++ or c++ : /usr/bin/g++
Check for program cpp : /usr/bin/cpp
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
boost headers : Version 1_58 (/usr/include)
library boost_serialization : ok
library boost_filesystem : ok
library boost_system : ok
library boost_unit_test_framework : ok
library boost_program_options : ok
library boost_graph : ok
library boost_mpi : ok
library boost_python : ok
library boost_thread : ok
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header mpi.h : ok /usr/include/mpi
Checking for SDL (optional) : not found
Checking for header Eigen/Core : ok /usr/include/eigen3
Check for program ode-config : not found
Checking for ODE (optional) : not found
Checking for GSL (optional) : not found

--- configuration ---
compiler:

  • CXX: gcc
    boost version: 1_58
    mpi: True
    Compilation flags :
  • default:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DMPI_ENABLED -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -DNDEBUG -O3 -ffast-math
    LINKFLAGS:
  • debug:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DMPI_ENABLED -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -O1 -ggdb3 -DDBG_ENABLED
    LINKFLAGS:

--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompagnying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.238s)
error: No such command 'cpp14=yes'
`

from sferes2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.