Hello,
I am running Arch Linux on a Raspberry Pi and I am having some trouble to compile the Gizmo Daemon to get my Powermate working. After applying the changes for Boost 1.46 as described in this forum and adding the "-lboost_system" argument to the /gizmod-3.5/build/gizmod/CMakeFiles/gizmod.dir/link.txt file, I still get the following compile error:
[root@alarmpi build]# make [ 29%] Built target H [ 87%] Built target Gizmod [ 88%] Building CXX object gizmod/CMakeFiles/gizmod.dir/GizmoDaemon.o /root/gizmod-3.5/gizmod/GizmoDaemon.cpp: In member function 'void GizmoDaemon::initPython()': /root/gizmod-3.5/gizmod/GizmoDaemon.cpp:1332:57: error: 'initGizmoDaemon' was not declared in this scope make[2]: *** [gizmod/CMakeFiles/gizmod.dir/GizmoDaemon.o] Error 1 make[1]: *** [gizmod/CMakeFiles/gizmod.dir/all] Error 2 make: *** [all] Error 2
this might come a bit late but for the fellow googlers, here goes.
The problem at least in my case was that cmake was trying to use Python 3.x where it should have used Python 2.7. Configuring cmake with the following solved the problem:
Hello,
I am running Arch Linux on a Raspberry Pi and I am having some trouble to compile the Gizmo Daemon to get my Powermate working. After applying the changes for Boost 1.46 as described in this forum and adding the "-lboost_system" argument to the /gizmod-3.5/build/gizmod/CMakeFiles/gizmod.dir/link.txt file, I still get the following compile error:
[root@alarmpi build]# make
[ 29%] Built target H
[ 87%] Built target Gizmod
[ 88%] Building CXX object gizmod/CMakeFiles/gizmod.dir/GizmoDaemon.o
/root/gizmod-3.5/gizmod/GizmoDaemon.cpp: In member function 'void GizmoDaemon::initPython()':
/root/gizmod-3.5/gizmod/GizmoDaemon.cpp:1332:57: error: 'initGizmoDaemon' was not declared in this scope
make[2]: *** [gizmod/CMakeFiles/gizmod.dir/GizmoDaemon.o] Error 1
make[1]: *** [gizmod/CMakeFiles/gizmod.dir/all] Error 2
make: *** [all] Error 2
The specific line in Code is the following:
PyImport_AppendInittab((char *) "GizmoDaemon", &initGizmoDaemon);
Any help would be appreciated. Thank you!
Chris
Last edit: Christopher Rieke 2013-05-19
Hi Christopher,
this might come a bit late but for the fellow googlers, here goes.
The problem at least in my case was that cmake was trying to use Python 3.x where it should have used Python 2.7. Configuring cmake with the following solved the problem:
cmake -DCMAKE_INSTALL_PREFIX=/opt/gizmod/ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so
where, from cmake help:
PYTHON_LIBRARY - path to the python library
PYTHON_INCLUDE_DIR - path to where Python.h is found