[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]

Re:compiling outloud on 64 bit ubuntu



Hi Bart,

from the errors you get, my guess is that you don't have a full 32 bit library
chain in your build. You need to have the 32 bit versions of all the libraries
involved to get it to work - this would include tcl and alsa 32 bit libs as
well as the C++ libraries and possibly that compat package etc. 

Possibly the way to go would be to do the build on a 32 bit system, run ldd to
list all the dependencies and then make sure you have all of those libs in the
32 bit lib hierarchy. 

I seem to remember a post from Raman where he outlined what he had to do.
should be in the archive. It was a while back and I can't remember if it was
outloud or espeak he was building, but I do remember it was 32 bit. 

Tim


Bart Bunting writes:
 > 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
 > 
 >  
 > 

-- 
Tim Cross
tcross@xxxxxxxxxxx

There are two types of people in IT - those who do not manage what they 
understand and those who do not understand what they manage.
-- 
Tim Cross
tcross@xxxxxxxxxxx

There are two types of people in IT - those who do not manage what they 
understand and those who do not understand what they manage.

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help".



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

Emacspeak Files | Emacspeak Blog