GreenWaves-Technologies / gap_sdk

SDK for Greenwaves Technologies' GAP8 IoT Application Processor
https://greenwaves-technologies.com/en/gap8-the-internet-of-things-iot-application-processor/
Apache License 2.0
137 stars 75 forks source link

Nina's streamer libraries fail when compiling #390

Open LorenzoLamberti94 opened 1 year ago

LorenzoLamberti94 commented 1 year ago

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

Yaooooo commented 1 year ago

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

LorenzoLamberti94 commented 1 year ago

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

Yaooooo commented 1 year ago

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