pico/version.h missing on Raspberry Pi 4 after running ./pico_setup.h multiple times #1579
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk#1579
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have installed the ~/pico_setup.sh` script including sdk, examples, openocd etc on a brand new Raspberry Pi 4 image
The c/c++ include configuration is
IntelliSense on VScode suggests everything is OK except the
#include "pico/stdlib.h"Hovering over this code, I get a cannot open source file "pico/version.h" (dependency of "pico/stdlib.h")C/C++(1696)
locate pico/version.hgeneratesI can get rid of the error by adding an extra include
${HOME}/pico/pico-examples/build/generated/pico_base/pico/**But it seems like the
~/pico_setup.shis missing a build stepI have run this script a number of times but am missing some step or config I think
Further thoughts
cmake ..from build directory andmakerun fine, so they are picking up the missingversion.hfrom somewhere, but intellisense and debug are crapping out even though the same arm-none-eabi-gcc c++ compiler is used#include pico/stdlib.heven though the file is located at/home/blm/pico/pico-sdk/src/common/pico_stdlib/include/pico/stdlib.hSome VSCode config details:
.c_cpp_properties.json
extensions.json
launch.json
settings.json
tasks.json
It sounds like this is just an intellisense configuration problem then? Perhaps https://github.com/raspberrypi/pico-feedback/issues/148 helps? I've also got a feeling that this has been mentioned in other issues too, but can't find them right now.
Perhaps somebody on the https://forums.raspberrypi.com/ will be able to give you some help with your VSCode configuration?
I'm working on the intellisense side, but wanted to point out it only compiles if I add other include paths than the sdk.
What code or process should convert version.h.in to version.h
If you want to replicate this, create a new Raspberry Pi 4 or 5 image, and run Chapter 1 of the install here https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf with ./pico_setup.sh
ping @nathan-contino as I believe he looked at those instructions most recently?
We have a new version of the Getting Started guide coming out soon that should address these (and quite a few other) issues. Check back early next week and the new version should be available!
Cool and thanks - I have a work around so you can either close the ticket and assume all will be well or leave it until the documentation catches up :D
See also https://github.com/raspberrypi/pico-feedback/issues/211#issuecomment-1871879760