luxonis / depthai-spi-api

MIT License
4 stars 1 forks source link

PlatformIO support #5

Open nemccarthy opened 2 years ago

nemccarthy commented 2 years ago

My PlatformIO skills are limited so maybe I'm doing something wrong, however using the lib_deps = erik/depthai_spi compilation seems to fail with the following:

.pio/libdeps/esp32dev/depthai_spi/src/common/esp32_spi_impl.c:1:10: fatal error: esp32_spi_impl.h: No such file or directory

************************************************************************
* Looking for esp32_spi_impl.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:esp32_spi_impl.h"
* Web  > https://platformio.org/lib/search?query=header:esp32_spi_impl.h
*
************************************************************************

 #include <esp32_spi_impl.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Compiling .pio/build/esp32dev/lib96d/depthai_spi/depthai-shared/src/datatype/DatatypeEnum.o
*** [.pio/build/esp32dev/lib96d/depthai_spi/common/esp32_spi_impl.o] Error 1
.pio/libdeps/esp32dev/depthai_spi/src/depthai-shared/src/datatype/DatatypeEnum.cpp:1:10: fatal error: depthai-shared/datatype/DatatypeEnum.hpp: No such file or directory
 #include "depthai-shared/datatype/DatatypeEnum.hpp"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from .pio/libdeps/esp32dev/depthai_spi/src/common/SpiPacketParser.cpp:1:
.pio/libdeps/esp32dev/depthai_spi/src/common/SpiPacketParser.hpp:7:10: fatal error: depthai-shared/datatype/RawBuffer.hpp: No such file or directory
 #include "depthai-shared/datatype/RawBuffer.hpp"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/esp32dev/lib96d/depthai_spi/depthai-shared/src/datatype/DatatypeEnum.o] Error 1
*** [.pio/build/esp32dev/lib96d/depthai_spi/common/SpiPacketParser.o] Error 1

I've just been testing with the platform-espressif32-develop/examples/espidf-blink example. Have also tried adding this repo to the libs dir to no avail.

themarpe commented 2 years ago

@Erol444 can you test this one out?

Erol444 commented 2 years ago

Hello @nemccarthy, that platformio library was just for testing purposes, and it doesn't work properly. We wanted to remove (unpublish) it but platformio doesn't allow it. We will have to update the library so it works , hopefully next week. Thanks, Erik

wldeveloperapps commented 2 years ago

Any advance?

themarpe commented 2 years ago

Sorry @wldeveloperapps - as of right now, we haven't pushed much further on PlatformIO support.

I assume one should be able to bring in the codebase manually without relying on the published library and compiling it that way. However we haven't yet tried this, nor have any extra information available on it.