kylin-DIS插件编译方法

  1. 打开“vscode”
  2. 使用“vscode”打开“/root/zhujq/20250315/afsim_demos-dev”目录
  3. 如果之前有“launch.json”文件的话是可以直接编译和调试的
  4. 如果没有“launch.json”文件
  5. 需要手动点击左侧的运行和调试按钮
  6. 打开文件,可调试运行界面点击创建launch.json文件
  7. 随便选一个,这时会生成“launch.json”文件,生成的文件如下:
{
// 使用 IntelliSense 了解相关属性。 
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "by-gdb",
"request": "launch",
"name": "Launch(gdb)",
"program": "${fileBasenameNoExtension}",
"cwd": "${workspaceRoot}"
}
]
}
  1. 删除现在的设置内容,内容如下:
{
// 使用 IntelliSense 了解相关属性。 
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

]
}

 

  1. 点击“vscode”界面右下角的添加配置功能按钮
  2. 在弹出来的下拉界面中,选择“c/c++:(gdb) 启动
  3. 修改“program”是调试时的程序
  4. 修改“args”是调试程序的参数
  5. 执行命令没有界面的话,点击终端”->“新建终端
  6. 如果是CMakeLists.txt工程,执行如下
  7. cmake cmakelists.txt
  8. make
  9. 终端会显示“[100%] Built target test1”,代表生成执行程序完成
  10. 如果是“build.sh”工程
  11. launch.json文件中设置调试程序路径(如果换电脑的话,program参数必须改
  12. 终端”->“新建终端
  13. 输入“./build_dbg.sh”
  14. 如果提示“The current CMakeCache.txt directory /root/fdgt/20250315/afsim_demos-dev/Build_dbg/CMakeCache.txt is different than the directory /root/zhujq/20250315/afsim_demos-dev/Build_dbg where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt”
  15. 删除“build_dbg”目录
  16. 输入“./build_dbg.sh”
  17. 如果提示“cp: 无法获取'/root/zhujq/20250315/afsim_demos-dev/Build_dbg/wsf_install/wsf_plugins/libsimdis_jam.so' 的文件状态(stat): 没有那个文件或目录
  18. 打开“build_dbg.sh”文件,里面的cp路径不对了,需要修改

posted on 2026-01-21 16:22  疯狂delphi  阅读(2)  评论(0)    收藏  举报

导航