no1wudi commented on PR #2487: URL: https://github.com/apache/nuttx-apps/pull/2487#issuecomment-2579167561
> Sorry @no1wudi why is `hello_rust_cargo` missing from the NuttX Image? https://gist.github.com/lupyuen/b81596576e393be0abac2b7687740052#file-gistfile1-txt-L870 > > ``` > $ cmake --build build -t clean > $ grep HELLO build/.config > CONFIG_EXAMPLES_HELLO_RUST_CARGO=y > CONFIG_EXAMPLES_HELLO_RUST_CARGO_PROGNAME="hello_rust_cargo" > CONFIG_EXAMPLES_HELLO_RUST_CARGO_PRIORITY=100 > CONFIG_EXAMPLES_HELLO_RUST_CARGO_STACKSIZE=2048 > > $ cmake --build build > [1281/1284] Building Rust crate hello > Finished `release` profile [optimized] target(s) in 0.30s > [1283/1284] Linking C executable nuttx > /home/luppy/xpack-riscv-none-elf-gcc-13.2.0-2/bin/../lib/gcc/riscv-none-elf/13.2.0/../../../../riscv-none-elf/bin/ld: warning: nuttx has a LOAD segment with RWX permissions > [1284/1284] Generating System.map > > $ qemu-system-riscv32 -semihosting -M virt,aclint=on -cpu rv32 -smp 8 -bios build/nuttx -nographic > ABC > NuttShell (NSH) NuttX-10.0.1 > nsh> help > Builtin Apps: > nsh sh getprime ostest hello > > nsh> hello_rust_cargo > nsh: hello_rust_cargo: command not found > > $ grep hello_rust_cargo build/nuttx.map > LOAD apps/examples/hello_rust_cargo/hello/riscv32imac-unknown-nuttx-elf/release/libhello.a > ``` @xuxin930 We must set a fake source (https://github.com/apache/nuttx-apps/pull/2487/files#diff-9032963d33348a63e0ddf876c0f994b71375b5c62c5938f05a69466a8bdb464b) for nuttx_add_application then it can create a app in nsh correctly: https://github.com/apache/nuttx/blob/cb980cc9776f865b88268936a3a1d1fc525eddac/cmake/nuttx_add_application.cmake#L98-L105 Do you have any suggestions? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org