ImportError problem for make check

Hi everybody,

I just cant figure this out, so I have to ask here: I am trying to
import my
own block, but when running “make check”, I get an ImportError. It is
just a
simple test that I only change the name of “howto” module as “myblock”
and
keep the same for the rest part of code.

Then I modify Makefile.swig.gen and Makefile.am by searching/replacing
all
ocurrences of ‘howto’ with “myblock”. Should I do some addition
changes in
this step?

After that, under the directory /gnuradio/gr-howto-write-a-block, I run
./bootstrap
./configures
make
make check

I got the ImportError as below:

[email protected]:~/Desktop/myblock$ make check
Making check in config
make[1]: Entering directory /home/shi/Desktop/myblock/config' make[1]: Nothing to be done forcheck’.
make[1]: Leaving directory /home/shi/Desktop/myblock/config' Making check in src make[1]: Entering directory/home/shi/Desktop/myblock/src’
Making check in lib
make[2]: Entering directory /home/shi/Desktop/myblock/src/lib' make check-am make[3]: Entering directory/home/shi/Desktop/myblock/src/lib’
make[3]: Nothing to be done for check-am'. make[3]: Leaving directory/home/shi/Desktop/myblock/src/lib’
make[2]: Leaving directory /home/shi/Desktop/myblock/src/lib' Making check in python make[2]: Entering directory/home/shi/Desktop/myblock/src/python’
make check-TESTS
make[3]: Entering directory `/home/shi/Desktop/myblock/src/python’
Traceback (most recent call last):
File “./qa_myblock.py”, line 24, in
import myblock
File “/home/shi/Desktop/myblock/src/lib/myblock.py”, line 6, in

import _myblock
ImportError: /home/shi/Desktop/myblock/src/lib/.libs/_myblock.so:
undefined
symbol: _Z22myblock_make_square_ffvFAIL: run_tests

1 of 1 test failed

make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory /home/shi/Desktop/myblock/src/python' make[2]: *** [check-am] Error 2 make[2]: Leaving directory/home/shi/Desktop/myblock/src/python’
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/shi/Desktop/myblock/src’
make: *** [check-recursive] Error 1

Any help will be appreciated

Thank you

Andy_long


View this message in context:
http://old.nabble.com/ImportError-problem-for-make-check-tp28197699p28197699.html
Sent from the GnuRadio mailing list archive at Nabble.com.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs