Kicad 5.1 Plugins
configure and build the tutorial code we will use CMake and create a CMakeLists.txt script file: cd ${DEMO_ROOT} cat > CMakeLists.txt << _EOF # declare the name of the project project( PLUGIN_DEMO ) # of tetrahedra. This tutorial assumes that the first tutorial had been completed and that the CMakeLists.txt and FindKICAD.cmake script files have been created. Place the new source file in the same directory directory as the previous tutorial’s source file and we will extend the previous tutorial’s CMakeLists.txt file to build this tutorial. Since this plugin will create a scene graph for KiCad we need to link0 码力 | 48 页 | 44.28 KB | 1 年前3Kicad 4.0 Plugins
configure and build the tutorial code we will use CMake and create a CMakeLists.txt script file: cd ${DEMO_ROOT} cat > CMakeLists.txt << _EOF # declare the name of the project project( PLUGIN_DEMO ) # of tetrahedra. This tutorial assumes that the first tutorial had been completed and that the CMakeLists.txt and FindKICAD.cmake script files have been created. The new source file shall be placed in the directory as the previous tutorial’s source file and we shall extend the previous tutorial’s CMakeLists.txt file to build this tutorial. Since this plugin will create a scene graph for KiCad we need to0 码力 | 48 页 | 66.10 KB | 1 年前3Kicad 4.0 Plugins
configure and build the tutorial code we will use CMake and create a CMakeLists.txt script file: cd ${DEMO_ROOT} cat > CMakeLists.txt << _EOF # declare the name of the project project( PLUGIN_DEMO ) of tetrahedra. This tutorial assumes that the first tutorial had been completed and that the CMakeLists.txt and FindKICAD.cmake script files have been created. The new source file shall be placed in the directory as the previous tutorial’s source file and we shall extend the previous tutorial’s CMakeLists.txt file to build this tutorial. Since this plugin will create a scene graph for KiCad we need to0 码力 | 36 页 | 210.85 KB | 1 年前3Kicad 5.1 Plugins
configure and build the tutorial code we will use CMake and create a CMakeLists.txt script file: cd ${DEMO_ROOT} cat > CMakeLists.txt << _EOF # declare the name of the project project( PLUGIN_DEMO ) of tetrahedra. This tutorial assumes that the first tutorial had been completed and that the CMakeLists.txt and FindKICAD.cmake script files have been created. Place the new source file in the same directory directory as the previous tutorial’s source file and we will extend the previous tutorial’s CMakeLists.txt file to build this tutorial. Since this plugin will create a scene graph for KiCad we need to0 码力 | 36 页 | 204.70 KB | 1 年前3Kicad 5.1 插件
对于 OS X,此处显示的 FindPackage 脚本可能需要进行一些调整。 要配置和构建教程代码,我们将使用 CMake 并创建一个 ‘CMakeLists.txt’ 脚本 文件: cd ${DEMO_ROOT} cat > CMakeLists.txt << _EOF # 声明项目名称 # declare the name of the project project( PLUGIN_DEMO 件不处理文件内容; 相反,插件只是创建一个包含一对四面体的场景图。 本教 程假定第一个教程已完成,并且已创建 CMakeLists.txt 和 FindKICAD.cmake 脚 本文件。 将新的源文件放在与上一个教程的源文件相同的目录中,我们将扩展上一个教 程的 CMakeLists.txt 文件来构建本教程。 由于这个插件会为 KiCad 创建一个场 景图,我们需要链接到 KiCad 的场景图库 场景图对象是 3D 缓存管理器使用的中 间数据可视化格式。 所有支持模型可视化的插件都必须通过此库将模型数据 转换为场景图。 第一步是扩展 ‘CMakeLists.txt’ 来构建这个教程项目: cd ${DEMO_ROOT} cat >> CMakeLists.txt << _EOF add_library( s3d_plugin_demo2 MODULE src/s3d_plugin_demo20 码力 | 56 页 | 49.46 KB | 1 年前3Kicad 5.1 插件
OS X,此 处显示的 FindPackage 脚本可能需要进行一些调整。 要配置和构建教程代码,我们将使用 CMake 并创建一个‘CMakeLists.txt’脚本文件: cd ${DEMO_ROOT} cat > CMakeLists.txt << _EOF # b'' 声 b''b'' 明 b''b'' 项 b''b'' 目 b''b'' 名 b''b'' 称 b'' # declare 插件不处理文件内容; 相反,插件只是创建一个包含一对四面体的场景图。本教程假定第一个教程已完成,并且已创 建 CMakeLists.txt 和 FindKICAD.cmake 脚本文件。 将新的源文件放在与上一个教程的源文件相同的目录中,我们将扩展上一个教程的 CMakeLists.txt 文件来构建本教 程。由于这个插件会为 KiCad 创建一个场景图,我们需要链接到 KiCad 的场景图库‘kicad_3dsg’。KiCad 场景图对象是 3D 缓存管理器使用的中间数据可视化格式。所有支持模型 可视化的插件都必须通过此库将模型数据转换为场景图。 第一步是扩展‘CMakeLists.txt’来构建这个教程项目: cd ${DEMO_ROOT} cat >> CMakeLists.txt << _EOF add_library( s3d_plugin_demo2 MODULE src/s3d_plugin_demo20 码力 | 45 页 | 612.98 KB | 1 年前3
共 6 条
- 1