./build_pico_openpgp.sh fails to build w.: CMake Error at pico-keys-sdk/pico_keys_sdk_import.cmake:429 (pico_add_library): #42

Closed
opened 2025-09-30 18:59:58 +08:00 by Bingo600 · 3 comments
Bingo600 commented 2025-09-30 18:59:58 +08:00 (Migrated from github.com)

I'm a total newbie with pico-keys , but not total newbie with building for pi-picos.

Yesterday i was building the full pico-fido , and pico-fido2 targets , using their respective : build_pico_xxx.sh scripts
Everything went well ...
Except every target "barfed" with the below message:

CMake Warning:
  Manually-specified variables were not used by the project:   <<<------------------

    SECURE_BOOT_PKEY

I suppose that one just means the SECURE_BOOT_PKEY is specified, but not used ?

Back on topic
Today i tried to build pico-openpgp (using the same setup as for the ones above) , but every target fails with this:

CMake Error at pico-keys-sdk/pico_keys_sdk_import.cmake:429 (pico_add_library):
  Unknown CMake command "pico_add_library".
Call Stack (most recent call first):
  CMakeLists.txt:46 (include)

bingo@LP1:~/1-Arm/RPi-Pico/picokeys/git/pico-openpgp$ ./build_pico_openpgp.sh
Using PICO_SDK_PATH from environment ('/home/bingo/1-Arm/RPi-Pico/git/pico-sdk')
PICO_SDK_PATH is /home/bingo/1-Arm/RPi-Pico/git/pico-sdk
Target board (PICO_BOARD) is '0xcb_helios'.
Using board configuration from /home/bingo/1-Arm/RPi-Pico/git/pico-sdk/src/boards/include/boards/0xcb_helios.h
Defaulting platform (PICO_PLATFORM) to 'rp2040' based on PICO_BOARD setting.
-- Defaulting build type to 'Release' since not specified.
Defaulting compiler (PICO_COMPILER) to 'pico_arm_cortex_m0plus_gcc' since not specified.
Configuring toolchain based on PICO_COMPILER 'pico_arm_cortex_m0plus_gcc'
Defaulting PICO_GCC_TRIPLE to 'arm-none-eabi'
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- VIDPID:			 'OFF'
-- Delayed boot:		 disabled
-- USB CCID Interface:		 enabled
-- USB WebCCID Interface:	 enabled
-- USB VID/PID:			 0xFEFF:0xFCFD
-- EdDSA support:		 disabled
CMake Error at pico-keys-sdk/pico_keys_sdk_import.cmake:429 (pico_add_library):
  Unknown CMake command "pico_add_library".
Call Stack (most recent call first):
  CMakeLists.txt:46 (include)


-- Configuring incomplete, errors occurred!
See also "/home/bingo/1-Arm/RPi-Pico/picokeys/git/pico-openpgp/build_release/CMakeFiles/CMakeOutput.log".
See also "/home/bingo/1-Arm/RPi-Pico/picokeys/git/pico-openpgp/build_release/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
mv: cannot stat 'pico_openpgp.uf2': No such file or directory
Using PICO_SDK_PATH from environment ('/home/bingo/1-Arm/RPi-Pico/git/pico-sdk')
PICO_SDK_PATH is /home/bingo/1-Arm/RPi-Pico/git/pico-sdk
Target board (PICO_BOARD) is 'adafruit_feather_rp2040_adalogger'.
Using board configuration from /home/bingo/1-Arm/RPi-Pico/git/pico-sdk/src/boards/include/boards/adafruit_feather_rp2040_adalogger.h
Defaulting platform (PICO_PLATFORM) to 'rp2040' based on PICO_BOARD setting.
-- Defaulting build type to 'Release' since not specified.
Defaulting compiler (PICO_COMPILER) to 'pico_arm_cortex_m0plus_gcc' since not specified.
Configuring toolchain based on PICO_COMPILER 'pico_arm_cortex_m0plus_gcc'
Defaulting PICO_GCC_TRIPLE to 'arm-none-eabi'
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- VIDPID:			 'OFF'
-- Delayed boot:		 disabled
-- USB CCID Interface:		 enabled
-- USB WebCCID Interface:	 enabled
-- USB VID/PID:			 0xFEFF:0xFCFD
-- EdDSA support:		 disabled
CMake Error at pico-keys-sdk/pico_keys_sdk_import.cmake:429 (pico_add_library):
  Unknown CMake command "pico_add_library".
