1

First, make sure that you built the toolchain, or otherwise made it available. Try this:

首先,確保您構建了工具鏈,或者使它可用。試試這個:

bitbake meta-ide-support

bitbake meta-ide-support

That will build a script that you can source in another directory to have access to the toolchain.

這將構建一個腳本,您可以在另一個目錄中源代碼來訪問工具鏈。

Did you check out the Yocto Manual? Specifically, look at section: 4.2.2.1.4.1. Configuring the Cross-Compiler Options

你查過《圓規手冊》了嗎?具體來說,請看第4.2.2.1.4.1節。配置交叉編譯器選項

What I've gotten to work is this:

我要做的是:

Toolchain Root Location: the manual says the top of the build directory, but for me it won't work unless I have it at build/tmp. In other words, the Toolchain Root Directory is the directory right above where the environment setup script got built.

工具鏈根位置:手冊說的是構建目錄的頂部,但是對我來說,除非我在build/tmp中有它,否則它不會工作。換句話說,工具鏈根目錄是位於環境設置腳本構建的上面的目錄。

Sysroot Directory: build/tmp/sysroots/

Sysroot目錄:/ tmp / sysroots /

Also, try with "Standalone pre-built toolchain" selected instead of "Build system derived toolchain," as discussed here.

同樣,嘗試使用“獨立預構建的工具鏈”而不是“構建系統派生的工具鏈”,正如這里討論的那樣。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