Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WSL2にraspberry piのクロスコンパイル環境をインストールする

Posted at

ほぼこのネット記事の手順通りでオッケーだが、以下のコマンドでエラーになったので
対処方法を記載する。

この対処方法がベストかどうかは分からない。

失敗したコマンド sudo apt install binutils-arm-linux-gnueabihf clang
「clangがインストールできない」(みつからない?)旨のエラーが出た。

このサイトを参考にし、次のコマンドを実行した。 sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"

その後、再度、sudo apt install binutils-arm-linux-gnueabihf clangを実行すると正常に終了した。で、WSL2のubuntu上でビルドしたhelloworldのa.outをscpでラズパイ4にコピーし、ラズパイ4上で実行して、標準出力にHello World!と表示された。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?