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

SDK • Re: picotool 2.0.0 is installed, cmake says it can't find it

$
0
0
Could you also run cmake as

Code:

cmake .. --debug-find-pkg=picotool
in your sdk build and post that output here? This helps debugging where it's looking for the picotool package
I am having the same issue. Re-running sudo make install in the picotool/build folder gives:

Code:

Install the project...-- Install configuration: "Release"-- Up-to-date: /usr/local/bin/picotool-- Up-to-date: /usr/local/lib/arm-linux-gnueabihf/cmake/picotool/picotoolTargets.cmake-- Up-to-date: /usr/local/lib/arm-linux-gnueabihf/cmake/picotool/picotoolTargets-release.cmake-- Up-to-date: /usr/local/lib/arm-linux-gnueabihf/cmake/picotool/picotoolConfig.cmake-- Up-to-date: /usr/local/lib/arm-linux-gnueabihf/cmake/picotool/picotoolConfigVersion.cmake-- Up-to-date: /usr/local/share/picotool/rp2350_otp_contents.json-- Up-to-date: /usr/local/share/picotool/xip_ram_perms.elf
And running cmake .. --debug-find-pkg=picotool gives lots of output including:

Code:

  find_package considered the following locations for the Config module:    /home/pi/.local/picotoolConfig.cmake    /home/pi/.local/picotool-config.cmake    /usr/local/picotoolConfig.cmake    /usr/local/picotool-config.cmake    /usr/local/share/picotool/picotoolConfig.cmake    /usr/local/share/picotool/picotool-config.cmake    /usr/picotoolConfig.cmake    /usr/picotool-config.cmake    /picotoolConfig.cmake    /picotool-config.cmake    /usr/local/games/picotoolConfig.cmake    /usr/local/games/picotool-config.cmake    /usr/games/picotoolConfig.cmake    /usr/games/picotool-config.cmake  The file was not found.Call Stack (most recent call first):  /home/pi/pico/pico-sdk/src/cmake/on_device.cmake:33 (pico_init_picotool)  /home/pi/pico/pico-sdk/src/rp2040/boot_stage2/CMakeLists.txt:57 (pico_add_dis_output)  /home/pi/pico/pico-sdk/src/rp2040/boot_stage2/CMakeLists.txt:101 (pico_define_boot_stage2)CMake Warning at /home/pi/pico/pico-sdk/tools/Findpicotool.cmake:28 (message):  No installed picotool with version 2.0.0 found - building from source
So installing picotool is putting picotoolConfig.cmake in folder /usr/local/lib/arm-linux-gnueabihf/cmake/picotool/, but building a project is not looking there for the file.

This is running on Bullseye.

Statistics: Posted by Memotech Bill — Wed Aug 21, 2024 8:33 pm



Viewing all articles
Browse latest Browse all 4794

Trending Articles