Call Stack (most recent call first):
  CMakeLists.txt:46 (include)


-- Configuring incomplete, errors occurred!
See also "/home/bingo/1-Arm/RPi-Pico/picokeys/git/pico-openpgp/build_release/CMakeFiles/CMakeOutput.log".
See also "/home/bingo/1-Arm/RPi-Pico/picokeys/git/pico-openpgp/build_release/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
mv: cannot stat 'pico_openpgp.uf2': No such file or directory
Using PICO_SDK_PATH from environment ('/home/bingo/1-Arm/RPi-Pico/git/pico-sdk')


I'm a total newbie with pico-keys , but not total newbie with building for pi-picos. Yesterday i was building the full pico-fido , and pico-fido2 targets , using their respective : build_pico_xxx.sh scripts Everything went well ... Except every target "barfed" with the below message: ``` CMake Warning: Manually-specified variables were not used by the project: <<<------------------ SECURE_BOOT_PKEY ``` I suppose that one just means the SECURE_BOOT_PKEY is specified, but not used ? **Back on topic** Today i tried to build pico-openpgp (using the same setup as for the ones above) , but every target fails with this: ``` CMake Error at pico-keys-sdk/pico_keys_sdk_import.cmake:429 (pico_add_library): Unknown CMake command "pico_add_library". Call Stack (most recent call first): CMakeLists.txt:46 (include) ``` ``` bingo@LP1:~/1-Arm/RPi-Pico/picokeys/git/pico-openpgp$ ./build_pico_openpgp.sh Using PICO_SDK_PATH from environment ('/home/bingo/1-Arm/RPi-Pico/git/pico-sdk') PICO_SDK_PATH is /home/bingo/1-Arm/RPi-Pico/git/pico-sdk Target board (PICO_BOARD) is '0xcb_helios'. Using board configuration from /home/bingo/1-Arm/RPi-Pico/git/pico-sdk/src/boards/include/boards/0xcb_helios.h Defaulting platform (PICO_PLATFORM) to 'rp2040' based on PICO_BOARD setting. -- Defaulting build type to 'Release' since not specified. Defaulting compiler (PICO_COMPILER) to 'pico_arm_cortex_m0plus_gcc' since not specified. Configuring toolchain based on PICO_COMPILER 'pico_arm_cortex_m0plus_gcc' Defaulting PICO_GCC_TRIPLE to 'arm-none-eabi' -- The C compiler identification is GNU 13.2.1 -- The CXX compiler identification is GNU 13.2.1 -- The ASM compiler identification is GNU -- Found assembler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- VIDPID: 'OFF' -- Delayed boot: disabled -- USB CCID Interface: enabled -- USB WebCCID Interface: enabled -- USB VID/PID: 0xFEFF:0xFCFD -- EdDSA support: disabled CMake Error at pico-keys-sdk/pico_keys_sdk_import.cmake:429 (pico_add_library): Unknown CMake command "pico_add_library". Call Stack (most recent call first): CMakeLists.txt:46 (include) -- Configuring incomplete, errors occurred! See also "/home/bingo/1-Arm/RPi-Pico/picokeys/git/pico-openpgp/build_release/CMakeFiles/CMakeOutput.log". See also "/home/bingo/1-Arm/RPi-Pico/picokeys/git/pico-openpgp/build_release/CMakeFiles/CMakeError.log". make: *** No targets specified and no makefile found. Stop. mv: cannot stat 'pico_openpgp.uf2': No such file or directory Using PICO_SDK_PATH from environment ('/home/bingo/1-Arm/RPi-Pico/git/pico-sdk') PICO_SDK_PATH is /home/bingo/1-Arm/RPi-Pico/git/pico-sdk Target board (PICO_BOARD) is 'adafruit_feather_rp2040_adalogger'. Using board configuration from /home/bingo/1-Arm/RPi-Pico/git/pico-sdk/src/boards/include/boards/adafruit_feather_rp2040_adalogger.h Defaulting platform (PICO_PLATFORM) to 'rp2040' based on PICO_BOARD setting. -- Defaulting build type to 'Release' since not specified. Defaulting compiler (PICO_COMPILER) to 'pico_arm_cortex_m0plus_gcc' since not specified. Configuring toolchain based on PICO_COMPILER 'pico_arm_cortex_m0plus_gcc' Defaulting PICO_GCC_TRIPLE to 'arm-none-eabi' -- The C compiler identification is GNU 13.2.1 -- The CXX compiler identification is GNU 13.2.1 -- The ASM compiler identification is GNU -- Found assembler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /home/bingo/arm/arm-gcc/arm-gcc/bin/arm-none-eabi-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- VIDPID: 'OFF' -- Delayed boot: disabled -- USB CCID Interface: enabled -- USB WebCCID Interface: enabled -- USB VID/PID: 0xFEFF:0xFCFD -- EdDSA support: disabled CMake Error at pico-keys-sdk/pico_keys_sdk_import.cmake:429 (pico_add_library): Unknown CMake command "pico_add_library". Call Stack (most recent call first): CMakeLists.txt:46 (include) -- Configuring incomplete, errors occurred! See also "/home/bingo/1-Arm/RPi-Pico/picokeys/git/pico-openpgp/build_release/CMakeFiles/CMakeOutput.log". See also "/home/bingo/1-Arm/RPi-Pico/picokeys/git/pico-openpgp/build_release/CMakeFiles/CMakeError.log". make: *** No targets specified and no makefile found. Stop. mv: cannot stat 'pico_openpgp.uf2': No such file or directory Using PICO_SDK_PATH from environment ('/home/bingo/1-Arm/RPi-Pico/git/pico-sdk') ```
Bingo600 commented 2025-09-30 19:25:56 +08:00 (Migrated from github.com)

