| David Bush 2008-03-31, 10:24 pm |
| Thanks very much, Mr. Porter and Mr. Heller.
> ...
> You should have files named tclConfig.sh and tkConfig.sh under
> /usr/lib/. Note *some* distros split out -devel packages which contains
> the headers and other stuff you need to compile and link against. I
> *know* the RedHat flavored Linuxes do. I don't know about *ubuntu...
Okay I installed tcl8.4-dev and tk8.4-dev.
I found the files /usr/lib/tcl8.4/tclConfig.sh and
/usr/lib/tk8.4/tkConfig.sh however the configure script for this linradio
package does not look like it's able to deal with them, And I don't know
what to do with them either. I manually edited the .config file thusly:
# Generated by ./configure NOT
TCLINCLUDE=-I/usr/include/tcl8.4
TCLPATH=-L/usr/lib/
TCLLIB=-libtcl8.4.so
# There is also libtcl8.4.a but I wasn't sure what to do about that,
# so I omitted it.
TKINCLUDE=-I/usr/include/tcl8.4
# /usr/include/tcl8.4 directory contains header files for tcl and tk
TKPATH=-L/usr/lib/
TKLIB=-libtk8.4.so
# again I omitted libtk8.4.a
Here are the errors I got when I tried make:
david@Achernar:~/sw/LinRadio/linradio-toolkit-0.7$ make
make[1]: Entering directory `/home/david/sw/LinRadio/linradio-toolkit-0.7/
driver'
gcc -c -O2 -Wall -ffast-math wrcontrol.c -o wrcontrol.o
gcc -c -O2 -Wall -ffast-math -DGNU_SOURCE wrlib/wrbfo.c -o wrbfo.o
gcc -c -O2 -Wall -ffast-math -DGNU_SOURCE wrlib/wrcmd.c -o wrcmd.o
gcc -c -O2 -Wall -ffast-math -DGNU_SOURCE wrlib/wrfreq.c -o wrfreq.o
gcc -c -O2 -Wall -ffast-math -DGNU_SOURCE wrlib/wrifg.c -o wrifg.o
gcc -c -O2 -Wall -ffast-math -DGNU_SOURCE wrlib/wrinit.c -o wrinit.o
wrlib/wrinit.c: In function ‘GetMcuVersion’:
wrlib/wrinit.c:27: warning: pointer targets in passing argument 2 of
‘ReadMcuByte’ differ in signedness
wrlib/wrinit.c: In function ‘InitRadioSettings’:
wrlib/wrinit.c:190: warning: dereferencing type-punned pointer will break
strict-aliasing rules
gcc -c -O2 -Wall -ffast-math -DGNU_SOURCE wrlib/wrio.c -o wrio.o
wrlib/wrio.c:6:22: error: asm/io.h: No such file or directory
wrlib/wrio.c: In function ‘WriteMcuByte’:
wrlib/wrio.c:95: warning: implicit declaration of function ‘inb’
wrlib/wrio.c:109: warning: implicit declaration of function ‘outb’
make[1]: *** [wrio.o] Error 1
make[1]: Leaving directory `/home/david/sw/LinRadio/linradio-toolkit-0.7/
driver'
make: *** [all] Error 1
david@Achernar:~/sw/LinRadio/linradio-toolkit-0.7$ make
make[1]: Entering directory `/home/david/sw/LinRadio/linradio-toolkit-0.7/
driver'
gcc -c -O2 -Wall -ffast-math -DGNU_SOURCE wrlib/wrio.c -o wrio.o
wrlib/wrio.c:6:22: error: asm/io.h: No such file or directory
wrlib/wrio.c: In function ‘WriteMcuByte’:
wrlib/wrio.c:95: warning: implicit declaration of function ‘inb’
wrlib/wrio.c:109: warning: implicit declaration of function ‘outb’
make[1]: *** [wrio.o] Error 1
make[1]: Leaving directory `/home/david/sw/LinRadio/linradio-toolkit-0.7/
driver'
make: *** [all] Error 1
david@Achernar:~/sw/LinRadio/linradio-toolkit-0.7$
Again any suggestions would be most welcome.
Thanks again!
|