0

我正在尝试从 GitHub ( https://github.com/RedhawkSDR/basic-components/tree/master/DataConverter )上的 REDHAWK 存储库中修改 DataConverter 组件,以将数据从浮点数转换为复杂的浮点数数据类型,所以我发送data 可以发送要由 USRP 传输的数据(它只接受复数浮点数作为输入)。

但是,在为复杂浮点数据类型添加新端口和属性后,我去生成组件并收到错误

GENERATE FAILED: Failed to find implementation settings for implementation DCE:f744f32f-510a-4e64-9124-3507d5568e39

当我查看 DataConverter.spd.xml 的 Implementations 选项卡时,我注意到缺少名为“Code Generation Details”的部分。DataConvert.spd.xml 的内容如下。作为参考,我在 Centos 6.4 x64 上运行 REDHAWK 1.9。

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
          This file is protected by Copyright. Please refer to the COPYRIGHT file distributed with this 
               source distribution.

This file is part of REDHAWK Basic Components DataConverter.

REDHAWK Basic Components DataConverter is free software: you can redistribute it and/or modify it under the terms of 
the GNU Lesser General Public License as published by the Free Software Foundation, either 
version 3 of the License, or (at your option) any later version.

REDHAWK Basic Components DataConverter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.  See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this 
program.  If not, see http://www.gnu.org/licenses/.
-->
<!DOCTYPE softpkg PUBLIC "-//JTRS//DTD SCA V2.2.2 SPD//EN" "softpkg.dtd">
<softpkg id="DCE:892a34ce-22c9-4719-b823-9f2e199aa69c" name="DataConverter" type="sca_compliant">
  <title></title>
  <author>
    <name></name>
  </author>
  <propertyfile type="PRF">
    <localfile name="DataConverter.prf.xml"/>
  </propertyfile>
  <descriptor>
    <localfile name="DataConverter.scd.xml"/>
  </descriptor>
  <implementation id="DCE:f744f32f-510a-4e64-9124-3507d5568e39">
    <description>The implementation contains descriptive information about the template for a software component.</description>
    <code type="Executable">
      <localfile name="DataConverter/DataConverter"/>
      <entrypoint>DataConverter/DataConverter</entrypoint>
    </code>
    <compiler name="/usr/bin/gcc" version="4.1.2"/>
    <programminglanguage name="C++"/>
    <humanlanguage name="EN"/>
    <os name="Linux"/>
    <processor name="x86"/>
    <processor name="x86_64"/>
  </implementation>
</softpkg>
4

1 回答 1

0

看起来项目中所需的隐藏文件已被删除,特别是“.DataConverter.wavedev”。将组件的实现与特定代码生成器联系起来的文件称为 wavedev 文件。有关 Eclipse IDE 使用的隐藏文件的更多信息,请参阅v1.9 REDHAWK 文档中的第 20.1.1 章。

如果您从 git 存储库中克隆了这个项目,您应该能够使用 git status 确认这一点。如果是这种情况,您可以使用 git 命令重新签出这个丢失的文件。从基本组件存储库的根目录:

git checkout DataConverter/.DataConverter.wavedev

这个项目的wavedev文件也可以在这里查看

于 2014-03-25T15:08:35.940 回答