discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Discuss-gnuradio] latest version of gr_python.m4


From: Beck, Andrew Thomas - BECAT001
Subject: RE: [Discuss-gnuradio] latest version of gr_python.m4
Date: Fri, 29 Jul 2005 11:49:49 +0930

Hi Stephane,
I did a fresh checkout from cvs this morning, bootstrap then build.
Linking the python library still fails though.

make[5]: Entering directory `/cygdrive/c/src/gr-build/gnuradio-core/src/lib/swig'
/bin/sh ../../../libtool --tag=CXX --mode=link g++  -g -O2 -Wall -Woverloaded-virtual    -o _gnuradio_swig_python.la -rpath /usr/local/lib/python2.4/site-packages/gnuradio/gr -module -avoid-version -no-undefined gnuradio_swig_python.lo ../../../src/lib/libgnuradio-core.la -L/usr/libs -lpython2.4 -lstdc++
g++ -shared -nostdlib   .libs/gnuradio_swig_python.o  ../../../src/lib/.libs/libgnuradio-core.dll.a -L/usr/local/lib -L/usr/libs -lpython2.4 -lstdc++ -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -L/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../.. -lstdc++ -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc   -o .libs/_gnuradio_swig_python.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/_gnuradio_swig_python.dll.a
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lpython2.4
collect2: ld returned 1 exit status
make[5]: *** [_gnuradio_swig_python.la] Error 1

Looking at the Makefile in that directory, I see the following

PYTHON_LDFLAGS = -L/usr/libs -lpython2.4

when I change it to the following, it links.
PYTHON_LDFLAGS = -L/usr/lib/python2.4/config -lpython2.4

This is the location of libpython2.4.dll.a which is what I assume is supposed to be linked.

Like I said, I don't get auto stuff yet, but will try to see what is happening in the new
gr_python.m4 file. Incidently, isn't there a standard macro file that sorts out the python
stuff? While I've been trying to understand it, I've come accross several repositries of macros.

cheers,
andrew

ps Can you recommend an "auto-tools for dummies" tutorial?


-----Original Message-----
From: Stephane Fillod [mailto:address@hidden]
Sent: Thu 28/07/2005 10:23 PM
To: Beck, Andrew Thomas - BECAT001
Cc: address@hidden
Subject: Re: [Discuss-gnuradio] latest version of gr_python.m4

Hi Andrew,

You're pretty lucky :-)

Beck, Andrew Thomas - BECAT001" <address@hidden>:
> Firstly, I don't understand auto* stuff.
> I was wondering if gr_python.m4 is actually broken under cygwin
> or if I'm doing something wrong. Basically, I'm failing to link
> the python library & it seems to be because PYTHON_LDFLAGS is null.
> I'm still confirming it works fully, but I ended up hacking the m4 file
> to remove the check for mingw & took some of the body from an earlier
> version. It's ugly, but it seems to link now.
> Is this a known issue? Looking at the file, it seems that several
> people have hacked it about to make it work on their platform.

The windows platform code is hot right now. We try to make it to work
for MinGW and Cygwin, but without breaking other arch's.
The good news is Eric just commited today some patches I sent
him for Cygwin, which I made (again) working this week.
So, a clean check out with a bootstrap, make, lot of coffee, ..
should bring you now to a successful make check under Cygwin.

Thanks for the report. We're at your service during the week-end :-)

Cheerio
--
Stephane



reply via email to

[Prev in Thread] Current Thread [Next in Thread]