Below is the output from my 1) "cmake" and 2) "{NEST_INSTALL_DIR}/bin/nest-config --prefix
--includes --libs --cflags" commands.
Thank you,
--Allen
*****************
1) CMAKE OUTPUT:
*****************
nest@nestvm:~/examples/My2Module$ cmake -Dwith-nest=${NEST_INSTALL_DIR}/bin/nest-config ../My2Module
-------------------------------------------------------
my2module 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/home/nest/work/nest-simulator-2.18.0/conngen -I../nest-install/include/nest -I/usr/include -I/usr/include -I/usr/local/include -I/usr/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include -I/usr/lib/x86_64-linux-gnu/openmpi/include
NEST libraries flags : -L/home/nest/work/nest-install/lib -lconngen -lnestutil -lnest -lrandom -lsli -lnestkernel -ltopology -fopenmp /usr/lib/x86_64-linux-gnu/libltdl.so /usr/lib/x86_64-linux-gnu/libgsl.so /usr/lib/x86_64-linux-gnu/libgslcblas.so /usr/local/lib/libneurosim.so /usr/local/lib/libpyneurosim.so /usr/lib/x86_64-linux-gnu/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 'my2module' using
make
make install
The library file libmy2module.so will be installed to
/home/nest/work/nest-install/lib/nest
Help files will be installed to
/home/nest/work/nest-install/share/doc/nest
The module can be loaded into NEST using
(my2module) Install (in SLI)
nest.Install('my2module') (in PyNEST)
The module will be installed into a non-default location!
Make sure to set the environment variables:
export NEST_MODULE_PATH=/home/nest/work/nest-install/lib/nest:$NEST_MODULE_PATH
export SLI_PATH=/home/nest/work/nest-install/share/nest/sli:$SLI_PATH
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nest/examples/My2Module
-----------------------------------------------------
*****************
2) "{NEST_INSTALL_DIR}/bin/nest-config --prefix
--includes --libs --cflags OUTPUT
*****************
nest@nestvm:~$ export NEST_INSTALL_DIR=/home/nest/work/nest-install
nest@nestvm:~$ {NEST_INSTALL_DIR}/bin/nest-config --prefix --includes --libs --cflags
bash: {NEST_INSTALL_DIR}/bin/nest-config: No such file or directory
*****************
then added absolute path to produce output below
*****************
nest@nestvm:~$ /home/nest/work/nest-install/bin/nest-config --prefix --includes --libs --cflags
/home/nest/work/nest-install
-I/home/nest/work/nest-simulator-2.18.0/conngen -I../nest-install/include/nest -I/usr/include -I/usr/include -I/usr/local/include -I/usr/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include -I/usr/lib/x86_64-linux-gnu/openmpi/include
-L/home/nest/work/nest-install/lib -lconngen -lnestutil -lnest -lrandom -lsli -lnestkernel -ltopology -fopenmp /usr/lib/x86_64-linux-gnu/libltdl.so /usr/lib/x86_64-linux-gnu/libgsl.so /usr/lib/x86_64-linux-gnu/libgslcblas.so /usr/local/lib/libneurosim.so /usr/local/lib/libpyneurosim.so /usr/lib/x86_64-linux-gnu/libmusic.so /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-std=c++11 -O2 -Wall -fopenmp -pthread -fdiagnostics-color=auto
*****************
END
*****************