Gr-howto-write-a-block configure error in cygwin

I am playing howto-write-a-block in cygwin.
Git trunk.
./bootstrap no problem
./configure brings the following error:
checking for GNURADIO_CORE… configure: error: Package requirements
(gnuradio-core >= 3) were not met:

No package ‘gnuradio-core’ found

This does not happen in Ubuntu.
Anyone has any idea on this?
Thanks
Kyle

fOn Thu, May 13, 2010 at 12:13:00AM +1000, Kyle Z. wrote:

This does not happen in Ubuntu.
Anyone has any idea on this?
Thanks
Kyle

Assuming that you really do have GNU Radio installed, I would suspect
that you don’t have PKG_CONFIG_PATH set, or that it’s pointing to the
wrong place.

Eric

Eric B. wrote:

Eric

Thanks Eric. That is right on the point. Configure problem solved after
setting PKG_CONFIG_PATH properly.
After that, ‘make’ succeeded.
But when I do ‘make check’, making check in lib succeeded, but when
checking in python, it produced an error as follows.

Making check in python
make[1]: Entering directory
/home/kyle/gnuradio/gr-howto-write-a-block/python' make check-TESTS make[2]: Entering directory/home/kyle/gnuradio/gr-howto-write-a-block/python’
/home/kyle/gnuradio/gr-howto-write-a-block/lib:/home/kyle/gnuradio/gr-howto-writ
e-a-block/lib/.libs:/home/kyle/gnuradio/gr-howto-write-a-block/swig:/home/kyle/g
nuradio/gr-howto-write-a-block/swig/.libs:/home/kyle/gnuradio/gr-howto-write-a-b
lock/python:/usr/local/lib/python2.5/site-packages:/usr/local/lib/python2.5/site
-packages:/usr/local/lib/python2.5/site-packages/
Traceback (most recent call last):
File “./qa_howto.py”, line 24, in
import howto_swig
File “/home/kyle/gnuradio/gr-howto-write-a-block/swig/howto_swig.py”,
line 21,
in
import _howto_swig
ImportError: No such file or directory
FAIL: run_tests

1 of 1 test failed

make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory
/home/kyle/gnuradio/gr-howto-write-a-block/python' make[1]: *** [check-am] Error 2 make[1]: Leaving directory/home/kyle/gnuradio/gr-howto-write-a-block/python’
make: *** [check-recursive] Error 1

Your help is really appreciated.
Kyle

Kyle Z. wrote:

        I am playing howto-write-a-block in cygwin.
        Git trunk.

  import howto_swig
 File
"/home/kyle/gnuradio/gr-howto-write-a-block/swig/howto_swig.py",
line 21,
in <module>
  import _howto_swig
ImportError: No such file or directory
FAIL: run_tests

I just ran into this. The problem is that the directory (swig/.libs)
containing cyggnuradio-howto-0.dll (libgnuradio-howto-0.dll on MinGW)
needs
to be in your PATH variable. This setup is done in run_tests.sh for the
main GNU Radio, but there is no analogous setup in run_tests for
howto-write-a-block. I will work on this tomorrow (unless someone else
does
it first).

Does anyone know if OSX has the same problem?

– Don W.

Thanks John.
No I did not do ‘make install’. I need to make check to ensure
everything goes fine before installing.
The PYTHONPATH has been set correctly by ‘run_tests’ script in python
directory, as can been seen in the output quoted along with the error
message.
quote it again:
“/home/kyle/gnuradio/gr-howto-write-a-block/lib:/home/kyle/gnuradio/gr-howto-writ
e-a-block/lib/.libs:/home/kyle/gnuradio/gr-howto-write-a-block/swig:/home/kyle/g
nuradio/gr-howto-write-a-block/swig/.libs:/home/kyle/gnuradio/gr-howto-write-a-b
lock/python:/usr/local/lib/python2.5/site-packages:/usr/local/lib/python2.5/site
-packages:/usr/local/lib/python2.5/site-packages/”
Any more ideas?
Kyle

Don W. wrote:

when checking in python, it produced an error as follows.

 File "./qa_howto.py", line 24, in <module>

containing cyggnuradio-howto-0.dll (libgnuradio-howto-0.dll on MinGW)
needs to be in your PATH variable. This setup is done in run_tests.sh
for the main GNU Radio, but there is no analogous setup in run_tests
for howto-write-a-block. I will work on this tomorrow (unless someone
else does it first).

Does anyone know if OSX has the same problem?

– Don W.

Thanks Don. That is to the very point. One correctiion:
cyggnuradio-howto-0.dll is in the directory lib/.libs rather than
swig/.libs
I added it to PATH in run_tests and all run well.
Kyle