Hans-Christoph Steiner a écrit :
On Apr 10, 2007, at 7:01 AM, Patco wrote:
marius schebella a écrit :
Patco wrote:
For the moment there is no chance that this patch works on windows unless it's possible to provide hid.dll,
did not know that hid is not working???
I tried to compile hid for windows but I couldn't resolve this:
$ make make -C /home/pat/externals hid make[1]: Entering directory `/home/pat/externals' gcc -DPD -O3 -funroll-loops -fomit-frame-pointer -I/home/pat/pd/src -W -ggdb -mms-bitfields -DMSW -DNT -D'O_NONBLOCK=1' -D'srand48(n)=srand((n))' -D'drand48()=((double)rand()/RAND_MAX)' -D'bzero(p,n)=memset(p,0,n)' -o "/home/pat/externals/hcs/hid/input_arrays.o" -c "/home/pat/externals/hcs/hid/input_arrays.c" gcc -DPD -O3 -funroll-loops -fomit-frame-pointer -I/home/pat/pd/src -W -ggdb -mms-bitfields -DMSW -DNT -D'O_NONBLOCK=1' -D'srand48(n)=srand((n))' -D'drand48()=((double)rand()/RAND_MAX)' -D'bzero(p,n)=memset(p,0,n)' -o "/home/pat/externals/hcs/hid/hid_windows.o" -c "/home/pat/externals/hcs/hid/hid_windows.c" C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c: In function `hid_print_element_list': C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:75: error: `LOG_DEBUG' undeclared (first use in this function) C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:75: error: (Each undeclared identifier is reported only once C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:75: error: for each function it appears in.) C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c: At top level: C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:250: error: conflicting types for 'hid_get_events' C:/msys/1.0/home/pat/externals/hcs/hid/hid.h:122: error: previous declaration of 'hid_get_events' was here C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:250: error: conflicting types for 'hid_get_events' C:/msys/1.0/home/pat/externals/hcs/hid/hid.h:122: error: previous declaration of 'hid_get_events' was here C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:258: error: conflicting types for 'hid_open_device' C:/msys/1.0/home/pat/externals/hcs/hid/hid.h:119: error: previous declaration of 'hid_open_device' was here C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:258: error: conflicting types for 'hid_open_device' C:/msys/1.0/home/pat/externals/hcs/hid/hid.h:119: error: previous declaration of 'hid_open_device' was here C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c: In function `hid_open_device': C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:259: error: `LOG_DEBUG' undeclared (first use in this function) C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c: In function `hid_close_device': C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:269: error: `LOG_DEBUG' undeclared (first use in this function) C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c: At top level: C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:278: error: conflicting types for 'hid_build_device_list' C:/msys/1.0/home/pat/externals/hcs/hid/hid.h:121: error: previous declaration of 'hid_build_device_list' was here C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:278: error: conflicting types for 'hid_build_device_list' C:/msys/1.0/home/pat/externals/hcs/hid/hid.h:121: error: previous declaration of 'hid_build_device_list' was here C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c: In function `hid_build_device_list': C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:279: error: `LOG_DEBUG' undeclared (first use in this function) C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c: In function `hid_platform_specific_free': C:/msys/1.0/home/pat/externals/hcs/hid/hid_windows.c:324: error: `LOG_DEBUG' undeclared (first use in this function) make[1]: *** [/home/pat/externals/hcs/hid/hid_windows.o] Error 1 make[1]: Leaving directory `/home/pat/externals' make: *** [default] Error 2
Do I have to install DDK or something?
[hid] was never ported to Windows. You can try externals/io/hidio, but I don't think that's complete yet.
.hc
Allright, I've updated CVS files, and tried 'make', but I guess you've been thinking good:
$ make make -C /home/pat/externals hidio make[1]: Entering directory `/home/pat/externals' gcc -shared -o /home/pat/externals/io/hidio/hidio.dll \ /home/pat/externals/io/hidio/hidio_windows.o /home/pat/externals/io/hidio/hidio_types.o /home/pat/externals/io/hidio/hidio.o -lm -L/home/pat/pd/bin -L/home/pat/pd/obj -lpd -lwsock32 -lpthreadGC2 -lkernel32 -luser32 -lgdi32 -lregex -lhid -lsetupapi C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `get_device_number_from_arguments':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:242: undefined reference to `get_device_number_from_usage' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:281: undefined reference to `get_device_number_by_id' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:271: undefined reference to `get_device_number_from_usage' C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `hidio_close':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:381: undefined reference to `hidio_close_device' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:381: undefined reference to `hidio_close_device' C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `hidio_open':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:413: undefined reference to `hidio_open_device' C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `hidio_tick':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:455: undefined reference to `hidio_get_events' C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `hidio_info':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:488: undefined reference to `hidio_platform_specific_info' C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `hidio_close':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:381: undefined reference to `hidio_close_device' C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `hidio_free':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:381: undefined reference to `hidio_close_device' C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `hidio_setup':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:584: undefined reference to `hidio_build_device_list' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:586: undefined reference to `hidio_print' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:592: undefined reference to `hidio_ff_autocenter' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:594: undefined reference to `hidio_ff_gain' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:595: undefined reference to `hidio_ff_motors' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:596: undefined reference to `hidio_ff_continue' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:597: undefined reference to `hidio_ff_pause' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:598: undefined reference to `hidio_ff_reset' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:599: undefined reference to `hidio_ff_stopall' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:601: undefined reference to `hidio_ff_fftest' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:602: undefined reference to `hidio_ff_print' C:/msys/1.0/home/pat/externals/io/hidio/hidio.o: In function `hidio_free':C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:524: undefined reference to `hidio_platform_specific_free' :C:/msys/1.0/home/pat/externals/io/hidio/hidio.c:524: undefined reference to `hidio_platform_specific_free' collect2: ld returned 1 exit status make[1]: *** [/home/pat/externals/io/hidio/hidio.dll] Error 1 make[1]: Leaving directory `/home/pat/externals' make: *** [default] Error 2
PC.