远程编译调试OpenYuanrong项目代码

OpenEuler系统环境配置

SSH无法连接至远程

VsCode 报错如下

Failed to set up dynamic port forwarding connection over SSH to the VS Code Server.

在sshd程序配置中打开 AllowTcpForwarding 配置为 yes

sudo sed -i 's/^#*AllowTcpForwarding.*/AllowTcpForwarding yes/' /etc/ssh/sshd_config
sudo systemctl restart sshd

代码量过多无法监控

VsCode 报错如下

无法在这个大型工作区中监视文件更改.....

在内核参数中放宽这个限制

cat /proc/sys/fs/inotify/max_user_watches
sudo sed -i '$a\fs.inotify.max_user_watches=524288' /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf

建议配置的系统参数

修改/etc/sysctl.conf修改或添加如下配置

net.ipv4.ip_forward = 1
fs.inotify.max_user_watches = 524288

保存修改后使其生效 sysctl -p /etc/sysctl.conf

编译函数体测试用例

源码编译参考该文档:https://blog.wolfbolin.com/archives/942

测试用例在编译过程中需要确保具有足够的内存数据,否则会在编译测试用例的过程中卡死用例。16U的资源都顶不住,建议限制CPU数量以避免编译崩溃。

You may also like...

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注