Closed jomoengineer closed 4 years ago
Also, the blinkLED.js script fails for:
Debugger listening on ws://127.0.0.1:15454/de0ca06d-421a-49c9-a483-cfe8c4ba3ca9
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
info: No pinmux for P9_15
error: Unable to write to /sys/class/gpio/gpio48/value
(node:1636) [INSPECTOR_ASYNC_STACK_TRACES_NOT_AVAILABLE] Warning: Warning: Async stack traces in debugger are not available on 32bit platforms. The feature is disabled.
error: Unable to write to /sys/class/gpio/gpio48/value
error: Unable to write to /sys/class/gpio/gpio48/value
error: Unable to write to /sys/class/gpio/gpio48/value
@jadonk have you seen that build error before?
Python path: /usr/lib/python3.7/dist-packages:/usr/local/lib/python3.7/dist-packages
/var/lib/cloud9/common/Makefile:28: MODEL=BeagleBoard.org_BeagleBone_AI,TARGET=classification.tidl,COMMON=/var/lib/cloud9/common
/var/lib/cloud9/common/Makefile:147: GEN_DIR=/tmp/cloud9-examples,CHIP=am57xx,PROC=tidl,PRUN=,PRU_DIR=,EXE=.so
CXX classification.tidl.cpp
classification.tidl.cpp: In function ‘int tf_postprocess(uchar*)’:
classification.tidl.cpp:352:97: error: the type ‘const tf_postprocess(uchar*)::<lambda(val_index&, val_index&)>’ of ‘constexpr’ variable ‘cmp’ is not literal
auto constexpr cmp = [](val_index &left, val_index &right) { return left.first > right.first; };
^
classification.tidl.cpp:352:25: note: ‘tf_postprocess(uchar*)::<lambda(val_index&, val_index&)>’ is not literal because:
auto constexpr cmp = [](val_index &left, val_index &right) { return left.first > right.first; };
^
cc1plus: note: ‘tf_postprocess(uchar*)::<lambda(val_index&, val_index&)>’ is a closure type, which is only literal in C++17 and later
make: *** [/var/lib/cloud9/common/Makefile:222: /tmp/cloud9-examples/classification.tidl.o] Error 1
@jomoengineer
Also, the blinkLED.js script fails for:
Debugger listening on ws://127.0.0.1:15454/de0ca06d-421a-49c9-a483-cfe8c4ba3ca9 For help, see: https://nodejs.org/en/docs/inspector Debugger attached. info: No pinmux for P9_15 error: Unable to write to /sys/class/gpio/gpio48/value (node:1636) [INSPECTOR_ASYNC_STACK_TRACES_NOT_AVAILABLE] Warning: Warning: Async stack traces in debugger are not available on 32bit platforms. The feature is disabled. error: Unable to write to /sys/class/gpio/gpio48/value error: Unable to write to /sys/class/gpio/gpio48/value error: Unable to write to /sys/class/gpio/gpio48/value
Sadly, all the gpio demos need work on the bbai
@jomoengineer these fixes should fix it:
https://github.com/beagleboard/cloud9-examples/commit/984afa1fa50d27472a6c0a65ae9d723605bb2a1a
and then this patchset https://github.com/beagleboard/cloud9-examples/pull/31
Regards,
Debian Buster
debian@beaglebone:/var/lib/cloud9/BeagleBone/AI/tidl$ cat /etc/dogtag
BeagleBoard.org Debian IoT TIDL Image 2020-03-30
tarted /var/lib/cloud9/: classification.tidl.cpp
File path: /var/lib/cloud9/BeagleBone/AI/tidl
File: /var/lib/cloud9/BeagleBone/AI/tidl/classification.tidl.cpp
Arguments:
File name: classification.tidl.cpp
File extension: cpp
File base name: classification.tidl
Packages: ~.c9/packages
Project path: /var/lib/cloud9/
Project name: projectname
Hostname: localhost
Hostname path: https://undefined/BeagleBone/AI/tidl/classification.tidl.cpp
URL: http://localhost
Port: 8080
IP: 0.0.0.0
Command: BeagleBone/AI/tidl/classification.tidl.cpp
Python: python3
Python path: /usr/lib/python3.7/dist-packages:/usr/local/lib/python3.7/dist-packages
/var/lib/cloud9/common/Makefile:28: MODEL=TI_AM5728_BeagleBoard-X15_rev_C,TARGET=classification.tidl,COMMON=/var/lib/cloud9/common
/var/lib/cloud9/common/Makefile:147: GEN_DIR=/tmp/cloud9-examples,CHIP=am57xx,PROC=tidl,PRUN=,PRU_DIR=,EXE=.so
CXX classification.tidl.cpp
LD /tmp/cloud9-examples/classification.tidl.o
ti-mct-heap-check -c
-- ddr_heap1 ------------------------------
Addr : 0xa2000000
Size : 0x16000000
Avail: 0x16000000
Align: 0x80
-----------------------------------------
sudo mjpg_streamer -i "input_opencv.so -r 640x480 -d /dev/video1 \
--filter ./classification.tidl.so" -o "output_http.so -p 8090 -w /usr/share/mjpg-streamer/www"
[sudo] password for debian:
MJPG Streamer Version.: 2.0
i: device........... : /dev/video1
i: Desired Resolution: 640 x 480
i: filter........... : ./classification.tidl.so
i: filter args ..... :
Initializing filter
loading configuration
allocating execution object pipelines (EOP)
allocating I/O memory for each EOP
Allocating input and output buffers
Allocating input and output buffers
Allocating input and output buffers
num_eops=4
About to start ProcessFrame loop!!
http://localhost:8080/?action=stream
o: www-folder-path......: /usr/share/mjpg-streamer/www/
o: HTTP TCP port........: 8090
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled
(898)=water_bottle
@jomoengineer , now merged, from cloud 9, just run:
cd /var/lib/cloud9/BeagleBone/AI/tidl
git pull
make clean
Which will merge all the fixes and clean a tmp file, then click run like before..
Regards,
Hey Robert,
Yeah, that seems to do the trick. Thanks!
Jon
Describe the bug A clear and concise description of what the bug is.
When attempting to run the Cloud9 TiDl classification example, the compile of the code failed for C++ errors.
Describe which image you are running (example: bone-debian-10.2-iot-armhf-2020-02-03-4gb.img.xz)
am57xx-debian-10.3-iot-tidl-armhf-2020-03-30-6gb.img.xz
Describe your hardware Beaglebone AI Describe any Capes Installed none
Please run this built-in script
To Reproduce Steps to reproduce the behavior:
Expected behavior Complete the compile successfully and allow view from WebCam.
Screenshots none
Additional context