这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
|
jaysnote:linux_c_app_development [2018/11/12 16:54] jaylee 创建 |
jaysnote:linux_c_app_development [2021/06/22 23:14] (当前版本) |
||
|---|---|---|---|
| 行 9: | 行 9: | ||
| * 依赖环境 | * 依赖环境 | ||
| - | ``` | + | ```bash |
| sudo apt-get install zip openssh-server g++ gdb gdbserver | sudo apt-get install zip openssh-server g++ gdb gdbserver | ||
| ``` | ``` | ||
| + | * 配置sshd 支持root账户登录 | ||
| + | ```bash | ||
| + | vi / | ||
| + | permitRootLogin yes | ||
| + | ``` | ||
| + | |||
| + | * 重定向uname,默认不支持aarch64 | ||
| + | |||
| + | ``` | ||
| + | echo "echo ARM" > /bin/uname # | ||
| + | ``` | ||
| ### include | ### include | ||
| 行 30: | 行 41: | ||
| 测试发现原来此过程发生在选项-> | 测试发现原来此过程发生在选项-> | ||
| - | ![](images/ | + | ![](http:// |
| 行 40: | 行 51: | ||
| 属性页-> | 属性页-> | ||
| - | ![库依赖项](images/ | + | ![库依赖项](http:// |
| ``` | ``` | ||
| 行 57: | 行 68: | ||
| Unable to start debugging. Unexpected GDB output from command " | Unable to start debugging. Unexpected GDB output from command " | ||
| ``` | ``` | ||
| - | ![](images/ | + | ![](http:// |
| 确定了Linux GDBServer版本 | 确定了Linux GDBServer版本 | ||
| 行 107: | 行 118: | ||
| ### Microsoft.Build.Linux.Shared.ExceptionTTY | ### Microsoft.Build.Linux.Shared.ExceptionTTY | ||
| - | ![](images/ | + | ![](http:// |
| + | |||
| https:// | https:// | ||
| - | 最后确定和TERM 类型有关系,更改了`.bashrc`。 | + | 最后确定和在`~/ |
| + | > **提示**: | ||
| + | ### cannot open display | ||
| + | |||
| + | 调试 gtk 桌面应用提示不能打开显示。 | ||
| + | |||
| + | ``` | ||
| + | Unable to init server: Could not connect: Connection refused | ||
| + | |||
| + | (factory_test.out: | ||
| + | ``` | ||
| + | |||
| + | 所有的x 桌面应用都需要指定显示的`x server`。 | ||
| + | |||
| + | ``` | ||
| + | export DISPLAY=:0 | ||
| + | ``` | ||
| + | |||
| + | 同时,`x server` 限制连接用户。所以如果要通过`root`调试,会麻烦一些。 | ||
| + | |||
| + | ``` | ||
| + | export DISPLAY=:0 | ||
| + | xhost + # | ||
| + | cp / | ||
| + | ``` | ||
| </ | </ | ||