PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Crosscompiling open2300



hybrid_ml
02.08.05, 13:13
Hallo,

kann mich hier jemand unterstützen?

ich würde gerne meine Wetterstation über die DBOX (Power Pc Prozessor)auslesen lassen.
(Die ist eh immer an und verbrauch weniger Saft)


Hierfür gibt es das schöne open2300.sf.net Projekt. (auf meinen systemen läuft es wunderbar)


jetzt habe ich mal ein bissel belesen und habe meine sourcen compilliert bekommen.




/mnt/bin # ./xml2300 smiler.xml
Unable to open serial device /dev/ttyS0
/mnt/bin #

1. problem für mich war dann, wo ist überhaupt mein /dev/ttyS0, aber gefunden habe ich es unter /dev/tts/0



/mnt/bin # ./xml2300 smiler.xml open2300.conf
./xml2300: relocation error: ./xml2300: symbol flock, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
/mnt/bin #

2. jetzt habe ich dieses Problem, und komme nicht mehr weiter.

hat hierfür jemand einen Lösungsansatz?

Vermutlich liegt das Problem an den "flags" die der crosscompiler von dem makefile übergeben bekommt.
Die defaults sind:


compiler:

smurl:/tuxbox/cdk/src/open2300-1.10 # /dbox2/cdk/bin/powerpc-tuxbox-linux-gnu-gcc -v
Reading specs from /dbox2/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/specs
Configured with: ../gcc-3.3.5/configure --build=i686-suse-linux --host=i686-suse-linux --target=powerpc-tuxbox-linux-gnu --prefix=/dbox2/cdk --with-cpu=823 --enable-target-optspace --enable-languages=c,c++ --enable-shared --enable-threads --disable-nls --nfp
Thread model: posix
gcc version 3.3.5


makefile:


#########################################

CC = /dbox2/cdk/bin/powerpc-tuxbox-linux-gnu-gcc
OBJ = open2300.o rw2300.o linux2300.o win2300.o
LOGOBJ = log2300.o rw2300.o linux2300.o win2300.o
FETCHOBJ = fetch2300.o rw2300.o linux2300.o win2300.o
WUOBJ = wu2300.o rw2300.o linux2300.o win2300.o
CWOBJ = cw2300.o rw2300.o linux2300.o win2300.o
DUMPOBJ = dump2300.o rw2300.o linux2300.o win2300.o
HISTOBJ = history2300.o rw2300.o linux2300.o win2300.o
HISTLOGOBJ = histlog2300.o rw2300.o linux2300.o win2300.o
DUMPBINOBJ = bin2300.o rw2300.o linux2300.o win2300.o
XMLOBJ = xml2300.o rw2300.o linux2300.o win2300.o
PGSQLOBJ = pgsql2300.o rw2300.o linux2300.o win2300.o
LIGHTOBJ = light2300.o rw2300.o linux2300.o win2300.o
INTERVALOBJ = interval2300.o rw2300.o linux2300.o win2300.o
MINMAXOBJ = minmax2300.o rw2300.o linux2300.o win2300.o

VERSION = 1.10

CFLAGS = -Wall -O3 -DVERSION=\"$(VERSION)\"
CC_LDFLAGS = -lm
CC_WINFLAG =
# For Windows - comment the two line above and un-comment the two lines below.
#CC_LDFLAGS = -lm -lwsock32
#CC_WINFLAG = -mwindows
INSTALL = install