I am a beginner who has just started the Pressense SDK.
I'd like to have it auto-booted, but I can't set it up because of a Make error.
The configuration settings below are successful without errors, but errors occur during make.
./tools/config.py examples/hello feature/startup_script
「If you don't add feature/startup_script, you won't get a make error.
CC:nsh_romfsetc.c
File included from nsh_romfsetc.c:34:
nsh_romfsetc.c:In function 'nsh_romfsetc':
nsh_romfsetc.c:89:28:error:'romfs_img_len' undeclared(first use in this function)
89 | desc.nsectors = NSECTORS(romfs_img_len); /* The number of sensors in the RAM disk* /
| ^~~~~~~~~~~~~
nsh.h:367:33:note:infinition of macro 'NSECTORS'
367 | #defineNSECTORS(b)((b)+CONFIG_NSH_ROMFSSECTIZE-1)/CONFIG_NSH_ROMFSSECTIZE)
| ^
nsh_romfsetc.c:89:28:note:each undeclared identifier is reported only once for each function it appears in
89 | desc.nsectors = NSECTORS(romfs_img_len); /* The number of sensors in the RAM disk* /
| ^~~~~~~~~~~~~
nsh.h:367:33:note:infinition of macro 'NSECTORS'
367 | #defineNSECTORS(b)((b)+CONFIG_NSH_ROMFSSECTIZE-1)/CONFIG_NSH_ROMFSSECTIZE)
| ^
nsh_romfsetc.c:91:19:error:'romfs_img' undeclared(first use in this function)
91|desc.image=romfs_img; /*File system image*/
| ^~~~~~~~~
make [4]:*** [/home/yozoi/spresense/sdk/apps/Application.mk:133: nsh_romfsetc.c.home.yozoi.spresense.sdk.apps.nshlib.o] Error 1
make[4]—Out of directory '/home/yozoi/spresense/sdk/apps/nshlib'
make[3]:*** [Makefile:42:/home/yozoi/spresense/sdk/apps/nshlib_all] Error 2
make[3]—Out of directory '/home/yozoi/spresense/sdk/apps'
make[2]:*** [Makefile:36:all] Error 2
make[2]—Out of directory '/home/yozoi/spresense/sdk/apps'
make[1]:***[tools/LibTargets.mk:210:/home/yozoi/spresense/sdk/apps/libapps.a] Error 2
make[1]—Out of directory '/home/yozoi/spresense/nuttx'
make:*** [Makefile:114:all] Error 2
I am also using the latest SDKv2.5 below, so I tried it, but the build is ready.
https://github.com/sonydevworld/spresense/releases/tag/v2.5.0
If you have command operations such as git checkout, or if you have switched configurations, you might have extra files left.Why don't you do 'make distclean' and then try making again with the same config?
547 Who developed the "avformat-59.dll" that comes with FFmpeg?
542 Unable to install versioned in Google Colab
549 PHP ssh2_scp_send fails to send files as intended
710 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
548 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.