I can't compile

simon123
Posts: 1
Joined: Wed Dec 25, 2019 6:57 am

I can't compile

Postby simon123 » Wed Dec 25, 2019 7:13 am

企业微信截图_15772578217369.png
企业微信截图_15772578217369.png (61.99 KiB) Viewed 4371 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

cbaurtx
Posts: 14
Joined: Sun May 10, 2020 9:24 am

Re: I can't compile

Postby cbaurtx » Sun May 10, 2020 9:44 am

I have the same problem. It has been quite some time since you posted. Did you get the issue solved?

xenpac
Posts: 25
Joined: Sun Dec 08, 2019 1:20 am

Re: I can't compile

Postby xenpac » Sun Mar 14, 2021 12:06 pm

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.

abhinav3
Posts: 1
Joined: Mon Sep 06, 2021 4:12 am

Re: I can't compile

Postby abhinav3 » Mon Sep 06, 2021 4:13 am

delete the build folder and run build again

Who is online

Users browsing this forum: No registered users and 114 guests