Hi all, I am trying to get outloud to compile under 64 bit ubuntu. I have looked through the archives and can’t find the
explanation I am looking for. Back in July there was some discussion of
the issue. I have installed the 32 bit compat libraries and tried the
compile again. I also modified the cflags+ in the Makefile to: CFLAGS+= -g -m32 -O2 -fPIC
-DPIC -pedantic -ansi -Wall -Wno-long-long -I$(TCL_INCLUDE) Adding the –m32 flag as suggested by Jason. Now when I compile I get the following: make g++ -g -m32 -O2 -fPIC -DPIC
-pedantic -ansi -Wall -Wno-long-long -I/usr/include/tcl8.4 -c
-o langswitch.o langswitch.cpp g++ -g -m32 -O2 -fPIC -DPIC
-pedantic -ansi -Wall -Wno-long-long -I/usr/include/tcl8.4 -c
-o atcleci.o atcleci.cpp g++ -shared -o atcleci.so langswitch.o atcleci.o -ltcl8.4
-lasound -ldl /usr/bin/ld: i386 architecture of input file `langswitch.o'
is incompatible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `atcleci.o' is
incompatible with i386:x86-64 output langswitch.o: In function `convertFromUTF8(Tcl_Interp*, char
const*)': /home/bart/emacs/lisp/emacspeak/servers/linux-outloud/langswitch.cpp:197:
undefined reference to `operator new[](unsigned int)' /usr/bin/ld: final link failed: Invalid operation collect2: ld returned 1 exit status make: *** [atcleci.so] Error 1 and if I add –m32 to the libs line I get: g++ -shared -o atcleci.so langswitch.o atcleci.o -m32
-ltcl8.4 -lasound -ldl /usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.4.2/../../../libtcl8.4.so when searching for
-ltcl8.4 /usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.4.2/../../../libtcl8.4.a when searching for
-ltcl8.4 /usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so
when searching for -ltcl8.4 /usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.a when
searching for -ltcl8.4 /usr/bin/ld: cannot find -ltcl8.4 collect2: ld returned 1 exit status make: *** [atcleci.so] Error 1 I am clearly missing something here. Any
suggestions? Has anyone got this working? Regards Bart |
If you have questions about this archive or had problems using it, please send mail to:
priestdo@xxxxxxxxxxx No Soliciting!Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998