radarsat1 / influence

A libmapper program providing a shader-driven "influence field" that external agents can connect to, move around in, and observe.
6 stars 4 forks source link

Not compatible with latest version of libmapper? #1

Open sofian opened 11 years ago

sofian commented 11 years ago

I tried to compile influence with the latest libmapper version from radarsat1/libmapper (master branch) and got the following errors. Am I using the right libmapper branch?

user@localhost:~/Documents/workspace/influence$ make
gcc -Wall -Werror -O0 -g -I/usr/local/include/mapper-0 -I/usr/local/include     -c -o influence.o influence.c
influence.c: In function ‘on_draw’:
influence.c:24:13: error: too few arguments to function ‘msig_update’
/usr/local/include/mapper-0/mapper/mapper.h:80:6: note: declared here
influence.c: In function ‘initMapper’:
influence.c:122:24: error: passing argument 8 of ‘mdev_add_input’ from incompatible pointer type [-Werror]
/usr/local/include/mapper-0/mapper/mapper.h:322:15: note: expected ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, int,  void *, int,  struct mapper_timetag_t *)’ but argument is of type ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, struct mapper_timetag_t *, void *)’
influence.c:125:24: error: passing argument 8 of ‘mdev_add_input’ from incompatible pointer type [-Werror]
/usr/local/include/mapper-0/mapper/mapper.h:322:15: note: expected ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, int,  void *, int,  struct mapper_timetag_t *)’ but argument is of type ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, struct mapper_timetag_t *, void *)’
influence.c:128:24: error: passing argument 8 of ‘mdev_add_input’ from incompatible pointer type [-Werror]
/usr/local/include/mapper-0/mapper/mapper.h:322:15: note: expected ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, int,  void *, int,  struct mapper_timetag_t *)’ but argument is of type ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, struct mapper_timetag_t *, void *)’
influence.c:132:24: error: passing argument 8 of ‘mdev_add_input’ from incompatible pointer type [-Werror]
/usr/local/include/mapper-0/mapper/mapper.h:322:15: note: expected ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, int,  void *, int,  struct mapper_timetag_t *)’ but argument is of type ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, struct mapper_timetag_t *, void *)’
influence.c:137:24: error: passing argument 8 of ‘mdev_add_input’ from incompatible pointer type [-Werror]
/usr/local/include/mapper-0/mapper/mapper.h:322:15: note: expected ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, int,  void *, int,  struct mapper_timetag_t *)’ but argument is of type ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, struct mapper_timetag_t *, void *)’
influence.c:142:24: error: passing argument 8 of ‘mdev_add_input’ from incompatible pointer type [-Werror]
/usr/local/include/mapper-0/mapper/mapper.h:322:15: note: expected ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, int,  void *, int,  struct mapper_timetag_t *)’ but argument is of type ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, struct mapper_timetag_t *, void *)’
influence.c:147:24: error: passing argument 8 of ‘mdev_add_input’ from incompatible pointer type [-Werror]
/usr/local/include/mapper-0/mapper/mapper.h:322:15: note: expected ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, int,  void *, int,  struct mapper_timetag_t *)’ but argument is of type ‘void (*)(struct _mapper_signal *, struct _mapper_db_signal *, struct mapper_timetag_t *, void *)’
cc1: all warnings being treated as errors
make: *** [influence.o] Error 1
radarsat1 commented 11 years ago

It is possible that the libmapper API has been updated since last time we were working with Influence. However, I've just pushed new masters for libmapper and influence, and everything seems to compile okay for me now. Please pull.