gap_sdk icon indicating copy to clipboard operation
gap_sdk copied to clipboard

Nina's streamer libraries fail when compiling

Open LorenzoLamberti94 opened this issue 1 year ago • 3 comments

hi, when i try to run the streaming example on the AI deck i get the following error

rm -f /home/lamberti/work/gap_sdk_latest/libs/frame_streamer/examples/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV_PULPOS/flash.img
riscv32-unknown-elf-gcc -O3 -g -DCONFIG_AI_DECK -DRT_FC_STACK_SIZE=2048 -D__PLATFORM_BOARD__ -D__RT_IODEV__=2 -fno-jump-tables -fno-tree-loop-distribute-patterns -fdata-sections -ffunction-sections -mchip=gap8 -mPE=8 -mFC=1 -D__riscv__ -D__GAP__ -D__GAP8__ -DCHIP_VERSION=2 -mnativeomp -D__pulp__ -DCONFIG_GAP -D__PULP_OS__ -MMD -MP -c test.c  -I/home/lamberti/work/gap_sdk_latest/install/GAP8_V2/include  -I/home/lamberti/work/gap_sdk_latest/install/GAP8_V2/include/io  -I/home/lamberti/work/gap_sdk_latest/install/workstation/include  -I/home/lamberti/work/gap_sdk_latest/tools/autotiler_v3/Emulation  -include /home/lamberti/work/gap_sdk_latest/install/GAP8_V2/include/rt/chips/gap_rev1/config.h -MD -MF /home/lamberti/work/gap_sdk_latest/libs/frame_streamer/examples/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV_PULPOS/test.d -o /home/lamberti/work/gap_sdk_latest/libs/frame_streamer/examples/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV_PULPOS/test.o
test.c:4:10: fatal error: tools/frame_streamer.h: No such file or directory
 #include "tools/frame_streamer.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/home/lamberti/work/gap_sdk_latest/utils/rules/pulp_rules.mk:220: /home/lamberti/work/gap_sdk_latest/libs/frame_streamer/examples/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV_PULPOS/test.o] Error 1

looks like the streaming libraries can't be found by the makefile (now the libraries are here). this error appeared from ~gap_sdk==4.0 on. Any idea on where to look at to fix this problem ? :) thanks ! Lorenzo

LorenzoLamberti94 avatar Jun 19 '23 14:06 LorenzoLamberti94

The include is here: https://github.com/GreenWaves-Technologies/gap_sdk/tree/master/libs/frame_streamer/include/tools You can install the tool, or you can add the path to include path of gcc

Yaooooo avatar Jun 19 '23 14:06 Yaooooo

ciao @Yaooooo , Thanks a lot for the ultra quick answer!

Is there way to install this library ? i dont see it anymore in the targets of the sdk makefile I used to install it with "make gap_tools" but that isnt there anymore

LorenzoLamberti94 avatar Jun 19 '23 14:06 LorenzoLamberti94

I think you can use the Makefile or Cmake in the folder: https://github.com/GreenWaves-Technologies/gap_sdk/blob/master/libs/frame_streamer

Yaooooo avatar Jun 19 '23 15:06 Yaooooo