UHD+GNURadio安装工具 Python脚本以及安装源码


UHD+GNURadio安装工具,Python脚本,以及安装源码。亲测Ubuntu12.04安装可用,具体可参看我的博文,安装方法二进行安装。
资源截图
代码片段和文件信息
#
# Copyright 2010-2012 Free Software Foundation Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 or (at your option)
# any later version.
#
# GNU Radio 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING.  If not write to
# the Free Software Foundation Inc. 51 Franklin Street
# Boston MA 02110-1301 USA.
#
“““
Creates the swig_doc.i SWIG interface file.
Execute using: python swig_doc.py xml_path outputfilename

The file instructs SWIG to transfer the doxygen comments into the
python docstrings.

“““

import sys time

from doxyxml import DoxyIndex DoxyClass DoxyFriend DoxyFunction DoxyFile
from doxyxml import DoxyOther base

def py_name(name):
    bits = name.split(‘_‘)
    return ‘_‘.join(bits[1:])

def make_name(name):
    bits = name.split(‘_‘)
    return bits[0] + ‘_make_‘ + ‘_‘.join(bits[1:])


class Block(object):
    “““
    Checks if doxyxml produced objects correspond to a gnuradio block.
    “““

    @classmethod
    def includes(cls item):
        if not isinstance(item DoxyClass):
            return False
        # Check for a parsing error.
        if item.error():
            return False
        friendname = make_name(item.name())
        is_a_block = item.has_member(friendname DoxyFriend)
        # But now sometimes the make function isn‘t a friend so check again.
        if not is_a_block:
            is_a_block = di.has_member(friendname DoxyFunction)
        return is_a_block

class Block2(object):
    “““
    Checks if doxyxml produced objects correspond to a new style
    gnuradio block.
    “““

    @classmethod
    def includes(cls item):
        if not isinstance(item DoxyClass):
            return False
        # Check for a parsing error.
        if item.error():
            return False
        is_a_block2 = item.has_member(‘make‘ DoxyFunction) and item.has_member(‘sptr‘ DoxyOther)
        return is_a_block2


def utoascii(text):
    “““
    Convert unicode text into ascii and escape quotes.
    “““
    if text is None:
        return ‘‘
    out = text.encode(‘ascii‘ ‘replace‘)
    out = out.replace(‘“‘ ‘\“‘)
    return out


def combine_descriptions(obj):
    “““
    Combines the brief and detailed descriptions of an object together.
    “““
    description = []
    bd = obj.brief_description.strip()
    dd = obj.detailed_description.strip()
    if bd:
        description.append(bd)
    if dd:
        description.append(dd)
    return utoascii(‘

‘.join(description)).strip()

def format_params(parameteritems):
    output = [‘Args:‘

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-02-04 19:24  GNURADIO
     文件       29395  2016-01-19 10:24  GNURADIOuild-gnuradio
     文件       29630  2016-01-19 09:52  GNURADIOuild-gnuradio~
     目录           0  2016-01-20 08:33  GNURADIOgnuradio
     文件       18651  2015-08-06 08:22  GNURADIOgnuradioCMakeLists.txt
     文件       35147  2013-04-18 07:37  GNURADIOgnuradioCOPYING
     文件        4548  2015-08-06 02:54  GNURADIOgnuradioREADME
     文件        2419  2015-08-06 02:54  GNURADIOgnuradioREADME.building-boost
     文件        7699  2015-08-06 02:54  GNURADIOgnuradioREADME.hacking
     目录           0  2013-05-02 07:57  GNURADIOgnuradiocmake
     目录           0  2015-08-06 02:54  GNURADIOgnuradiocmakeModules
     文件        4003  2013-05-02 07:57  GNURADIOgnuradiocmakeModulesCMakeMacroLibtoolFile.cmake
     文件        5891  2013-05-02 07:57  GNURADIOgnuradiocmakeModulesCMakeParseArgumentsCopy.cmake
     文件         980  2013-05-02 07:57  GNURADIOgnuradiocmakeModulesFindALSA.cmake
     文件        1073  2014-10-02 02:08  GNURADIOgnuradiocmakeModulesFindCppUnit.cmake
     文件        1108  2013-05-02 07:57  GNURADIOgnuradiocmakeModulesFindFFTW3f.cmake
     文件        4593  2015-08-06 02:54  GNURADIOgnuradiocmakeModulesFindGSL.cmake
     文件        1465  2013-05-02 07:57  GNURADIOgnuradiocmakeModulesFindGit.cmake
     文件        4805  2015-07-07 06:32  GNURADIOgnuradiocmakeModulesFindGnuradio.cmake
     文件        2278  2013-05-02 07:57  GNURADIOgnuradiocmakeModulesFindJack.cmake
     文件        1445  2014-07-31 04:39  GNURADIOgnuradiocmakeModulesFindLog4cpp.cmake
     文件        1041  2015-08-06 02:54  GNURADIOgnuradiocmakeModulesFindOSS.cmake
     文件        1523  2014-10-02 02:08  GNURADIOgnuradiocmakeModulesFindPortaudio.cmake
     文件        1835  2015-08-06 02:54  GNURADIOgnuradiocmakeModulesFindQwt.cmake
     文件        4006  2015-08-06 02:54  GNURADIOgnuradiocmakeModulesFindSWIG.cmake
     文件        1085  2013-05-02 07:57  GNURADIOgnuradiocmakeModulesFindSphinx.cmake
     文件        2286  2015-08-06 02:54  GNURADIOgnuradiocmakeModulesFindThrift.cmake
     文件        2767  2015-08-06 02:54  GNURADIOgnuradiocmakeModulesFindUHD.cmake
     文件         812  2014-10-02 02:32  GNURADIOgnuradiocmakeModulesFindUSB.cmake
     文件         645  2014-10-02 02:08  GNURADIOgnuradiocmakeModulesFindZeroMQ.cmake
     文件        5625  2015-08-06 02:54  GNURADIOgnuradiocmakeModulesGnuradioConfig.cmake
............此处省略6408个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)