Problems (#1) - Having trouble compiling (#105) - Message List
Configure seems to do fine, but when I run make I get a bunch of syntax errors that I don't know how to fix (make output included below.) I'm pretty sure I got all the dependencies listed in the readme.
I get these errors with trunk, dev, and the latest RC, since others can compile it I'm pretty sure it's my system rather than the code. I apologize if I'm missing something obvious, I'm effectively brand new to actually compiling.
Thanks you for any assistance.
make -C libcwiid make[1]: Entering directory `/media/data/workspace/cwiid-trunk/libcwiid' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/media/data/workspace/cwiid-trunk/libcwiid' make -C wmgui make[1]: Entering directory `/media/data/workspace/cwiid-trunk/wmgui' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/media/data/workspace/cwiid-trunk/wmgui' make -C wminput make[1]: Entering directory `/media/data/workspace/cwiid-trunk/wminput' gcc -g -Wall -W -DHAVE_CONFIG_H -I/media/data/workspace/cwiid-trunk/common/include -I../libcwiid -DWMINPUT_CONFIG_DIR=\"/usr/local/etc/cwiid/wminput\" -DCWIID_PLUGINS_DIR=\"/usr/local/lib/cwiid/plugins\" -I/usr/include/python2.5 -c -o py_plugin.o py_plugin.c make[1]: Leaving directory `/media/data/workspace/cwiid-trunk/wminput' py_plugin.c:38:20: error: Python.h: No such file or directory py_plugin.c:45:26: error: structmember.h: No such file or directory py_plugin.c:56: error: expected specifier-qualifier-list before ‘PyObject’ py_plugin.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:68: error: expected declaration specifiers or ‘...’ before ‘PyObject’ py_plugin.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token py_plugin.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Module_Methods’ py_plugin.c: In function ‘py_init’: py_plugin.c:92: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:92: error: (Each undeclared identifier is reported only once py_plugin.c:92: error: for each function it appears in.) py_plugin.c:92: error: ‘PyObj’ undeclared (first use in this function) py_plugin.c:92: error: ‘PyWmPluginModule’ undeclared (first use in this function) py_plugin.c:92: warning: left-hand operand of comma expression has no effect py_plugin.c:95: warning: implicit declaration of function ‘Py_InitializeEx’ py_plugin.c:97: error: ‘PyCWiidModule’ undeclared (first use in this function) py_plugin.c:97: warning: implicit declaration of function ‘PyImport_ImportModule’ py_plugin.c:98: warning: implicit declaration of function ‘PyErr_Print’ py_plugin.c:102: error: ‘PySysModule’ undeclared (first use in this function) py_plugin.c:107: error: ‘PyPath’ undeclared (first use in this function) py_plugin.c:107: warning: implicit declaration of function ‘PyObject_GetAttrString’ py_plugin.c:117: error: ‘ConvertMesgArray’ undeclared (first use in this function) py_plugin.c:117: warning: implicit declaration of function ‘PyCObject_AsVoidPtr’ py_plugin.c:118: warning: implicit declaration of function ‘Py_DECREF’ py_plugin.c:121: warning: implicit declaration of function ‘Py_InitModule3’ py_plugin.c:121: error: ‘Module_Methods’ undeclared (first use in this function) py_plugin.c:128: warning: implicit declaration of function ‘PyModule_AddIntConstant’ py_plugin.c:154: warning: implicit declaration of function ‘Py_Finalize’ py_plugin.c: In function ‘py_wiimote’: py_plugin.c:161: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:161: error: ‘PyWiimoteType’ undeclared (first use in this function) py_plugin.c:161: error: ‘PyCObject’ undeclared (first use in this function) py_plugin.c:161: warning: left-hand operand of comma expression has no effect py_plugin.c:161: error: ‘PyArgs’ undeclared (first use in this function) py_plugin.c:161: warning: left-hand operand of comma expression has no effect py_plugin.c:163: error: ‘PyCWiidModule’ undeclared (first use in this function) py_plugin.c:168: warning: implicit declaration of function ‘PyCObject_FromVoidPtr’ py_plugin.c:174: warning: implicit declaration of function ‘Py_BuildValue’ py_plugin.c:183: error: ‘PyWiimote’ undeclared (first use in this function) py_plugin.c:183: warning: implicit declaration of function ‘PyObject_CallObject’ py_plugin.c: In function ‘py_wiimote_deinit’: py_plugin.c:198: error: ‘PyWiimote’ undeclared (first use in this function) py_plugin.c: In function ‘py_deinit’: py_plugin.c:203: error: ‘PyCWiidModule’ undeclared (first use in this function) py_plugin.c:204: error: ‘PyPath’ undeclared (first use in this function) py_plugin.c:205: error: ‘PySysModule’ undeclared (first use in this function) py_plugin.c: In function ‘py_plugin_open’: py_plugin.c:211: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:211: error: ‘handle’ undeclared (first use in this function) py_plugin.c:211: error: ‘info’ undeclared (first use in this function) py_plugin.c:211: warning: left-hand operand of comma expression has no effect py_plugin.c:212: error: ‘PyStr’ undeclared (first use in this function) py_plugin.c:213: error: ‘PyErrType’ undeclared (first use in this function) py_plugin.c:213: error: ‘PyErr’ undeclared (first use in this function) py_plugin.c:213: warning: left-hand operand of comma expression has no effect py_plugin.c:213: error: ‘PyTraceback’ undeclared (first use in this function) py_plugin.c:213: warning: left-hand operand of comma expression has no effect py_plugin.c:215: warning: implicit declaration of function ‘PyString_FromString’ py_plugin.c:220: warning: implicit declaration of function ‘PyList_Insert’ py_plugin.c:220: error: ‘PyPath’ undeclared (first use in this function) py_plugin.c:227: warning: implicit declaration of function ‘PyErr_Fetch’ py_plugin.c:228: warning: implicit declaration of function ‘PyErr_NormalizeException’ py_plugin.c:229: warning: implicit declaration of function ‘PyErr_GivenExceptionMatches’ py_plugin.c:229: error: ‘PyExc_ImportError’ undeclared (first use in this function) py_plugin.c:231: warning: implicit declaration of function ‘Py_XDECREF’ py_plugin.c:235: warning: implicit declaration of function ‘PyErr_Restore’ py_plugin.c:239: warning: implicit declaration of function ‘PySequence_DelItem’ py_plugin.c:259: error: ‘struct py_plugin’ has no member named ‘init’ py_plugin.c:260: error: ‘struct py_plugin’ has no member named ‘exec’ py_plugin.c:270: error: ‘struct py_plugin’ has no member named ‘init’ py_plugin.c:275: warning: implicit declaration of function ‘PyCallable_Check’ py_plugin.c:275: error: ‘struct py_plugin’ has no member named ‘init’ py_plugin.c:279: error: ‘struct py_plugin’ has no member named ‘exec’ py_plugin.c:284: error: ‘struct py_plugin’ has no member named ‘exec’ py_plugin.c:294: error: expected expression before ‘)’ token py_plugin.c:297: error: too many arguments to function ‘py_plugin_info’ py_plugin.c:299: error: expected expression before ‘)’ token py_plugin.c:302: error: expected expression before ‘)’ token py_plugin.c:304: error: ‘struct py_plugin’ has no member named ‘handle’ py_plugin.c:316: error: ‘struct py_plugin’ has no member named ‘init’ py_plugin.c:317: error: ‘struct py_plugin’ has no member named ‘init’ py_plugin.c:319: error: ‘struct py_plugin’ has no member named ‘exec’ py_plugin.c:320: error: ‘struct py_plugin’ has no member named ‘exec’ py_plugin.c: In function ‘py_plugin_close’: py_plugin.c:332: error: ‘struct py_plugin’ has no member named ‘PyInfo’ py_plugin.c:333: error: ‘struct py_plugin’ has no member named ‘init’ py_plugin.c:334: error: ‘struct py_plugin’ has no member named ‘exec’ py_plugin.c:335: error: ‘struct py_plugin’ has no member named ‘handle’ py_plugin.c: At top level: py_plugin.c:339: error: expected declaration specifiers or ‘...’ before ‘PyObject’ py_plugin.c: In function ‘py_plugin_info’: py_plugin.c:341: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:341: error: ‘PyButtonInfo’ undeclared (first use in this function) py_plugin.c:341: error: ‘PyAxisInfo’ undeclared (first use in this function) py_plugin.c:341: warning: left-hand operand of comma expression has no effect py_plugin.c:341: error: ‘PyParamInfo’ undeclared (first use in this function) py_plugin.c:341: warning: left-hand operand of comma expression has no effect py_plugin.c:342: error: ‘PyObj’ undeclared (first use in this function) py_plugin.c:345: error: ‘struct py_plugin’ has no member named ‘PyInfo’ py_plugin.c:346: error: ‘info’ undeclared (first use in this function) py_plugin.c:351: warning: implicit declaration of function ‘PyArg_ParseTuple’ py_plugin.c:351: error: ‘struct py_plugin’ has no member named ‘PyInfo’ py_plugin.c:357: warning: implicit declaration of function ‘PySequence_Check’ py_plugin.c:363: warning: implicit declaration of function ‘PySequence_Size’ py_plugin.c:365: warning: implicit declaration of function ‘PySequence_GetItem’ py_plugin.c:370: warning: implicit declaration of function ‘PyString_AsString’ py_plugin.c:370: warning: assignment makes pointer from integer without a cast py_plugin.c:426: error: ‘struct py_plugin’ has no member named ‘PyInfo’ py_plugin.c:427: error: ‘struct py_plugin’ has no member named ‘PyInfo’ py_plugin.c: In function ‘py_plugin_init’: py_plugin.c:435: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:435: error: ‘PyArgs’ undeclared (first use in this function) py_plugin.c:437: error: ‘PyWiimote’ undeclared (first use in this function) py_plugin.c:442: error: ‘struct py_plugin’ has no member named ‘init’ py_plugin.c: In function ‘py_plugin_exec’: py_plugin.c:456: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:456: error: ‘PyArgs’ undeclared (first use in this function) py_plugin.c:456: error: ‘PyMesg’ undeclared (first use in this function) py_plugin.c:456: warning: left-hand operand of comma expression has no effect py_plugin.c:456: error: ‘PyData’ undeclared (first use in this function) py_plugin.c:456: warning: left-hand operand of comma expression has no effect py_plugin.c:456: error: ‘PyButtonData’ undeclared (first use in this function) py_plugin.c:456: warning: left-hand operand of comma expression has no effect py_plugin.c:456: error: ‘PyAxisData’ undeclared (first use in this function) py_plugin.c:456: warning: left-hand operand of comma expression has no effect py_plugin.c:456: error: ‘PyObj’ undeclared (first use in this function) py_plugin.c:456: warning: left-hand operand of comma expression has no effect py_plugin.c:459: warning: implicit declaration of function ‘ConvertMesgArray’ py_plugin.c:472: error: ‘struct py_plugin’ has no member named ‘exec’ py_plugin.c:506: error: ‘Py_True’ undeclared (first use in this function) py_plugin.c:509: error: ‘Py_False’ undeclared (first use in this function) py_plugin.c:531: error: ‘Py_None’ undeclared (first use in this function) py_plugin.c:534: warning: implicit declaration of function ‘PyInt_Check’ py_plugin.c:542: warning: implicit declaration of function ‘PyInt_AsLong’ py_plugin.c: In function ‘py_plugin_param_int’: py_plugin.c:555: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:555: error: ‘PyObj’ undeclared (first use in this function) py_plugin.c:559: warning: implicit declaration of function ‘PyInt_FromLong’ py_plugin.c:560: warning: implicit declaration of function ‘PyObject_SetAttrString’ py_plugin.c:560: error: ‘struct py_plugin’ has no member named ‘handle’ py_plugin.c:568: warning: implicit declaration of function ‘PyFloat_FromDouble’ py_plugin.c:569: error: ‘struct py_plugin’ has no member named ‘handle’ py_plugin.c: In function ‘py_plugin_param_float’: py_plugin.c:583: error: ‘PyObject’ undeclared (first use in this function) py_plugin.c:583: error: ‘PyObj’ undeclared (first use in this function) py_plugin.c:590: error: ‘struct py_plugin’ has no member named ‘handle’ py_plugin.c:599: error: ‘struct py_plugin’ has no member named ‘handle’ py_plugin.c: At top level: py_plugin.c:611: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token make[1]: *** [py_plugin.o] Error 1 make: *** [wminput] Error 2
-
Message #24414
Do you have Python development packages installed?
dsmith09/30/08 23:11:56 (5 years ago)-
Message #24415
I thought I had... I recall telling it to install those.
It won't let me install python2.5-dev or python-dev due to some weird dependency thing, so I'll figure that out and get back to you.
Edit: It didn't install the package because someone screwed up the repository. Bug report here, current workaround is to manually download and install python2.5-dev.
Also, worked.
artanis0010/01/08 01:13:40 (5 years ago)-
Message #24432
I'm having problems with compiling too.
make -C libcwiid make[1]: Entering directory `/home/teun/cwiid-0.6.00/cwiid-0.6.00/libcwiid' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/teun/cwiid-0.6.00/cwiid-0.6.00/libcwiid' make -C wmgui make[1]: Entering directory `/home/teun/cwiid-0.6.00/cwiid-0.6.00/wmgui' gcc -o wmgui main.o interface.o support.o -L../libcwiid -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lm -lcwiid ../libcwiid/libcwiid.so: undefined reference to `hci_remote_name' collect2: ld returned 1 exit status make[1]: *** [wmgui] Error 1 make[1]: Leaving directory `/home/teun/cwiid-0.6.00/cwiid-0.6.00/wmgui' make: *** [wmgui] Error 2
Thanks in advance.
valentinecrow12/23/08 10:23:16 (4 years ago)
-
-
