Hello, I use ¨sudo snap install cmake --classic¨ to install 3.26.4 version of cmake. But it is written cmake version 3.22.1.in both I faced with this error.
You can now build and install 'nestml_dopa_module' using make make install
The library file libnestml_dopa_module.so will be installed to /build/nest-8dIXHU/nest-3.4/debian/nest/usr/lib/nest The module can be loaded into NEST using (nestml_dopa_module) Install (in SLI) nest.Install(nestml_dopa_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: /home/atine/test/dopamine-synapse-component [ 25%] Building CXX object CMakeFiles/nestml_dopa_module_module.dir/aeif_cond_alpha_nestml.o [ 50%] Building CXX object CMakeFiles/nestml_dopa_module_module.dir/aeif_cond_alpha_nestml__with_dopamine_synapse_nestml.o [ 75%] Building CXX object CMakeFiles/nestml_dopa_module_module.dir/nestml_dopa_module.o /home/atine/test/dopamine-synapse-component/nestml_dopa_module.cpp:26:10: fatal error: connection_manager_impl.h: No such file or directory 26 | #include "connection_manager_impl.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/nestml_dopa_module_module.dir/build.make:76: CMakeFiles/nestml_dopa_module_module.dir/nestml_dopa_module.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /home/atine/test/dopamine-synapse-component/aeif_cond_alpha_nestml__with_dopamine_synapse_nestml.cpp:29:10: fatal error: numerics.h: No such file or directory 29 | #include "numerics.h" | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/nestml_dopa_module_module.dir/build.make:104: CMakeFiles/nestml_dopa_module_module.dir/aeif_cond_alpha_nestml__with_dopamine_synapse_nestml.o] Error 1 /home/atine/test/dopamine-synapse-component/aeif_cond_alpha_nestml.cpp:29:10: fatal error: numerics.h: No such file or directory 29 | #include "numerics.h" | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/nestml_dopa_module_module.dir/build.make:90: CMakeFiles/nestml_dopa_module_module.dir/aeif_cond_alpha_nestml.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/nestml_dopa_module_module.dir/all] Error 2 make: *** [Makefile:156: all] Error 2 Traceback (most recent call last): File "/home/atine/.local/lib/python3.10/site-packages/pynestml/codegeneration/nest_builder.py", line 176, in build subprocess.check_call(make_all_cmd, stderr=stderr, stdout=stdout, shell=shell, File "/usr/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make', '-j3', 'all']' returned non-zero exit status 2.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/atine/test/create_dopa_synapse.py", line 16, in <module> generate_nest_target(input_path=["/home/atine/nestml/models/neurons/aeif_cond_alpha.nestml", File "/home/atine/.local/lib/python3.10/site-packages/pynestml/frontend/pynestml_frontend.py", line 229, in generate_nest_target generate_target(input_path, target_platform="NEST", target_path=target_path, logging_level=logging_level, File "/home/atine/.local/lib/python3.10/site-packages/pynestml/frontend/pynestml_frontend.py", line 198, in generate_target if not process() == 0: File "/home/atine/.local/lib/python3.10/site-packages/pynestml/frontend/pynestml_frontend.py", line 351, in process _builder.build() File "/home/atine/.local/lib/python3.10/site-packages/pynestml/codegeneration/nest_builder.py", line 183, in build raise GeneratedCodeBuildException(stages_exception[current_stage]) pynestml.exceptions.generated_code_build_exception.GeneratedCodeBuildException: Error occurred during 'make all'! More detailed error messages can be found in stderr. Thank you for your help. Best, Atiyeh
Den mandag den 12. juni 2023 kl. 08.09.08 CEST skrev Benelhedi, Mohamed Ayssar m.benelhedi@fz-juelich.de:
Hello Atiyeh,
Could you provide us with Cmake versions you have used (i.e, before and after the update)
Additionally, I would like to ask if you are running the build of the model manually by typing the Cmake commands or through the NESTML Python package.
In both cases, I recommend showing us the complete thrown error in Order to have more context of the problem.
Best, AyssarFrom: atiye nejadebrahim atiye.nejadebrahim@yahoo.com Sent: Monday, June 12, 2023 12:10:54 AM To: users@nest-simulator.org Subject: [NEST Users] problem with cmake directory Hi all, I am running a nestml code and I have updated cmake,But I always receive this error ¨no such file or directory cmake¨. all .cpp and .h files are built and just the last .so file is remained. Can you help me how I can remove this error? Best,Atiyeh
------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Stefan Müller Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Dr. Ir. Pieter Jansens, Prof. Dr. Astrid Lambrecht, Prof. Dr. Frauke Melchior ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ _______________________________________________ NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org