Looking at the output of the cmake I think I know what is going on:

Your gnuradio installation is not in the standard directory /usr/local/...

So probably your PYTHONPATH variable is not set for python to look there.

You should add the directory

/usr/local/lib/python2.7/site-packages/


in your PYTHONPATH

Achilleas





On Mon, Nov 16, 2015 at 8:32 AM, Achilleas Anastasopoulos <anas...@umich.edu
> wrote:

> 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" .
> In the /home directory usually there are user directories and you do not
> have permissions, etc...
> How do you run all these (as root?) you should not...
>
> Please do me a favor and try the following:
>
> As a REGULAR user (ie, not root) go to your home directory (say /home/ekko
> for example) and download gr-cdma there.
> Then change the cdma_parameters.py file to indicate the new
> prefix=/home/ekko/gr-cdma
>
> Finally 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 <chai18740449...@gmail.com> wrote:
>
>> hello achilleas
>>
>> thank you
>> the next is mine operation and result
>>
>> step1:i modify the cdma_parameters.py
>> vim cdma_parameters.py
>>
>> the result is picture1
>> i am sure the prefix is right
>>
>> step2:
>> mkdir build_cdma
>> cd build_cdma
>> cmake ../
>>
>> 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.so
>> Checking 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.so
>> GNURADIO_RUNTIME_FOUND = TRUE
>> Checking 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.so
>> GNURADIO_BLOCKS_FOUND = TRUE
>> Checking 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.so
>> GNURADIO_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_cdma
>>
>> i think there is no error
>>
>> step3:make
>>
>> Scanning 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.o
>> Linking CXX shared library libgnuradio-cdma.so
>> [ 33%] Built target gnuradio-cdma
>> Scanning 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.o
>> Linking CXX executable test-cdma
>> [ 46%] Built target test-cdma
>> Scanning dependencies of target cdma_swig_swig_doc
>> [ 46%] Built target cdma_swig_swig_doc
>> Scanning dependencies of target _cdma_swig_swig_tag
>> [ 53%] Building CXX object
>> swig/CMakeFiles/_cdma_swig_swig_tag.dir/_cdma_swig_swig_tag.cpp.o
>> Linking CXX executable _cdma_swig_swig_tag
>> [ 53%] Built target _cdma_swig_swig_tag
>> [ 60%] Generating cdma_swig.tag
>> Scanning dependencies of target cdma_swig_swig_2d0df
>> [ 66%] Building CXX object
>> swig/CMakeFiles/cdma_swig_swig_2d0df.dir/cdma_swig_swig_2d0df.cpp.o
>> Linking CXX executable cdma_swig_swig_2d0df
>> Swig source
>> [ 66%] Built target cdma_swig_swig_2d0df
>> Scanning dependencies of target _cdma_swig
>> [ 73%] Building CXX object
>> swig/CMakeFiles/_cdma_swig.dir/cdma_swigPYTHON_wrap.cxx.o
>> Linking CXX shared module _cdma_swig.so
>> [ 73%] Built target _cdma_swig
>> Scanning dependencies of target pygen_swig_36e12
>> [ 80%] Generating cdma_swig.pyc
>> [ 86%] Generating cdma_swig.pyo
>> [ 86%] Built target pygen_swig_36e12
>> Scanning 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_f9c4e
>> Scanning dependencies of target pygen_apps_9a6dd
>> [100%] Built target pygen_apps_9a6dd
>>
>> this 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.xml
>>
>>
>> step5:ldconfig
>>
>> ldconfig: /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 ../apps
>>
>> gnuradio-companion &
>>
>> 1. load  amp_var_est_hier.grc and generate ,exe
>>
>> when i reload this grc i got that
>>
>> XML parser: Found 3 erroneous XML files while loading the block tree (see
>> "Help/Parser errors" for details)
>>
>> 2. load cdma_tx_hier.grc
>>
>> i got the result in picture2
>>
>> and the detail of import box is picture3
>>
>> then i stopped
>>
>> wait for your reply
>> thank you
>>
>> --Ekko
>>
>> 2015-11-15 23:05 GMT+08:00 Achilleas Anastasopoulos <anas...@umich.edu>:
>>
>>> 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.
>>> They are described in the README file of gr-cdma. There are 3 precisely
>>> defined steps.
>>>
>>> Achilleas
>>>
>>
>>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to