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)
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.
Member for
16 years 10 monthsCompiling this should be a
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
Member for
16 years 10 monthsYou do know that xap-urfrx is
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
Member for
13 years 11 monthsthanks Brett, i was indeed
thanks Brett,
i was indeed referring to the Adruino Sketch side of things, i was attempted to get the sketch to compile on a basenode
Andrew