Hi all,While adding block to the empty module using gr_modtool, the
added files don exactly match with those given in the tutorial at
http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules.The
result of the command is given below.Should I ignore this mismatch or
there is some error somewhere. I am exactly following the above link .
Please suggest.
Output of command:[ehsan@GRB gr-howto]$ gr_modtool.py add -t general
square_ffOperating in directory .GNU Radio module name identified:
howtoLanguage: C++Block/code identifier: square_ffEnter valid argument
list, including default arguments:Add Python QA code? [Y/n] nAdd C++ QA
code? [Y/n] nTraversing lib…Adding file ‘square_ff_impl.h’…Adding
file ‘square_ff_impl.cc’…Adding file ‘square_ff.h’…Traversing
swig…Editing swig/howto_swig.i…Traversing grc…Adding file
‘howto_square_ff.xml’…Editing grc/CMakeLists.txt…
Output of second Command for gr_sync_block is given below.
[ehsan@GRB gr-howto]$ gr_modtool.py add -t sync square2_ffOperating in
directory .GNU Radio module name identified: howtoLanguage:
C++Block/code identifier: square2_ffEnter valid argument list, including
default arguments:Add Python QA code? [Y/n] nAdd C++ QA code? [Y/n]
nTraversing lib…Adding file ‘square2_ff_impl.h’…Adding file
‘square2_ff_impl.cc’…Adding file ‘square2_ff.h’…Traversing
swig…Editing swig/howto_swig.i…Traversing grc…Adding file
‘howto_square2_ff.xml’…Editing grc/CMakeLists.txt…
RegardsG R Begh
On Fri, Jan 25, 2013 at 08:45:28AM -0800, Ghulam Rasool B. wrote:
Hi all,
While adding block to the empty module using gr_modtool, the added files don
exactly match with those given in the tutorial at http://gnuradio.org/redmine/
projects/gnuradio/wiki/OutOfTreeModules.The result of the command is given below.
Should I ignore this mismatch or there is some error somewhere. I am exactly
following the above link . Please suggest.
Is it not working? Minor mismatches are OK.
MB
Language: C++
Traversing grc…
Add Python QA code? [Y/n] n
Regards
G R Begh
Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page
–
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin B.
Research Associate
Kaiserstraße 12
Building 05.01
76131 Karlsruhe
Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu
KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
I had tried to make eneable qpsk at grc blocks but it is gives errors at
the end, what is problem i didn’t understand, anybody to help?
not: i had downloaded qpsk.py from
http://gnuradio.org/redmine/projects/gnuradio/repo…
PROGRESS IS:
gr_modtool.py create myQpsk
Module directory is “./gr-myQpsk”.
Creating directory…
Copying howto example…
Unpacking…
Replacing occurences of ‘howto’ to ‘myQpsk’…
Done.
Use ‘gr_modtool add’ to add a new block to this currently empty module.
after that…
I had added pyhton block into init.py then I used gr_modtool.py add
after that:
bynkln@ubuntu:~$ cd gr-myQpsk
bynkln@ubuntu:~/gr-myQpsk$ gr_modtool.py add
Operating in directory .
GNU Radio module name identified: myQpsk
Enter code type: hier
Language: C++
Enter name of block/code (without module name prefix): QPSK
Block/code identifier: QPSK
Enter valid argument list, including default arguments: VAL1,VAL2
Add Python QA code? [Y/n] Y
Add C++ QA code? [Y/n] Y
Traversing lib…
Adding file ‘QPSK_impl.h’…
Adding file ‘QPSK_impl.cc’…
Adding file ‘QPSK.h’…
Adding file ‘qa_QPSK.cc’…
Adding file ‘qa_QPSK.h’…
Traversing swig…
Editing swig/myQpsk_swig.i…
Adding Python QA…
Adding file ‘qa_QPSK.py’…
Editing python/CMakeLists.txt…
Traversing grc…
Adding file ‘myQpsk_QPSK.xml’…
Editing grc/CMakeLists.txt…
bynkln@ubuntu:~/gr-myQpsk$ mkdir build
bynkln@ubuntu:~/gr-myQpsk$ cd build
bynkln@ubuntu:~/gr-myQpsk/build$ cmake …/
– The CXX compiler identification is GNU 4.7.2
– The C compiler identification is GNU 4.7.2
– 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/gcc
– Check for working C compiler: /usr/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Build type not specified: defaulting to release.
– Boost version: 1.49.0
– Found the following Boost libraries:
– filesystem
– system
– Found PkgConfig: /usr/bin/pkg-config (found version “0.26”)
– checking for module ‘gruel’
– found gruel, version 3.6.4git
– Found GRUEL: /usr/local/lib/libgruel.so
– checking for module ‘gnuradio-core’
– found gnuradio-core, version 3.6.4git
– Found GNURADIO_CORE: /usr/local/lib/libgnuradio-core.so
– checking for module ‘cppunit’
– found cppunit, version 1.12.1
– Found CPPUNIT: /usr/lib/libcppunit.so;dl
– Found SWIG: /usr/bin/swig2.0 (found version “2.0.7”)
– Found PythonLibs: /usr/lib/python3.2/config/libpython3.2.so (found
version “2.7.3”)
– Found PythonInterp: /usr/bin/python (found version “2.7.3”)
– Found Doxygen: /usr/bin/doxygen (found version “1.8.1.2”)
– Configuring done
– Generating done
– Build files have been written to: /home/bynkln/gr-myQpsk/build
bynkln@ubuntu:~/gr-myQpsk/build$ make
Scanning dependencies of target gnuradio-myQpsk
[ 5%] Building CXX object
lib/CMakeFiles/gnuradio-myQpsk.dir/QPSK_impl.cc.o
In file included from /home/bynkln/gr-myQpsk/lib/QPSK_impl.h:24:0,
from /home/bynkln/gr-myQpsk/lib/QPSK_impl.cc:26:
/home/bynkln/gr-myQpsk/include/myQpsk/QPSK.h:49:25: error: ‘VAL1’ has
not been declared
/home/bynkln/gr-myQpsk/include/myQpsk/QPSK.h:49:30: error: ‘VAL2’ has
not been declared
In file included from /home/bynkln/gr-myQpsk/lib/QPSK_impl.cc:26:0:
/home/bynkln/gr-myQpsk/lib/QPSK_impl.h:35:21: error: expected ‘)’ before
‘,’ token
/home/bynkln/gr-myQpsk/lib/QPSK_impl.cc:32:16: error:
‘gr::myQpsk::QPSK::sptr gr::myQpsk::QPSK::make’ is not a static member
of ‘class gr::myQpsk::QPSK’
/home/bynkln/gr-myQpsk/lib/QPSK_impl.cc:32:16: error: ‘VAL1’ was not
declared in this scope
/home/bynkln/gr-myQpsk/lib/QPSK_impl.cc:32:21: error: ‘VAL2’ was not
declared in this scope
/home/bynkln/gr-myQpsk/lib/QPSK_impl.cc:33:5: error: expected ‘,’ or ‘;’
before ‘{’ token
/home/bynkln/gr-myQpsk/lib/QPSK_impl.cc:40:25: error: expected
constructor, destructor, or type conversion before ‘(’ token
make[2]: *** [lib/CMakeFiles/gnuradio-myQpsk.dir/QPSK_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-myQpsk.dir/all] Error 2
make: *** [all] Error 2
so what is the problem?