Git version ???
I did a remove , and fresh git clone today.
Issue is still there

Git version ??? I did a remove , and fresh git clone today. Issue is still there
polhenarejos commented 2025-09-30 23:32:00 +08:00 (Migrated from github.com)

Do not use build_pico_openpgp.sh script as it's used for CD/CI.

Use the latest commit.

Do not use `build_pico_openpgp.sh` script as it's used for CD/CI. Use the latest commit.
Bingo600 commented 2025-09-30 23:40:32 +08:00 (Migrated from github.com)

I just made a git pull , and am now running, build_pico_openpgp.sh

Would you please explain the above Do not use build_pico_openpgp.sh
Why not ?

Does that go for all the build_pico..... scripts ?
It's a rather easy way to build for all sdk targets
How would i then build a target ie: waveshare_rp2040_zero

What is CD/CI ?

Seems like your latest commit removed some emulation library settings.
I had to remove and clone again , in order to get it to build

Btw: Thank you for doing this

I just made a git pull , and am now running, build_pico_openpgp.sh Would you please explain the above `Do not use build_pico_openpgp.sh ` Why not ? Does that go for all the build_pico..... scripts ? It's a rather easy way to build for all sdk targets How would i then build a target ie: waveshare_rp2040_zero What is CD/CI ? Seems like your latest commit removed some emulation library settings. I had to remove and clone again , in order to get it to build Btw: Thank you for doing this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dearsky/pico-openpgp#42