0

我正在运行 CentOs 6.5 i686 并尝试安装 GNU Radio。我创建了一个构建目录并执行了“sudo cmake ../”,结果如下:

######################################################
-- # Gnuradio enabled components                         
-- ######################################################
--   * python-support
--   * testing-support
--   * volk
--   * doxygen
--   * sphinx
--   * gnuradio-runtime
--   * gr-blocks
--   * gnuradio-companion
--   * gr-fec
--   * gr-fft
--   * gr-filter
--   * gr-analog
--   * gr-digital
--   * gr-atsc
--   * gr-audio
--   * gr-channels
--   * gr-noaa
--   * gr-pager
--   * gr-qtgui
--   * gr-uhd
--   * gr-utils
--   * gr-vocoder
--   * gr-fcd
--   * gr-wavelet
--   * gr-wxgui
-- 
-- ######################################################
-- # Gnuradio disabled components                        
-- ######################################################
--   * gr-ctrlport
--   * gr-comedi
--   * gr-trellis
--   * gr-video-sdl
--   * gr-zeromq
-- 
-- Using install prefix: /usr/local
-- Building for version: 3.7.4 / 3.7.4
-- Configuring done

警告:源文件“/usr/local/gnuradio/gnuradio-3.7.4/gr-digital/lib/header_payload_demux_impl.cc”针对目标“gnuradio-digital”多次列出。-- 生成完成 -- 构建文件已写入:/usr/local/gnuradio/gnuradio-3.7.4/build

然后我执行了“sudo make”,导致以下错误:

[alinux build]$ sudo ldconfig
[alinux build]$ sudo make
Scanning dependencies of target volk
[  0%] Building C object volk/lib/CMakeFiles/volk.dir/constants.c.o
Linking C shared library libvolk.so
[  2%] Built target volk
Linking CXX executable test_all
[  2%] Built target test_all
Linking CXX executable volk-config-info
[  2%] Built target volk-config-info
Linking CXX executable volk_profile
[  2%] Built target volk_profile
[  2%] Built target pygen_python_volk_modtool_42925
[  2%] Built target pygen_python_volk_modtool_fe100
[  2%] Built target digital_generated_includes
[  2%] Built target pmt_generated
[  3%] Built target blocks_generated_includes
[  3%] Built target filter_generated_includes
[  3%] Built target analog_generated_includes
make[2]: *** No rule to make target `filter_generated_includes', needed by `docs/doxygen/xml'.  Stop.
make[1]: *** [docs/doxygen/CMakeFiles/doxygen_target.dir/all] Error 2
make: *** [all] Error 2
[alinux build]$ 

我已经构建了 doxygen,它在我的路径中,我不知道还有什么问题?任何帮助表示赞赏!

4

1 回答 1

1

关于 dublette 文件的警告听起来像是 CMake 初始化运行出错了。通常,通过清除构建目录并再次运行 cmake,这些类型的错误就会消失。

此外,切勿使用 运行 cmake sudo,因为它不是必需的,并且可能会破坏某些东西。只有在安装时,并且只有在安装到普通用户无法放置文件的地方时,您才需要 root 权限。正常的工作流程是

#in GNU Radio source tree root folde
mkdir build
cd build
cmake ..
make -j3
sudo make install
于 2015-01-08T17:09:13.937 回答