Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4817

General • Compiling TenserflowLite Micro library for Pico problems

$
0
0
Hello forum!

I am having problems with compiling the TenserflowLite Micro library for Pico. (github link: https://github.com/raspberrypi/pico-tflmicro)

I am on a windows 10 pc (using Visual Code Developer CMD prompt) and I have updated pico-sdk to latest. And I can compile pico-sdk, pico-examples, etc without problem and I have
been doing some development. Fun!

But when I try to compile the TenserflowLite Micro library for Pico I run into the following problems.

1) After the first step:
cmake -G "NMake Makefiles" ..
I get a warning about long paths, and I fixed that by adding set(CMAKE_OBJECT_PATH_MAX 500) to the cmake file.

2) On the second step: nmake I get the following error


Scanning dependencies of target arena_allocator_non_persistent_arena_buffer_allocator_test
[ 12%] Building CXX object tests/arena_allocator_non_persistent_arena_buffer_allocator_test/CMakeFiles/arena_allocator_non_persistent_arena_buffer_allocator_test.dir/non_persistent_arena_buffer_allocator_test.cpp.obj
[ 12%] Building C object tests/arena_allocator_non_persistent_arena_buffer_allocator_test/CMakeFiles/arena_allocator_non_persistent_arena_buffer_allocator_test.dir/F_/OLD_DISKS/H/PICO/Repos/pico-sdk/src/rp2_common/pico_stdlib/stdlib.c.obj
F:\OLD_DISKS\H\PICO\Repos\pico-sdk\src\rp2_common\pico_stdlib\stdlib.c:120:1: fatal error: opening dependency file CMakeFiles\arena_allocator_non_persistent_arena_buffer_allocator_test.dir\F_\OLD_DISKS\H\PICO\Repos\pico-sdk\src\rp2_common\pico_stdlib\stdlib.c.obj.d: No such file or directory
120 | }
| ^
compilation terminated.


Is there anyone here that managed to compile on windows? All help is appreciated.
Thanks in advance!

Statistics: Posted by PicoIncognito — Tue Feb 27, 2024 1:32 pm



Viewing all articles
Browse latest Browse all 4817

Trending Articles