Page 1 of 1

I can't compile

Posted: Wed Dec 25, 2019 7:13 am
by simon123
企业微信截图_15772578217369.png
企业微信截图_15772578217369.png (61.99 KiB) Viewed 4374 times
when i use idf.py build
usage: ldgen.py [-h] [--input INPUT] [--fragments FRAGMENTS [FRAGMENTS ...]]
[--libraries-file LIBRARIES_FILE] [--output OUTPUT]
[--config CONFIG] [--kconfig KCONFIG] [--env NAME=VAL]
[--env-file ENV_FILE] [--objdump OBJDUMP]
ldgen.py: error: argument --objdump: expected one argument
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Re: I can't compile

Posted: Sun May 10, 2020 9:44 am
by cbaurtx
I have the same problem. It has been quite some time since you posted. Did you get the issue solved?

Re: I can't compile

Posted: Sun Mar 14, 2021 12:06 pm
by xenpac
mee too. ldgen.py: error: argument --objdump: expected one argument

idf.py is very picky about the CMakeList.txt. it expects all sources and includes properly specifed.

--set(COMPONENT_SRCS "file1.c" "file2.c" "file3.c" NCLUDE_DIRS "include")--

after that it compiles fine.

Re: I can't compile

Posted: Mon Sep 06, 2021 4:13 am
by abhinav3
delete the build folder and run build again