fatal error: boost/sort/spreadsort/spreadsort.hpp: No
such file or directory
It looks like there's a problem with your Boost installation. Perhaps Boost is
installed in a non-standard location, or not at all? It is recommended (but not strictly
necessary) to compile NEST Simulator itself with Boost, because it yields improvements in
performance.
On Mon, Feb 28, 2022, at 14:31, Salvo T wrote:
Thanks for your answer. I modified the part of the
code where I have
the error, now it is:
generate_nest_target(input_path="izhikevich_solution.nestml",
target_path="/tmp/nestml-component",
module_name="nestml_izhikevich_module",
suffix="_nestml",
logging_level="ERROR",
codegen_opts={"nest_path":
NEST_SIMULATOR_INSTALL_LOCATION})
The output of the Ubuntu terminal is the following:
-- N E S T --
Copyright (C) 2004 The NEST Initiative
Version: UNKNOWN
Built: Jan 18 2022 13:53:41
This program is provided AS IS and comes with
NO WARRANTY. See the file LICENSE for details.
Problems or suggestions?
Visit
https://www.nest-simulator.org
Type 'nest.help()' to find out more about NEST.
-- The CXX compiler identification is GNU 9.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-------------------------------------------------------
nestml_izhikevich_module Configuration Summary
-------------------------------------------------------
C++ compiler : /usr/bin/c++
Build static libs : OFF
C++ compiler flags :
NEST compiler flags : -std=c++11 -O2 -Wall -fopenmp -pthread
-fdiagnostics-color=auto
NEST include dirs : -I/opt/nest/include/nest -I/usr/include
-I/usr/include -I/usr/include -I/opt/music-install/include
-I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi
-I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/include
NEST libraries flags : -L/opt/nest/lib/nest -lnestutil -lnest -lsli
-lnestkernel -fopenmp /usr/lib/x86_64-linux-gnu/libltdl.so
/usr/lib/x86_64-linux-gnu/libreadline.so
/usr/lib/x86_64-linux-gnu/libncurses.so
/usr/lib/x86_64-linux-gnu/libgsl.so
/usr/lib/x86_64-linux-gnu/libgslcblas.so
/opt/music-install/lib/libmusic.so
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-------------------------------------------------------
You can now build and install 'nestml_izhikevich_module' using
make
make install
The library file libnestml_izhikevich_module.so will be installed to
/opt/nest/lib/nest
The module can be loaded into NEST using
(nestml_izhikevich_module) Install (in SLI)
nest.Install(nestml_izhikevich_module) (in PyNEST)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.22)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/nestml-component
[ 16%] Building CXX object
CMakeFiles/nestml_izhikevich_module_module.dir/nestml_izhikevich_module.o
In file included from /opt/nest/include/nest/connector_base.h:35,
from /opt/nest/include/nest/connection_manager.h:36,
from
/opt/nest/include/nest/connection_manager_impl.h:26,
from
/tmp/nestml-component/nestml_izhikevich_module.cpp:26:
/opt/nest/include/nest/sort.h:36:10: fatal error:
boost/sort/spreadsort/spreadsort.hpp: No such file or directory
36 | #include <boost/sort/spreadsort/spreadsort.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: ***
[CMakeFiles/nestml_izhikevich_module_module.dir/build.make:76:
CMakeFiles/nestml_izhikevich_module_module.dir/nestml_izhikevich_module.o]
Error 1
make[1]: *** [CMakeFiles/Makefile2:112:
CMakeFiles/nestml_izhikevich_module_module.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Cheers!
Salvo
_______________________________________________
NEST Users mailing list -- users(a)nest-simulator.org
To unsubscribe send an email to users-leave(a)nest-simulator.org