【发布时间】:2021-11-11 05:23:30
【问题描述】:
我已经在我的 Raspberry Pi 3B 上安装了 windows 10 IoT core,并将我的 raspberry pi 和我的电脑连接到同一个连接。但是当我想运行一个用 Visual Studio 2022 编写的简单程序时,出现这些错误:
Missing tools on -574456429: g++ gdb rsync zip
Could not resolve path '~/projects/Blink1/obj/ARM/Debug/'
代码:
#include <wiringPi.h>
// LED Pin - wiringPi pin 0 is BCM_GPIO 17.
// we have to use BCM numbering when initializing with wiringPiSetupSys
// when choosing a different pin number please use the BCM numbering, also
// update the Property Pages - Build Events - Remote Post-Build Event command
// which uses gpio export for setup for wiringPiSetupSys
#define LED 17
int main(void)
{
wiringPiSetupSys();
pinMode(LED, OUTPUT);
while (true)
{
digitalWrite(LED, HIGH); // On
delay(500); // ms
digitalWrite(LED, LOW); // Off
delay(500);
}
return 0;
}
.Windows 10 IoT 核心版本为 10.0.17763.107
.Visual Studio 版本为 2022 预览版
有什么想法吗???
更新:wiring pi 是树莓派的Linux 基础库。所以我尝试了一个简单的 XAML 示例(一个简单的 Hello world 文本标签)。但错误是:
【问题讨论】:
-
我会从
sudo apt install g++ gdb rsync zip开始。没有这些数据包,它肯定是行不通的。 -
@PMF 谢谢,您提到的命令是 Linux 终端命令。但这里我们有 Windows 10 IoT 核心。
-
你是对的,对不起。我知道它以某种方式工作,但我自己没有使用过 Windows 10 IoT,特别是因为它似乎不再受支持。我认识一些可能知道的人。我会问,但这可能需要几天时间。
-
@PMF 非常感谢。我不得不使用 Windows 10 IoT。我真的更喜欢使用像 Raspbian OS 这样的 Linux 发行版,而不是 windows 10 IoT,但我不被允许。
-
我读你的问题不够准确 - 看来你正在使用 WiringPi。这仅适用于 linux,您的构建似乎需要 linux 依赖项。你一定要使用 C 吗?
标签: visual-studio raspberry-pi remote-debugging windows-10-iot-core