I am trying to compile the wmr100 software for pulling data from USB Oregon Scientific weather stations like RMS600A, WMR100 etc..
on a previous version Maverick 64bit I can compile this with libhid0/libhid-dev/python-hid 0.2.15_20060325
For what ever reason libhid0 and libhid-dev and python-hid are no longer in the main repos
I found a PPA with them compiled...BUT its 0.2.16....
https://launchpad.net/~yavdr/+archive/main
I have done BOTH:
1) Pulled the DEBS from the PPA directory, and then use the DEB installer
2) Added the PPA via apt-add-repository and then pulling via synaptic
Neither results in a compiled program. Same results regardless of the method of lib install.
If the libhid-dev is not installed, it obviously fails to find it and obvisouly would not compile, hence:
Why do this? I wanted to confirm that libhid-dev was being found... so with it installed and re-attempting the compile:
The cast error is ignorable... as this was written for 32bit and not made 64bit compatible, it will compile and run correctly with this error. I actually have a commit to fix this, but I need to solve this before going any further.
If I compile on the other system it compiles fine, and I can copy the compiled program to the Oneiric system and it does run.. BUT obviously thats not a valid path for the future to continue the program on.
Ok.. try it with DEBS for the 0.2.15 version... same results... no compile, same errors.
This is for 64bit Oneiric, and I want to resolve this for Precise and the future.....
Any ideas? ? ?
on a previous version Maverick 64bit I can compile this with libhid0/libhid-dev/python-hid 0.2.15_20060325
For what ever reason libhid0 and libhid-dev and python-hid are no longer in the main repos
I found a PPA with them compiled...BUT its 0.2.16....
https://launchpad.net/~yavdr/+archive/main
I have done BOTH:
1) Pulled the DEBS from the PPA directory, and then use the DEB installer
2) Added the PPA via apt-add-repository and then pulling via synaptic
Neither results in a compiled program. Same results regardless of the method of lib install.
If the libhid-dev is not installed, it obviously fails to find it and obvisouly would not compile, hence:
Code:
x0@x-x:~/barnybug-wmr100-511ecd6$ sudo make cc `pkg-config libhid --cflags` -pedantic `pkg-config libhid --libs` wmr100.c -o wmr100 Package libhid was not found in the pkg-config search path. Perhaps you should add the directory containing `libhid.pc' to the PKG_CONFIG_PATH environment variable No package 'libhid' found Package libhid was not found in the pkg-config search path. Perhaps you should add the directory containing `libhid.pc' to the PKG_CONFIG_PATH environment variable No package 'libhid' found wmr100.c:21:17: fatal error: hid.h: No such file or directory compilation terminated. make: *** [wmr100] Error 1 rx@x-x:~/barnybug-wmr100-511ecd6$
Code:
rx@x:~$ cd barnybug-wmr100-511ecd6/ x@rec9140-D525TUD:~/barnybug-wmr100-511ecd6$ sudo make cc `pkg-config libhid --cflags` -pedantic `pkg-config libhid --libs` wmr100.c -o wmr100 wmr100.c: In function ‘wmr_print_state’: wmr100.c:146:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] /tmp/ccdy4Cdm.o: In function `wmr_init': wmr100.c:(.text+0x119): undefined reference to `hid_init' wmr100.c:(.text+0x155): undefined reference to `hid_new_HIDInterface' wmr100.c:(.text+0x1bf): undefined reference to `hid_force_open' wmr100.c:(.text+0x249): undefined reference to `hid_write_identification' /tmp/ccdy4Cdm.o: In function `wmr_send_packet_init': wmr100.c:(.text+0x2cd): undefined reference to `hid_set_output_report' /tmp/ccdy4Cdm.o: In function `wmr_send_packet_ready': wmr100.c:(.text+0x32e): undefined reference to `hid_set_output_report' /tmp/ccdy4Cdm.o: In function `wmr_close': wmr100.c:(.text+0x3a9): undefined reference to `hid_close' wmr100.c:(.text+0x3eb): undefined reference to `hid_delete_HIDInterface' wmr100.c:(.text+0x401): undefined reference to `hid_cleanup' /tmp/ccdy4Cdm.o: In function `wmr_read_packet': wmr100.c:(.text+0x4a8): undefined reference to `hid_interrupt_read' collect2: ld returned 1 exit status make: *** [wmr100] Error 1 rx@x:~/barnybug-wmr100-511ecd6$
If I compile on the other system it compiles fine, and I can copy the compiled program to the Oneiric system and it does run.. BUT obviously thats not a valid path for the future to continue the program on.
Ok.. try it with DEBS for the 0.2.15 version... same results... no compile, same errors.
This is for 64bit Oneiric, and I want to resolve this for Precise and the future.....
Any ideas? ? ?
Comment