|
From: | Achilleas Anastasopoulos |
Subject: | Re: [Discuss-gnuradio] gr-cdma |
Date: | Mon, 16 Nov 2015 09:07:29 -0500 |
As a REGULAR user (ie, not root) go to your home directory (say /home/ekko for example) and download gr-cdma there.In the /home directory usually there are user directories and you do not have permissions, etc...Ekko,Do not worry about grc for now. You first have to fix the python import error.It is very unusual that you have downloaded the gr-cdma in the directory "/home/gr-cdma" .How do you run all these (as root?) you should not...Please do me a favor and try the following:Then change the cdma_parameters.py file to indicate the new prefix=/home/ekko/gr-cdmaFinally can you verify that python looks at these directories:
/usr/local/lib/python2.7/site-packages/If not, you should set your PYTHONPATH.Also, I wanted to ask you: do you have a working GNURADIO installation?Where is it?Are your remaining gnuradio blocks also residing in
/usr/local/lib/python2.7/site-packages/ directory?Achilleas
On Mon, Nov 16, 2015 at 7:14 AM, chai E <address@hidden> wrote:hello achilleasthank youthe next is mine operation and resultstep1:i modify the cdma_parameters.pyvim cdma_parameters.pythe result is picture1i am sure the prefix is rightstep2:mkdir build_cdmacd build_cdmacmake ../the result is-- The CXX compiler identification is GNU 4.9.1-- The C compiler identification is GNU 4.9.1-- Check for working CXX compiler: /usr/bin/c++-- Check for working CXX compiler: /usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Build type not specified: defaulting to release.-- Boost version: 1.56.0-- Found the following Boost libraries:-- filesystem-- system-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")-- checking for module 'gnuradio-runtime'-- found gnuradio-runtime, version 3.7.7-- Found GNURADIO_RUNTIME: /usr/lib/libgnuradio-runtime.soChecking for GNU Radio Module: RUNTIME* INCLUDES=/usr/include* LIBS=/usr/lib/libgnuradio-runtime.so;/usr/lib/libgnuradio-runtime.so;/usr/lib/libgnuradio-pmt.so-- Found GNURADIO_RUNTIME: /usr/lib/libgnuradio-runtime.so;/usr/lib/libgnuradio-runtime.so;/usr/lib/libgnuradio-pmt.soGNURADIO_RUNTIME_FOUND = TRUEChecking for GNU Radio Module: BLOCKS-- checking for module 'gnuradio-blocks'-- found gnuradio-blocks, version 3.7.7* INCLUDES=/usr/include* LIBS=/usr/lib/libgnuradio-blocks.so;/usr/lib/libgnuradio-runtime.so;/usr/lib/libgnuradio-pmt.so-- Found GNURADIO_BLOCKS: /usr/lib/libgnuradio-blocks.so;/usr/lib/libgnuradio-runtime.so;/usr/lib/libgnuradio-pmt.soGNURADIO_BLOCKS_FOUND = TRUEChecking for GNU Radio Module: DIGITAL-- checking for module 'gnuradio-digital'-- found gnuradio-digital, version 3.7.7* INCLUDES=/usr/include* LIBS=/usr/lib/libgnuradio-digital.so;/usr/lib/libgnuradio-runtime.so;/usr/lib/libgnuradio-pmt.so-- Found GNURADIO_DIGITAL: /usr/lib/libgnuradio-digital.so;/usr/lib/libgnuradio-runtime.so;/usr/lib/libgnuradio-pmt.soGNURADIO_DIGITAL_FOUND = TRUE-- checking for module 'cppunit'-- found cppunit, version 1.13.1-- Found CPPUNIT: /usr/lib/libcppunit.so;dl---- Checking for module SWIG-- Found SWIG version 3.0.2.-- Found SWIG: /usr/bin/swig-- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.3", minimum required is "2")-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.3", minimum required is "2")-- Looking for sys/types.h-- Looking for sys/types.h - found-- Looking for stdint.h-- Looking for stdint.h - found-- Looking for stddef.h-- Looking for stddef.h - found-- Check size of size_t-- Check size of size_t - done-- Check size of unsigned int-- Check size of unsigned int - done-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Success-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)-- Configuring done-- Generating done-- Build files have been written to: /home/gr-cdma/build_cdmai think there is no errorstep3:makeScanning dependencies of target gnuradio-cdma[ 6%] Building CXX object lib/CMakeFiles/gnuradio-cdma.dir/packet_header2.cc.o[ 13%] Building CXX object lib/CMakeFiles/gnuradio-cdma.dir/packet_headerparser_b2_impl.cc.o[ 20%] Building CXX object lib/CMakeFiles/gnuradio-cdma.dir/chopper_impl.cc.o[ 26%] Building CXX object lib/CMakeFiles/gnuradio-cdma.dir/vector_insert2_impl.cc.o[ 33%] Building CXX object lib/CMakeFiles/gnuradio-cdma.dir/flag_gen_impl.cc.oLinking CXX shared library libgnuradio-cdma.so[ 33%] Built target gnuradio-cdmaScanning dependencies of target test-cdma[ 40%] Building CXX object lib/CMakeFiles/test-cdma.dir/test_cdma.cc.o[ 46%] Building CXX object lib/CMakeFiles/test-cdma.dir/qa_cdma.cc.oLinking CXX executable test-cdma[ 46%] Built target test-cdmaScanning dependencies of target cdma_swig_swig_doc[ 46%] Built target cdma_swig_swig_docScanning dependencies of target _cdma_swig_swig_tag[ 53%] Building CXX object swig/CMakeFiles/_cdma_swig_swig_tag.dir/_cdma_swig_swig_tag.cpp.oLinking CXX executable _cdma_swig_swig_tag[ 53%] Built target _cdma_swig_swig_tag[ 60%] Generating cdma_swig.tagScanning dependencies of target cdma_swig_swig_2d0df[ 66%] Building CXX object swig/CMakeFiles/cdma_swig_swig_2d0df.dir/cdma_swig_swig_2d0df.cpp.oLinking CXX executable cdma_swig_swig_2d0dfSwig source[ 66%] Built target cdma_swig_swig_2d0dfScanning dependencies of target _cdma_swig[ 73%] Building CXX object swig/CMakeFiles/_cdma_swig.dir/cdma_swigPYTHON_wrap.cxx.oLinking CXX shared module _cdma_swig.so[ 73%] Built target _cdma_swigScanning dependencies of target pygen_swig_36e12[ 80%] Generating cdma_swig.pyc[ 86%] Generating cdma_swig.pyo[ 86%] Built target pygen_swig_36e12Scanning dependencies of target pygen_python_f9c4e[ 93%] Generating __init__.pyc, cdma_parameters.pyc, freq_timing_estimator.pyc, kronecker_filter.pyc[100%] Generating __init__.pyo, cdma_parameters.pyo, freq_timing_estimator.pyo, kronecker_filter.pyo[100%] Built target pygen_python_f9c4eScanning dependencies of target pygen_apps_9a6dd[100%] Built target pygen_apps_9a6ddthis is the result ,step 4:make install-- Install configuration: "Release"-- Up-to-date: /usr/local/include/cdma/api.h-- Up-to-date: /usr/local/include/cdma/chopper.h-- Up-to-date: /usr/local/include/cdma/vector_insert2.h-- Up-to-date: /usr/local/include/cdma/packet_header2.h-- Up-to-date: /usr/local/include/cdma/packet_headerparser_b2.h-- Up-to-date: /usr/local/include/cdma/flag_gen.h-- Installing: /usr/local/lib/libgnuradio-cdma.so-- Installing: /usr/local/lib/python2.7/site-packages/cdma/_cdma_swig.so-- Removed runtime path from "/usr/local/lib/python2.7/site-packages/cdma/_cdma_swig.so"-- Installing: /usr/local/lib/python2.7/site-packages/cdma/cdma_swig.py-- Installing: /usr/local/lib/python2.7/site-packages/cdma/cdma_swig.pyc-- Installing: /usr/local/lib/python2.7/site-packages/cdma/cdma_swig.pyo-- Up-to-date: /usr/local/include/cdma/cdma/swig/cdma_swig.i-- Installing: /usr/local/include/cdma/cdma/swig/cdma_swig_doc.i-- Up-to-date: /usr/local/lib/python2.7/site-packages/cdma/__init__.py-- Up-to-date: /usr/local/lib/python2.7/site-packages/cdma/cdma_parameters.py-- Up-to-date: /usr/local/lib/python2.7/site-packages/cdma/freq_timing_estimator.py-- Up-to-date: /usr/local/lib/python2.7/site-packages/cdma/kronecker_filter.py-- Installing: /usr/local/lib/python2.7/site-packages/cdma/__init__.pyc-- Installing: /usr/local/lib/python2.7/site-packages/cdma/cdma_parameters.pyc-- Installing: /usr/local/lib/python2.7/site-packages/cdma/freq_timing_estimator.pyc-- Installing: /usr/local/lib/python2.7/site-packages/cdma/kronecker_filter.pyc-- Installing: /usr/local/lib/python2.7/site-packages/cdma/__init__.pyo-- Installing: /usr/local/lib/python2.7/site-packages/cdma/cdma_parameters.pyo-- Installing: /usr/local/lib/python2.7/site-packages/cdma/freq_timing_estimator.pyo-- Installing: /usr/local/lib/python2.7/site-packages/cdma/kronecker_filter.pyo-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/cdma_chopper.xml-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/cdma_vector_insert2.xml-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/cdma_message_probe.xml-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/cdma_packet_headerparser_b2.xml-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/cdma_packet_headerparser_b2_default.xml-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/cdma_flag_gen.xml-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/cdma_kronecker_filter.xml-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/cdma_freq_timing_estimator.xmlstep5:ldconfigldconfig: /usr/lib/libstdc++.so.6.0.20-gdb.py is not an ELF file - it has the wrong magic bytes at the start.step 6:cd ../appsgnuradio-companion &1. load amp_var_est_hier.grc and generate ,exewhen i reload this grc i got thatXML parser: Found 3 erroneous XML files while loading the block tree (see "Help/Parser errors" for details)2. load cdma_tx_hier.grci got the result in picture2and the detail of import box is picture3then i stoppedwait for your replythank you--Ekko2015-11-15 23:05 GMT+08:00 Achilleas Anastasopoulos <address@hidden>:AchilleasThey are described in the README file of gr-cdma. There are 3 precisely defined steps.Ekko,I can help you with these error messages. They are not supposed to appear.Can you describe in detail the results from the steps you followed to build/install gr-cdma.
[Prev in Thread] | Current Thread | [Next in Thread] |