vscode-devcontainer-raspberrypi-pico icon indicating copy to clipboard operation
vscode-devcontainer-raspberrypi-pico copied to clipboard

Cannot build container

Open SWICRIOT opened this issue 10 months ago • 1 comments

When trying to build and run the container in VS Code I get an error which seem to prevent the build.

This command: RUN cd /apps && git clone https://github.com/raspberrypi/picotool.git --depth=1
&& cd picotool && mkdir build && cd build && cmake ../ && make -j 8 && cp picotool /usr/local/bin

gives me this output and error:

0.562 Cloning into 'picotool'... 1.947 -- The C compiler identification is GNU 11.3.0 2.152 -- The CXX compiler identification is GNU 11.3.0 2.181 -- Detecting C compiler ABI info 2.312 -- Detecting C compiler ABI info - done 2.333 -- Check for working C compiler: /usr/bin/cc - skipped 2.337 -- Detecting C compile features 2.346 -- Detecting C compile features - done 2.361 -- Detecting CXX compiler ABI info 2.487 -- Detecting CXX compiler ABI info - done 2.507 -- Check for working CXX compiler: /usr/bin/c++ - skipped 2.511 -- Detecting CXX compile features 2.513 -- Detecting CXX compile features - done 2.514 Using PICO_SDK_PATH from environment ('/apps/pico-sdk') 2.522 .//usr/local/share/picotool/ 2.617 -- Using the single-header code from /apps/picotool/lib/nlohmann_json/sing le_include/ 2.918 -- Found Python3: /usr/bin/python3.10 (found version "3.10.6") found compo nents: Interpreter 3.097 -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS 3.196 -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success 3.246 -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 3.248 -- Checking for module 'libusb-1.0' 3.270 -- Found libusb-1.0, version 1.0.25 3.341 -- Found LIBUSB: /usr/lib/x86_64-linux-gnu/libusb-1.0.so 3.357 CMake Error at CMakeLists.txt:227 (add_subdirectory): 3.357 add_subdirectory given source 3.357 "/apps/pico-sdk/src/rp2_common/boot_bootrom_headers" which is not an 3.357 existing directory. 3.357 3.357 3.371 -- Configuring incomplete, errors occurred! 3.371 See also "/apps/picotool/build/CMakeFiles/CMakeOutput.log".

SWICRIOT avatar Jan 16 '25 13:01 SWICRIOT