URF Rx testing
Hi Brett,
just testing the URF RF with a HAHnode
I've gathered up most libs that seem to be missing, i'm down to the final compile error
any suggestions greatly recieved thanks
In file included from /bsc.h:11,
from /urfdecoder.h:13,
from genurf.c:14:
xap.h:58: error: expected specifier-qualifier-list before 'time_t'
xap.h:90: error: field 'txAddress' has incomplete type
In file included from /urfdecoder.h:13,
from genurf.c:14:
bsc.h:56: error: expected specifier-qualifier-list before 'time_t'
Andrew
You do know that xap-urfrx is already compiled on the livebox? Or are you setting up some other platform?
Or are you perhaps talking about the arduino sketch? UniversalRFRX.ino which is the AVR side of things.
confused.
Brett
Compiling this should be a snap even if you want to do it natively.
# cd userapps/hah/xaplib2
Make the libxap2.so
[brett@wombat xaplib2]$ make clean
rm -f init.o parse.o timeout.o tx.o rx.o filter.o bsc.o log.o strlcpy.o strlcat.o minIni.o util.o libxap2.a libxap2.so *~
[brett@wombat xaplib2]$ make
cc -g -Wall -fPIC -c -o init.o init.c
cc -g -Wall -fPIC -c -o parse.o parse.c
cc -g -Wall -fPIC -c -o timeout.o timeout.c
cc -g -Wall -fPIC -c -o tx.o tx.c
cc -g -Wall -fPIC -c -o rx.o rx.c
cc -g -Wall -fPIC -c -o filter.o filter.c
cc -g -Wall -fPIC -c -o bsc.o bsc.c
cc -g -Wall -fPIC -c -o log.o log.c
cc -g -Wall -fPIC -c -o strlcpy.o strlcpy.c
cc -g -Wall -fPIC -c -o strlcat.o strlcat.c
cc -g -Wall -fPIC -c -o minIni.o minIni.c
minIni.c: In function 'getkeystring':
minIni.c:138: warning: suggest parentheses around && within ||
minIni.c:164: warning: suggest parentheses around && within ||
cc -g -Wall -fPIC -c -o util.o util.c
cc -shared -Wl,-soname,libxap2.so -o libxap2.so init.o parse.o timeout.o tx.o rx.o filter.o bsc.o log.o strlcpy.o strlcat.o minIni.o util.o
[brett@wombat xaplib2]$
Then build the URF
[brett@wombat xaplib2]$ cd ../xap-urfrx/
[brett@wombat xap-urfrx]$ make
cc -g -Wall -DIDENT -I../xaplib2 -c -o rfrx.o rfrx.c
cc -g -Wall -DIDENT -I../xaplib2 -c -o urfdecoder.o urfdecoder.c
cc -o xap-urfrx rfrx.o urfdecoder.o -L../xaplib2 -lxap2
[brett@wombat xap-urfrx]$
I'm not sure what you mean by "gather all the libs" ?
What platform are you compiling this on?
I even repeated the same step on my beaglebone (not that I like compiling native on that platform as its is SLOOOWWW and that worked too - as I would have expected)
Brett