Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python bindings fail to build #11

Closed
iioflow opened this issue May 21, 2011 · 1 comment
Closed

python bindings fail to build #11

iioflow opened this issue May 21, 2011 · 1 comment

Comments

@iioflow
Copy link

iioflow commented May 21, 2011

when enabling the python bindings, i get this error output when building against python 2.6 and 2.7:

[... package manager stuff ...]
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-python --prefix=/usr

configuring libmonome 1.0:
checking platform: linux 2.6.38.4
checking for gcc: gcc 4.4.5
determining byte order: little endian

checking for poll:            poll works
checking for libudev:         libudev 151

checking for liblo:           liblo 0.26

checking for python:          python 2.7.1 and cython 0.14.1
checking for python headers:  yes

options:
installation prefix: /usr
protocols: mext series 40h osc
bindings: python

run make to compile libmonome.

Source configured.
Compiling source in /var/tmp/portage/media-libs/libmonome-9999/work/libmonome-9999 ...
make -j4
CC src/libmonome.o
CC src/rotation.o
CC src/platform/linux_libudev.o
CC src/platform/linux.o
CC src/platform/posix.o
CC src/monomeserial.o
LD src/libmonome.so
LD src/monomeserial
CC src/proto/mext.o
CC src/proto/series.o
CC src/proto/40h.o
CC src/proto/osc.o
LD src/proto/protocol_40h.so
LD src/proto/protocol_series.so
LD src/proto/protocol_osc.so
LD src/proto/protocol_mext.so
CYTHON bindings/python/monome.c
CC bindings/python/monome.o
monome.c: In function 'pyx_f_6monome_event_from_event_t':
monome.c:1583: error: 'monome_event_t' has no member named 'x'
monome.c:1585: error: 'monome_event_t' has no member named 'y'
cc1: warnings being treated as errors
monome.c: In function '__pyx_pf_6monome_6Monome_10clear':
monome.c:2908: error: implicit declaration of function 'monome_clear'
monome.c:2908: error: 'monome_clear_status_t' undeclared (first use in this function)
monome.c:2908: error: (Each undeclared identifier is reported only once
monome.c:2908: error: for each function it appears in.)
monome.c:2908: error: expected ')' before '__pyx_v_status'
monome.c: In function '__pyx_pf_6monome_6Monome_9intensity___set
':
monome.c:3100: error: implicit declaration of function 'monome_intensity'
monome.c: In function '__pyx_pf_6monome_6Monome_13led_row':
monome.c:3341: error: passing argument 4 of 'monome_led_row' makes integer from pointer without a cast
../../public/monome.h:124: note: expected 'size_t' but argument is of type 'uint8_t '
monome.c:3341: error: too few arguments to function 'monome_led_row'
monome.c: In function '__pyx_pf_6monome_6Monome_14led_col':
monome.c:3449: error: passing argument 4 of 'monome_led_col' makes integer from pointer without a cast
../../public/monome.h:122: note: expected 'size_t' but argument is of type 'uint8_t *'
monome.c:3449: error: too few arguments to function 'monome_led_col'
monome.c: In function '__pyx_pf_6monome_6Monome_15led_frame':
monome.c:3668: error: implicit declaration of function 'monome_led_frame'
make[2]: *
* [monome.o] Error 1
make[1]: *** [python] Error 2
make: *** [all] Error 2

@wrl
Copy link
Member

wrl commented Jun 29, 2012

yeah this was because i changed the libmonome API but didn't change the python bindings to match.
this is fixed as of a173f2d.

@wrl wrl closed this as completed Jun 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants