Hi,
I try to install csa package with libneurosim. The installation of libneurosim with python support take place without any issues. When I try to install csa with these commands:
./autogen.sh
./configure ./configure --prefix=$HOME/opt/csa --with-libneurosim=$HOME/opt/libneurosim
make
The installation fails at the make step with these output errors:
_/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:189: undefined reference to PyGILState_Ensure' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:190: undefined reference toPyList_New'
/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:197: undefined reference to PyObject_CallFunctionObjArgs' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:198: undefined reference toPyList_SetItem'
/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:202: undefined reference to PyLong_FromLong' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:202: undefined reference toPyObject_CallFunctionObjArgs'
/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:209: undefined reference to PyGILState_Release' .libs/libpycsa_la-pycsa.o: In functionerror(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)':
/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:53: undefined reference to PyGILState_Release' .libs/libpycsa_la-pycsa.o: In functionPyCSA::PyCSAGenerator::setMask(std::vector<ConnectionGenerator::Mask, std::allocator >&, int)':
/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:214: undefined reference to `PyGILState_Release'
collect2: error: ld returned 1 exit status
Makefile:444: recipe for target 'libpycsa.la' failed
make[2]: ** [libpycsa.la] Error 1
make[2]: Leaving directory '/home/yannick/Downloads/csa-master/libpycsa'
Makefile:420: recipe for target 'all-recursive' failed
make[1]: [all-recursive] Error 1
make[1]: Leaving directory '/home/yannick/Downloads/csa-master'
Makefile:350: recipe for target 'all' failed
make: * [all] Error 2_
Hi, I try to install csa package with libneurosim. The installation of libneurosim with python support take place without any issues. When I try to install csa with these commands: ./autogen.sh ./configure ./configure --prefix=$HOME/opt/csa --with-libneurosim=$HOME/opt/libneurosim make
The installation fails at the make step with these output errors:
_/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:189: undefined reference to, std::allocator >)':
/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:53: undefined reference to >&, int)':
/home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:214: undefined reference to `PyGILState_Release'
collect2: error: ld returned 1 exit status
Makefile:444: recipe for target 'libpycsa.la' failed
make[2]: ** [libpycsa.la] Error 1
make[2]: Leaving directory '/home/yannick/Downloads/csa-master/libpycsa'
Makefile:420: recipe for target 'all-recursive' failed
make[1]: [all-recursive] Error 1
make[1]: Leaving directory '/home/yannick/Downloads/csa-master'
Makefile:350: recipe for target 'all' failed
make: * [all] Error 2_
PyGILState_Ensure' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:190: undefined reference to
PyList_New' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:197: undefined reference toPyObject_CallFunctionObjArgs' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:198: undefined reference to
PyList_SetItem' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:202: undefined reference toPyLong_FromLong' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:202: undefined reference to
PyObject_CallFunctionObjArgs' /home/yannick/Downloads/csa-master/libpycsa/pycsa.cpp:209: undefined reference toPyGILState_Release' .libs/libpycsa_la-pycsa.o: In function
error(std::__cxx11::basic_string<char, std::char_traitsPyGILState_Release' .libs/libpycsa_la-pycsa.o: In function
PyCSA::PyCSAGenerator::setMask(std::vector<ConnectionGenerator::Mask, std::allocatorI work on ubuntu 18.04 with python 3.7.3
Thank you