From: David B. <dbu...@ke...> - 2009-01-10 20:27:43
|
Fabian - Thanks! Please report this to GNU Radio and get it fixed in the public distribution. I know it worked under OS X because it links in pthreads automatically. I don't know what was happening under Fedora and Ubuntu. Also, just to bench-test, you don't need a duplexer and amp. You'll get a range of about 5 meters. -- David On Jan 10, 2009, at 11:40 AM, Fabian Uehlin wrote: > David, > > I found the problem. I do not why it works under OS X, Fedora and > Ubuntu, but the problem is this line: > /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o > USRPping USRPping.o libtransceiver.la ../CommonLibs/libcommon.la -L/ > usr//lib -lusrp -lusb > > The line must have the parameter -lpthread otherwise the > compilation fails, because phtread have to be included. pthread is > used in the cpp file, so it must be compiled with this option > (perhaps with #include <pthread.h> also the problem can be solved?!) > So I do extend the Makefile in the Transceiver directory. > I extend the CXXFLAGS from > CXXFLAGS = -g -O2 > to > CXXFLAGS = -g -O2 -lpthread > and the make doesn't fail anymore! > "make install" works fine: it creates the files in the apps/ and > Transceiver directory. > > A few days ago, I got the USRP hardware and I started to build up > the system. So I think I could test the application end of January, > because > I will integrate an amplifier and a duplexer, build an antenna > (triple leg groundplane), etc. > > Perhaps you could fix this problem in further releases? > > Thank you very much > -Fabian- > > Am 10.01.2009 um 18:52 schrieb David Burgess: > >> Fabian - >> >> It would appear that the compiler can't find the pthread library, >> so there's probably something missing in your library paths or a >> failure to include a "-pthread" flag on the compiler. You are >> probably the first person to build this under Gentoo, so you get >> to find the gaps in the build tools. I'm echoing this to the >> general discussion list in case someone else has already fixed >> this problem. >> >> (So far, we've built under OS X, Fedora and Ubuntu. Gentoo's a >> new one. Sorry.) >> >> -- David >> >> >> Begin forwarded message: >> >>> From: Fabian Uehlin <ma...@fa...> >>> Date: January 9, 2009 8:20:46 AM PST >>> To: David Burgess <dbu...@ke...> >>> Subject: Re: OpenBTS update >>> >>> Hello David, >>> >>> I upgrade libortp to version 0.13.1. >>> Then I removed everything and did a new svn checkout. >>> I saved the console outputs in a file attached to this E-Mail >>> named 'openbts-error.txt'. >>> Perhaps you could see where the problem lies? Is it a problem >>> with the openbts software or with the >>> system settings / program versions? Tell me if I could help you >>> or when you need special system information. >>> >>> Thanks & Regards >>> -Fabian Uehlin- >>> >> <openbts-error.txt> >>> >>> >>> >>> >>> >> >> >> David A. Burgess >> Kestrel Signal Processing, Inc. >> >> >> >> > David A. Burgess Kestrel Signal Processing, Inc. |