Comments (17)
@snikeguo what Kconfig frontends are you using?
Mine is 4.11:
$ apt info kconfig-frontends
Package: kconfig-frontends
Version: 4.11.0.1+dfsg-6
Alternatively you can try to use python3-kconfiglib
, although I don't like kconfiglib because it cannot search for symbols when you start it with CONFIG_ and the symbol name, where kconfig-frontends support with or without CONFIG_
from nuttx.
@snikeguo here version in use in nuttx
kconfig-frontends for msys2 on the MSYS environment
--enable-mconf option will enable the menuconfig
from nuttx.
@snikeguo what Kconfig frontends are you using?
Mine is 4.11:
$ apt info kconfig-frontends Package: kconfig-frontends Version: 4.11.0.1+dfsg-6
Alternatively you can try to use
python3-kconfiglib
, although I don't like kconfiglib because it cannot search for symbols when you start it with CONFIG_ and the symbol name, where kconfig-frontends support with or without CONFIG_
/d/DirMove/Downloads/kconfig-frontends-4.11.0.1
# ./configure && make
configure: loading site script /etc/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-msys/bin/ld.exe
checking if the linker (/usr/x86_64-pc-msys/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 262144
checking how to convert x86_64-pc-msys file names to x86_64-pc-msys format... func_convert_file_noop
checking how to convert x86_64-pc-msys file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-msys/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-msys/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-pc-msys/bin/ld.exe
checking if the linker (/usr/x86_64-pc-msys/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-pc-msys/bin/ld.exe) supports shared libraries... no
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-pc-msys/bin/ld.exe) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking for inline... inline
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for gperf... gperf
checking for the type used in gperf declarations... size_t
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether gettext is declared... yes
checking for library containing gettext... -lintl
checking ncursesw/curses.h usability... yes
checking ncursesw/curses.h presence... yes
checking for ncursesw/curses.h... yes
checking for library containing setupterm... no
checking for library containing initscr... -lncursesw
checking for library containing new_panel... -lpanelw
checking for library containing menu_init... -lmenuw
checking for gtk... no
checking for Qt5... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libs/parser/kconfig-parser.pc
config.status: creating scripts/.autostuff/config.h
config.status: scripts/.autostuff/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
configure: Configured with:
configure: - parser library : static
configure: - root-menu prompt : Configuration
configure: - config prefix : CONFIG_
configure: - frontends : kconfig conf mconf nconf
configure: - localised : yes
configure: - install utilities : yes
configure: - CFLAGS CXXFLAGS : -Wall
make all-am
make[1]: Entering directory '/d/DirMove/Downloads/kconfig-frontends-4.11.0.1'
CC libs/parser/libs_parser_libkconfig_parser_la-yconf.lo
In file included from libs/parser/yconf.c:252:
libs/parser/hconf.gperf:153:1: error: conflicting types for ‘kconf_id_lookup’; have ‘const struct kconf_id *(const char *, unsigned int)’
libs/parser/hconf.gperf:12:31: note: previous declaration of ‘kconf_id_lookup’ with type ‘const struct kconf_id *(const char *, size_t)’ {aka ‘const struct kconf_id *(const char *, long unsigned int)’}
12 | static const struct kconf_id *kconf_id_lookup(register const char *str, register GPERF_LEN_TYPE len);
| ^~~~~~~~~~~~~~~
In file included from libs/parser/yconf.c:80:
libs/parser/confdata.c: In function ‘conf_expand_value’:
libs/parser/confdata.c:97:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
97 | while (isalnum(*src) || *src == '_')
| ^~~~
libs/parser/confdata.c: In function ‘conf_set_sym_val’:
libs/parser/confdata.c:155:54: warning: array subscript has type ‘char’ [-Wchar-subscripts]
155 | for (p2 = p; *p2 && !isspace(*p2); p2++)
| ^~~
libs/parser/expr.c: In function ‘expr_parse_string’:
libs/parser/expr.c:913:63: warning: array subscript has type ‘char’ [-Wchar-subscripts]
913 | return !errno && !*tail && tail > str && isxdigit(tail[-1])
| ~~~~^~~~
libs/parser/symbol.c: In function ‘sym_expand_string_value’:
libs/parser/symbol.c:924:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
924 | while (isalnum(*src) || *src == '_')
| ^~~~
libs/parser/menu.c: In function ‘menu_add_prop’:
libs/parser/menu.c:137:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
137 | if (isspace(*prompt)) {
| ^~~~~~~
libs/parser/menu.c:139:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
139 | while (isspace(*prompt))
| ^~~~~~~
make[1]: *** [Makefile:1404: libs/parser/libs_parser_libkconfig_parser_la-yconf.lo] Error 1
make[1]: Leaving directory '/d/DirMove/Downloads/kconfig-frontends-4.11.0.1'
make: *** [Makefile:889: all] Error 2
from nuttx.
@snikeguo here version in use in nuttx
kconfig-frontends for msys2 on the MSYS environment
--enable-mconf option will enable the menuconfig
how to use?
I tried such a command, but it still doesn't work:
cd /nuttx/tools/ci/platforms
./msys2.sh
+ install_build_tools
+ mkdir -p ''
mkdir: cannot create directory ‘’: No such file or directory
from nuttx.
By the way, can you support ConMenu?
https://download-redirect.rt-thread.org/download/env_release/env-windows-1.5.0.7z
from nuttx.
Steps fresh and clean install MSYS2
1) Install MSYS2
https://www.msys2.org/
2) Use MSYS2 MSYS shell launcher (C:\msys64\msys2.exe)
(https://www.msys2.org/docs/environments/)
Update the package databases
$ pacman -Syuu
3) Installing dependencies
(Always use the MSYS2 shell launcher -> C:\msys64\msys2.exe)
$ pacman -S --noconfirm --needed base-devel gcc gperf automake autoconf git python3 ncurses-devel unzip zip tio zlib-devel cmake ninja python-pip vim
$ pip3 install --root-user-action=ignore --no-cache-dir pyelftools cxxfilt kconfiglib
4) Install a toolchain for ARM architecture and tool kconfig frontends
(Always use the MSYS2 shell launcher -> C:\msys64\msys2.exe)
$ mkdir -p nuttxspace
$ cd nuttxspace
Copy the attached script install_tools.txt (change extension .txt -> .sh )to the nuttxspace folder and run
$ ./install_tools.sh
This command must run in every terminal window
$ source ./tools/env.sh
Check the compiler version you have already installed.
$ arm-none-eabi-gcc --version
5) Clone git repositories
$ git clone https://github.com/apache/nuttx.git nuttx
$ git clone https://github.com/apache/nuttx-apps apps
6) Initialize Configuration and Build NuttX
(Always use the MSYS2 shell launcher -> C:\msys64\msys2.exe)
$ cd nuttx
$ ./tools/configure.sh -g stm32f4discovery:nsh
( where :
-g selects the Windows host and MSYS environment
stm32f4discovery:nsh -> <board name>:<board configuration>)
You can then customize this configuration
$ make menuconfig
Build NuttX
(you can pass the -jN flag to make, where N is the number of parallel jobs
$ make V=1 -j 2
To clean the build, you can do:
$ make clean -j 2
Build NuttX for new board
first run
$ make distclean -j 2
(It removes the configuration of the previous board)
after running the command (start of step 6)
$ ./tools/configure.sh -g <board name>:<board configuration>
from nuttx.
@snikeguo ConMenu is not an independent open-source project like kconfig-frontends, it seems like a RT-Thread only thing. I found a ConMenu independent project here: https://github.com/meznaric/conmenu but it is something else.
Kconfig works fine on Linux, Windows, Mac, BSDs, etc. On Windows you can also use WSL/WSL2, it works fine and is faster then Cygwin/MSYS2.
from nuttx.
Steps fresh and clean install MSYS2
1) Install MSYS2 https://www.msys2.org/
2) Use MSYS2 MSYS shell launcher (C:\msys64\msys2.exe)
(https://www.msys2.org/docs/environments/)
Update the package databases $ pacman -Syuu
3) Installing dependencies (Always use the MSYS2 shell launcher -> C:\msys64\msys2.exe)
$ pacman -S --noconfirm --needed base-devel gcc gperf automake autoconf git python3 ncurses-devel unzip zip tio zlib-devel cmake ninja python-pip vim $ pip3 install --root-user-action=ignore --no-cache-dir pyelftools cxxfilt kconfiglib
4) Install a toolchain for ARM architecture and tool kconfig frontends (Always use the MSYS2 shell launcher -> C:\msys64\msys2.exe)
$ mkdir -p nuttxspace $ cd nuttxspace
Copy the attached script install_tools.txt (change extension .txt -> .sh )to the nuttxspace folder and run
$ ./install_tools.sh
This command must run in every terminal window
$ source ./tools/env.sh
Check the compiler version you have already installed.
$ arm-none-eabi-gcc --version
5) Clone git repositories
$ git clone https://github.com/apache/nuttx.git nuttx $ git clone https://github.com/apache/nuttx-apps apps
6) Initialize Configuration and Build NuttX (Always use the MSYS2 shell launcher -> C:\msys64\msys2.exe)
$ cd nuttx $ ./tools/configure.sh -g stm32f4discovery:nsh ( where : -g selects the Windows host and MSYS environment stm32f4discovery:nsh -> <board name>:<board configuration>)
You can then customize this configuration
$ make menuconfig
Build NuttX (you can pass the -jN flag to make, where N is the number of parallel jobs
$ make V=1 -j 2
To clean the build, you can do:
$ make clean -j 2
Build NuttX for new board
first run
$ make distclean -j 2 (It removes the configuration of the previous board)
after running the command (start of step 6)
$ ./tools/configure.sh -g <board name>:<board configuration>
from nuttx.
@simbit18 when i enter 'make menuconfig' again
# make menuconfig
CP: arch/dummy/Kconfig to /d/Project/nuttxspace/nuttx/arch/dummy/dummy_kconfig
CP: boards/dummy/Kconfig to /d/Project/nuttxspace/nuttx//Kconfig
LN: platform/board to /d/Project/nuttxspace/apps/platform/dummy
LN: include/arch to arch/arm/include
LN: include/arch/board to /d/Project/nuttxspace/nuttx//include
ln: failed to create symbolic link 'include/arch/board' -> '/d/Project/nuttxspace/nuttx//include': File name too long
Failed to create link: include/arch/board
make[1]: *** [tools/Unix.mk:294: include/arch/board] Error 1
make: *** [tools/Unix.mk:693: menuconfig] Error 2
from nuttx.
@snikeguo Which environment are you using ?
https://www.msys2.org/docs/environments/
nuttx is currently used on MSYS environment
The MSYS environment contains the unix-like/cygwin based tools, lives under /usr and is special in that it is always active. All the other environments inherit from the MSYS environment and add various things on top of it.
type on terminal window
$ uname -s
what do you see?
MINGW64_NT- or MSYS_NT- ?
then I remind you to do:
clean the build,
$ make clean -j 2
for new board
$ make distclean -j 2
(It removes the configuration of the previous board)
from nuttx.
@snikeguo Which environment are you using ?
https://www.msys2.org/docs/environments/
nuttx is currently used on MSYS environment
The MSYS environment contains the unix-like/cygwin based tools, lives under /usr and is special in that it is always active. All the other environments inherit from the MSYS environment and add various things on top of it.
type on terminal window $ uname -s
what do you see? MINGW64_NT- or MSYS_NT- ?
then I remind you to do:
clean the build,
$ make clean -j 2
for new board
$ make distclean -j 2
(It removes the configuration of the previous board)
uname -a
MINGW64_NT-10.0-19043 P30008850002A 3.5.3.x86_64 2024-05-06 06:45 UTC x86_64 Msys
from nuttx.
you need to use MSYS environment C:\msys64\msys2.exe
from nuttx.
you need to use MSYS environment C:\msys64\msys2.exe
zrwbgy10@P30008850002A MINGW32 /d/Project/nuttxspace/nuttx
make menuconfig
CP: arch/dummy/Kconfig to /d/Project/nuttxspace/nuttx/arch/dummy/dummy_kconfig
CP: boards/dummy/Kconfig to /d/Project/nuttxspace/nuttx//Kconfig
LN: platform/board to /d/Project/nuttxspace/apps/platform/dummy
LN: include/arch to arch/arm/include
LN: include/arch/board to /d/Project/nuttxspace/nuttx//include
ln: failed to create symbolic link 'include/arch/board' -> '/d/Project/nuttxspace/nuttx//include': File name too long
Failed to create link: include/arch/board
make[1]: *** [tools/Unix.mk:294: include/arch/board] Error 1
make: *** [tools/Unix.mk:693: menuconfig] Error 2
zrwbgy10@P30008850002A MINGW32 /d/Project/nuttxspace/nuttx
uname -a
MINGW32_NT-10.0-19043 P30008850002A 3.5.3.x86_64 2024-05-06 06:45 UTC x86_64 Msys
from nuttx.
>
> zrwbgy10@P30008850002A MINGW32 /d/Project/nuttxspace/nuttx
>
> # make menuconfig
> CP: arch/dummy/Kconfig to /d/Project/nuttxspace/nuttx/arch/dummy/dummy_kconfig CP: boards/dummy/Kconfig to /d/Project/nuttxspace/nuttx//Kconfig LN: platform/board to /d/Project/nuttxspace/apps/platform/dummy LN: include/arch to arch/arm/include LN: include/arch/board to /d/Project/nuttxspace/nuttx//include ln: failed to create symbolic link 'include/arch/board' -> '/d/Project/nuttxspace/nuttx//include': File name too long Failed to create link: include/arch/board make[1]: *** [tools/Unix.mk:294: include/arch/board] Error 1 make: *** [tools/Unix.mk:693: menuconfig] Error 2
>
> zrwbgy10@P30008850002A MINGW32 /d/Project/nuttxspace/nuttx
>
> # uname -a
> MINGW32_NT-10.0-19043 P30008850002A 3.5.3.x86_64 2024-05-06 06:45 UTC x86_64 Msys
from nuttx.
> > zrwbgy10@P30008850002A MINGW32 /d/Project/nuttxspace/nuttx > > # make menuconfig
make menuconfig
CP: arch/dummy/Kconfig to /d/Project/nuttxspace/nuttx/arch/dummy/dummy_kconfig
CP: boards/dummy/Kconfig to /d/Project/nuttxspace/nuttx//Kconfig
LN: platform/board to /d/Project/nuttxspace/apps/platform/dummy
LN: include/arch to arch/arm/include
LN: include/arch/board to /d/Project/nuttxspace/nuttx//include
ln: failed to create symbolic link 'include/arch/board' -> '/d/Project/nuttxspace/nuttx//include': File name too long
Failed to create link: include/arch/board
make[1]: *** [tools/Unix.mk:294: include/arch/board] Error 1
make: *** [tools/Unix.mk:693: menuconfig] Error 2
zrwbgy10@P30008850002A MINGW32 /d/Project/nuttxspace/nuttx
uname -a
MINGW32_NT-10.0-19043 P30008850002A 3.5.3.x86_64 2024-05-06 06:45 UTC x86_64 Msys
from nuttx.
make menuconfig
CP: arch/dummy/Kconfig to /d/Project/nuttxspace/nuttx/arch/dummy/dummy_kconfig
CP: boards/dummy/Kconfig to /d/Project/nuttxspace/nuttx//Kconfig
LN: platform/board to /d/Project/nuttxspace/apps/platform/dummy
LN: include/arch to arch/arm/include
LN: include/arch/board to /d/Project/nuttxspace/nuttx//include
ln: failed to create symbolic link 'include/arch/board' -> '/d/Project/nuttxspace/nuttx//include': File name too long
Failed to create link: include/arch/board
make[1]: *** [tools/Unix.mk:294: include/arch/board] Error 1
make: *** [tools/Unix.mk:693: menuconfig] Error 2
uname -a
MINGW32_NT-10.0-19043 P30008850002A 3.5.3.x86_64 2024-05-06 06:45 UTC x86_64 Msys
from nuttx.
@snikeguo you are not yet using the MSYS environment
path MSYS environment -> C:\msys64\msys2.exe
$ uname -a
MSYS_NT-10.0-19045
after that I recommend that you remove the contents of the nuttxspace folder and repeat the steps
from nuttx.
Related Issues (20)
- TLSF usage issue on `rv-virt` target HOT 3
- Error formatting sdcard HOT 2
- with ESP32 connecting to 6 BLE devices HOT 10
- imx9 pcie rc and ep driver support HOT 2
- MPFS Icicle Kit knsh config failure HOT 11
- esp32 build with many warning HOT 6
- Please manage your code submission and don't make changes without testing HOT 12
- regression of `rv-virt` kernel builds HOT 22
- TLSF doesn't work with rv-virt/knsh64 HOT 1
- syscall: syscall_wraps apply to kernel side symbols as well HOT 3
- lte_send_atcmd_sync says inappropriate I/O for device HOT 11
- cmake system fails to update config.h HOT 1
- How to use NAND Flash device simulator HOT 2
- esp32: make bootloader is not working for building from the source code HOT 6
- [Discussion] Integrating port specific syscall proxies HOT 1
- Kernel Build Apps HOT 29
- Circular dependencies when building NuttX as a library HOT 17
- PWM driver refactorization? HOT 7
- GitHub Status: Incident with Actions May 21, 2024 - 12:45 UTC
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuttx.