Re: [Discuss-gnuradio] gnuradio core build fails on make check

2005-07-01 Thread Eric Blossom
On Fri, Jul 01, 2005 at 12:00:23PM -0700, Ges wrote:
> Hi,
> I solved my earlier problems with configure (no dev
> lib for python headers) thanks to Mark's patch. 
> But I am still not able to get rid of the make check
> problems.
> Making check in gr
> make[4]: Entering directory
> `/usr0/Packages/gnuradio-core/src/python/gnuradio/gr'
> make  check-TESTS
> make[5]: Entering directory
> `/usr0/Packages/gnuradio-core/src/python/gnuradio/gr'
> Traceback (most recent call last):
>   File "./qa_add_and_friends.py", line 23, in ?
> from gnuradio import gr, gr_unittest
> ImportError: No module named gnuradio
> Traceback (most recent call last):
>   File "./qa_basic_flow_graph.py", line 3, in ?
> from gnuradio import gr, gr_unittest
> ImportError: No module named gnuradio

Hi Gesley,

I have just confirmed that CVS HEAD will build and install fine in a
non-standard location with a couple of minor tweaks.
In my test case, I used /home/eb/non-std-prefix as the prefix.

$ mkdir /home/eb/non-std-prefix   # make sure the directory is there

The PKG_CONFIG_PATH environment variable needs to be set
prior to the build so that it points into the prefix lib/pkgconfig directory.

$ export PKG_CONFIG_PATH=/home/eb/non-std-prefix/lib/pkgconfig

Then I edited the buildit script so that it looked like this:

#!/bin/sh
# -*- shell-script -*-

if [ $# -gt 0 -a "$1" = -n ]
then
  SUDO=
  shift
else
  SUDO=sudo
fi

./bootstrap &&
./configure --prefix=/home/eb/non-std-prefix &&# added --prefix
make &&
make check &&
$SUDO make install

[I'll add a --prefix= argument to the script in a bit.]

Then I did

$ ./for-all-dirs ../buildit -n 2>&1 | tee make.log

and everything built, checked and installed correctly.

> make[5]: Entering directory
> `/usr0/Packages/gnuradio-core/src/python/gnuradio/gr'

Hmmm, are you trying to install into the same directory that you are
building from?  That probably won't work.

What is the full path to where you checked out or unpacked gnuradio-core?
What are you using for the value of --prefix?

Eric


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gnuradio core build fails on make check

2005-07-01 Thread Mark S Petrovic
Ges, when I encountered a similar imponderable I inserted

import sys
print sys.path

in a judicious place, just to see what path obtained at that moment.
While it will not solve your immediate problem directly, it might be
interesting to see what is your python sys.path when the failure occurs.

>   File "./qa_add_and_friends.py", line 23, in ?
> from gnuradio import gr, gr_unittest
> ImportError: No module named gnuradio

iow, e.g., in

gr-build/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py

import sys
print sys.path

from gnuradio import gr, gr_unittest

...

Or the moral equivalent.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gnuradio core build fails on make check

2005-07-01 Thread Eric Blossom
On Fri, Jul 01, 2005 at 12:00:23PM -0700, Ges wrote:
> Hi,
> I solved my earlier problems with configure (no dev
> lib for python headers) thanks to Mark's patch. 
> But I am still not able to get rid of the make check
> problems.
> 
> Based on what was metioned in this thread,
> http://lists.gnu.org/archive/html/discuss-gnuradio/2005-01/msg00079.html
> 
> I tried Swig 1.3.23. I have alsoo tried swig 1.3.24
> and swig 1.3.25. Been unsuccessful with all of them.
> 
> As per the mailing list, people have come across these
> errors and overcome them, using swig 1.3.23. But I
> still face them. Can someone tell me what they did?
> 
> I appreciate the help.
> Thank you
> 
> -Gesly

Haven't ever seen this failure.  I'll try to reproduce.

Eric


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio