在浏览有关在组件(https://redhawksdr.github.io/2.2.5/manual/shared-libraries/using-a-shared-library-project/)中使用共享库的RedHawk2.2.5教程(RH noob)时,我遇到了以下错误:
...
checking for ossie home... /usr/local/redhawk/core
checking to see ossie is installed... checking for sdr root... /var/redhawk/sdr
configure: using /var/redhawk/sdr/ as installation prefix
checking whether make supports nested variables... (cached) yes
checking for PROJECTDEPS... yes
checking for sdr root... (cached) /var/redhawk/sdr
configure: error: Package rh.dsp was not found in the pkg-config search path.
Perhaps you should add the directory containing `rh.dsp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rh.dsp' found
make: *** No rule to make target `all'. Stop.
checking for C++ soft package library rh.dsp...
12:36:58 Build Failed. 1 errors, 0 warnings. (took 18s.558ms)我按照https://redhawksdr.github.io/2.2.5/manual/components/hello-world-component/创建了HelloWorld组件(没有端口,BTW),并尝试添加软Pkg Ref库"dsp“,如集成开发环境的REDHAWK Explorer中"Shared Libraries/dsp”下所示。在HelloWorld组件上“生成所有实现”之后,我得到了上面的构建失败。我尝试通过以下方式编辑configure.am文件
export PKG_CONFIG_PATH=$SDRROOT/dom/deps/rh/dsp:$PKG_CONFIG_PATH...but没有用。我查看了REDHAWK提供的示例组件(在Explorer中的"Target SDR/ components /rh“下,比如"autocorrelate"),看看它是如何在REDHAWK中实现的。我看到的一个区别是,autocorrelate上的软Pkg Ref依赖项后面有一个"(cpp)“,而我的没有,即autocorrelate看起来类似于:"Soft Pkg Ref:/deps/rh/dsp/dsp.spd.xml(cpp)”。
发布于 2020-04-02 15:19:11
作为第一个调用端口,您应该检查HelloWorld.spd.xml文件的内容。在那里,您应该会看到<implementation id="cpp">部分,其中应该包含:
<dependency type="runtime_requirements">
<softpkgref>
<localfile name="/deps/rh/dsp/dsp.spd.xml"/>
<implref refid="cpp"/>
</softpkgref>
</dependency>可以在here中找到FastFilter组件的示例(请参见第39和51行)。
https://stackoverflow.com/questions/60976658
复制相似问题