OK, I am having a problem building the howto module with CMake.
Here is the output of all the steps:
[anastas@jefe build]$ cmake …/
– The CXX compiler identification is GNU
– Check for working CXX compiler: /usr/lib64/ccache/c++
– Check for working CXX compiler: /usr/lib64/ccache/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Build type not specified: defaulting to release.
– Boost version: 1.46.0
– checking for module ‘gruel’
– found gruel, version 3.5.2git
– Found GRUEL: /usr/local/lib64/libgruel.so
– checking for module ‘gnuradio-core’
– found gnuradio-core, version 3.5.2git
– Found GNURADIO_CORE: /usr/local/lib64/libgnuradio-core.so
– Boost version: 1.46.0
– Found the following Boost libraries:
– unit_test_framework
– Found SWIG: /usr/bin/swig (found version “2.0.4”)
– Could NOT find PythonLibs (missing: PYTHON_LIBRARIES)
– Found PythonInterp: /usr/bin/python2.7
– Found Doxygen: /usr/bin/doxygen
– Configuring done
– Generating done
– Build files have been written to:
/n/harrisville/x/anastas/gnuradio_trunk/gr-howto-write-a-block-cmake/build
Then
[anastas@jefe build]$ make
[ 12%] Building CXX object
lib/CMakeFiles/gnuradio-howto.dir/howto_square_ff.cc.o
[ 25%] Building CXX object
lib/CMakeFiles/gnuradio-howto.dir/howto_square2_ff.cc.o
[ 37%] Building CXX object
lib/CMakeFiles/gnuradio-howto.dir/howto_demod_filterbank_ccvc.cc.o
Linking CXX shared library libgnuradio-howto.so
[ 37%] Built target gnuradio-howto
[ 50%] Building CXX object
lib/CMakeFiles/qa_howto_square2_ff.dir/qa_howto_square2_ff.cc.o
Linking CXX executable qa_howto_square2_ff
[ 50%] Built target qa_howto_square2_ff
[ 62%] Building CXX object
lib/CMakeFiles/qa_howto_square_ff.dir/qa_howto_square_ff.cc.o
Linking CXX executable qa_howto_square_ff
[ 62%] Built target qa_howto_square_ff
[ 62%] Generating init.pyc
[ 62%] Generating init.pyo
[ 87%] Built target pygen_python_6b399
[ 87%] Shebangin howto_square.py
[100%] Built target pygen_apps_19307
Then
[anastas@jefe build]$ sudo make install
Built target gnuradio-howto
Built target qa_howto_square2_ff
Built target qa_howto_square_ff
Built target pygen_python_6b399
Built target pygen_apps_19307
Install the project…
– Install configuration: “Release”
– Installing: /usr/local/include/howto/howto_api.h
– Installing: /usr/local/include/howto/howto_square_ff.h
– Installing: /usr/local/include/howto/howto_square2_ff.h
– Installing: /usr/local/lib64/libgnuradio-howto.so
– Removed runtime path from “/usr/local/lib64/libgnuradio-howto.so”
– Installing:
/usr/local/lib64/python2.7/site-packages/howto/init.py
– Installing:
/usr/local/lib64/python2.7/site-packages/howto/init.pyc
– Installing:
/usr/local/lib64/python2.7/site-packages/howto/init.pyo
– Installing: /usr/local/share/gnuradio/grc/blocks/howto_square_ff.xml
– Installing: /usr/local/share/gnuradio/grc/blocks/howto_square2_ff.xml
– Installing: /usr/local/bin/howto_square.py
Now in python I try:
[anastas@jefe build]$ python
Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import howto
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib64/python2.7/site-packages/howto/init.py”,
line 45, in
from howto_swig import *
ImportError: No module named howto_swig
On Thu, Feb 16, 2012 at 11:49:10AM -0500, Achilleas A.
wrote:
import howto
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib64/python2.7/site-packages/howto/init.py”,
line 45, in
from howto_swig import *
ImportError: No module named howto_swig
Hi Achilleas,
stupid question, but did you try ‘sudo ldconfig’?
MB
–
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Achilleas
Achilleas,
This is good information. I’ve gotten various reports on trouble with
the
use of SWIG 2.0.4 (specifically the .4 version). I didn’t think it had
become a default installation, but it seems like it is. I’ll
specifically
take a look at it now, though.
In the meantime, is there a way you can install Swig 1.3.x and use that,
instead? I wonder if that might solve you problem.
I installed swig 1.3.40 and i have the same problem!!!
is there any other way i can check if the required PyhtonLibs
are indeed available in my system?
The fact that gnuradio trunk builds without a problem makes me go
crazy…
I installed swig 1.3.40 and i have the same problem!!!
is there any other way i can check if the required PyhtonLibs
are indeed available in my system?
The fact that gnuradio trunk builds without a problem makes me go crazy…
Its not a swig problem, swig 2.0.4 is fine. Did you try my patch?
I am facing few similar problems and i need help in this regard.
I was able to install HOWTO block in gnuradio properly by closely
following the instructions given on the following page using gr-modtool
all test passed successfully and two block (1) square_ff (2) square2_ff
came in gnuradio-companion GUI too and i used them without any problem
by
importing howto.
But the main thing is that same procedure i followed for
gr_bin_statistics_f too and after installation it came in GRC in some
other block named “howto” (notice small letters) , not in “HOWTO” where
were the square block. But as soon as i drag them to GRC window
everything
becomes blank in that window.
and also when i try to use this function in spectrum sense python file
as
howto.gr_bin_statistic_f it gives following error.
stats = howto.gr_bin_statistics_f(self.fft_size, self.msgq,
AttributeError: ‘module’ object has no attribute ‘gr_bin_statistics_f’
Kindly help me to fix this issue.
Thanks
Regards,
adarsh
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.