[Tinyos-help] CameraMultihop Compile Error
Hi, everyone. I really need your help. I'm working with Tinyos-2.x in CYGWIN-WINDOWSXP. I had a problem while "make" in the app "cameraMultihop/c/" directory. Error Information is like this: building /opt/tinyos-2.x-contrib/intelmote2/support/sdk/c/camera_cmd make[1]: Entering directory `/opt/tinyos-2.x-contrib/intelmote2/support/sdk/c/camera_cmd' cc -c -DTOSH_DATA_LENGTH=100 -Wall camera_cmd.c img_stat.c cmd_msg.c status.c bigmsg_frame_part.c /support/sdk/c/compress/jpegUncompress.c /support/sdk/c/compress/huffmanUncompress.c -I. -I/apps/cameraMultiHop/camNode -I/support/sdk/c/compress -I/opt/tinyos-2.x/tos/../support/sdk/c/sf cc: /support/sdk/c/compress/jpegUncompress.c: No such file or directory cc: /support/sdk/c/compress/huffmanUncompress.c: No such file or directory camera_cmd.c:11:21: jpeglib.h: No such file or directory camera_cmd.c:18:27: tinyos_macros.h: No such file or directory camera_cmd.c:19:21: jpeghdr.h: No such file or directory camera_cmd.c:20:21: jpegTOS.h: No such file or directory camera_cmd.c:21:28: jpegUncompress.h: No such file or directory camera_cmd.c:22:25: quanttables.h: No such file or directory camera_cmd.c: In function `save_img_jpg': camera_cmd.c:457: error: storage size of 'cinfo' isn't known camera_cmd.c:458: error: storage size of 'jerr' isn't known camera_cmd.c:459: error: `JSAMPROW' undeclared (first use in this function) camera_cmd.c:459: error: (Each undeclared identifier is reported only once camera_cmd.c:459: error: for each function it appears in.) camera_cmd.c:459: error: parse error before "row_pointer" camera_cmd.c:473: warning: implicit declaration of function `jpeg_std_error' camera_cmd.c:474: warning: implicit declaration of function `jpeg_create_compress' camera_cmd.c:475: warning: implicit declaration of function `jpeg_stdio_dest' camera_cmd.c:480: error: `JCS_RGB' undeclared (first use in this function) camera_cmd.c:480: error: `JCS_GRAYSCALE' undeclared (first use in this function) camera_cmd.c:481: warning: implicit declaration of function `jpeg_set_defaults' camera_cmd.c:482: warning: implicit declaration of function `jpeg_set_quality' camera_cmd.c:482: error: `TRUE' undeclared (first use in this function) camera_cmd.c:483: warning: implicit declaration of function `jpeg_start_compress' camera_cmd.c:486: error: `row_pointer' undeclared (first use in this function) camera_cmd.c:487: warning: implicit declaration of function `jpeg_write_scanlines' camera_cmd.c:490: warning: implicit declaration of function `jpeg_finish_compress' camera_cmd.c:492: warning: implicit declaration of function `jpeg_destroy_compress' camera_cmd.c:457: warning: unused variable `cinfo' camera_cmd.c:458: warning: unused variable `jerr' camera_cmd.c: In function `write_img_file': camera_cmd.c:504: error: `code_header_t' undeclared (first use in this function) camera_cmd.c:504: error: parse error before "header" camera_cmd.c:506: warning: implicit declaration of function `decodeJpegBytes' camera_cmd.c:506: error: `header' undeclared (first use in this function) Makefile:36: recipe for target `camera_cmd.o' failed make[1]: *** [camera_cmd.o] Error 1 make[1]: Leaving directory `/opt/tinyos-2.x-contrib/intelmote2/support/sdk/c/camera_cmd' Makefile:17: recipe for target `/opt/tinyos-2.x-contrib/intelmote2/support/sdk/c/camera_cmd/libcamera_cmd.a' failed make: *** [/opt/tinyos-2.x-contrib/intelmote2/support/sdk/c/camera_cmd/libcamera_cmd.a] Error 2 I found this may be caused by lacking the jpeg-6b dev library. However, it's really difficult to install this in cygwin because of the dependancy. I also can't install libc-dev library in cygwin. Do you know how to solve this problem? What I want to do is to add Jpeg algorithm into image transmission with imote2. But the app "cameraTestJpegSerial" doesn't work for the Jpeg. Someone on the internet said the app "cameraMultihop" works well with tranmitting Jpeg image.That's why I got here. Any help will be very appreciated.Thanks in advance! -- Best Regards Sincerely, David Zhao ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS Get stuck in 'Device Detected'
Hello. I'm new to tinyos and I just finished the installation. I'm using TinyOS-2.x in cygwin on windows 7. I got two problems: 1.When I tried this to download Blink program into imote2, with "USBLoaderHost -p build/intelmote2/main.bin.out", win7 can't find the USB driver,it got stuck and kept showing "Device Detected". Do you have met this problem? 2. When I tried to install the blink program using command "make intelmote2 intall bootloader", the log showed that "installing intelmote2 binary using jflashmm", which I think shoud be using USBLoaderHost, right? And it got the error "Couldn't access giveio device" at last. Do you know how to solve this? I'll be very appreciate if you can help me out. Looking forward to your answers. -- Best Regards Sincerely, David Zhao ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help