Hi,
I reinstalled the system and now it worked. I have managed to run qa_howto.py successfully after binary installation inside the gr-howto... directory. My new question is How can I add new functions and modules using c++ files based on gnuradio-3.2.2 ? For example, there are howto_square2.(h, cc) function in src/lib. I tried to introduce howto_square3.(h, cc) by simply copying howto_square2.(h, cc), and I modified the codes with correct names and classes. I then modified makefile.am and howto.i in src/lib by mimicking declarations of howto_square2.(h, cc), and square2_ff and added declarations of howto_square3.(h, cc), and square3_ff. Finally I "make, make check". In "make check" step, the system gave error below, ImportError: /usr/lib/python2.6/dist-packages/gnuradio/_howto.so: undefined symbol: _Z21howto_make_square3_ffv FAIL: run_tests Could you help solve this problem or give me a general guideline? Thank you. Yao ***************************************************************************************************** Hi I installed gnuradio-3.2.2. Binary package in Ubuntu 9.04. It was not flexible to include new c++ files (I could not find bootstrap, configure.ac files etc in usr/share/gnuradio installation directory). I then downloaded gnuradio-3.2.2.tar.gz and gr-howto-write-a-block-3.2.2.tar.gz files and unzipped them in my home folder, and gr-howto-write-a-block-3.2.2 was included as a subdirectory in the gnuradio-3.2.2 directory. I used installation commands ./bootstrap, ./configure, make, sudo make install in gnuradio-3.2.2 directory, and no error was reported. I then tried to run file qa_howto.py (after chmod +x qa* ) in directory gr-howto-write-a-block-3.2.2/src/python, as follows: ./qa_howto.py Error was reported that "in import howto", "howto" module could not be recognized. I tried many other means, including modifying makefile.am in several directories, and using installation ./bootstrap, ./configure, make, sudo make install in gr-howto-write-a-block-3.2.2 directory. No error was reported. But still ./qa_howto.py could not work. Questions: 1) How can I make this work? 2) How can I add new functions and modules using c++ files based on gnuradio-3.2.2 binary installation? Thank you. Jack ***************************************************************************************************** Axel Belliard wrote: > > Hi > > I'm interrested by reading the message about adding C++ block into old > module, but the link is broken. Can you repost the link or the message? > > Cordialy > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- View this message in context: http://old.nabble.com/Re%3A-How-to-add-c%2B%2B-modules-after--gnuradio-3.2.2.-%09binary-installation--tp28066518p28161662.html Sent from the GnuRadio mailing list archive at Nabble.com. _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio