]> sjero.net Git - linphone/blob - README.M68k.txt
Aac-eld add missing header according to RFC3640 3.3.6
[linphone] / README.M68k.txt
1                                         LINPHONE ON M68k-LINUX (by GIAN)
2                                         ********************************
3
4 The console version of linphone works on arm-linux, but also on m68k-linux? I\92m trying to provide this:
5
6 * I used the same toolchain specified in the LTIB menu configuration, that is, on my system:
7 /opt/mtwk/usr/local/m68k-linux/gcc-3.4.0-glibc-2.3.2-v4e
8
9 * I have created within my home directory a ColdFire-install-environment/ directory, copied into it the fresh tarballs of libogg-1.1.3, libosip2-2.2.2, speex-1.1.12, linphone-1.4.0 readline-5.1 and ncurses-5.5 (readline needs ncurses) Uncompressed all these
10 tarballs. 
11
12 Very important things common to all packages being cross compiled:
13 ******************************************************************
14 * Copy the ipaq-config.site in the ipkg/ directory of linphone into some safe place, for example:
15 cp /home/gianluca/ColdFire-install-environment/linphone-1.4.0-install/linphone-1.4.0/ipkg/ipag-config.site /home/gianluca/ColdFire-install-environment/linphone-1.4.0-install/
16 Edit the ipaq-config.site file and replace all the arm-linux strings with m68k-linux one. Add also the \96mcfv4e flag to the CFLAGS, CXXFLAGS, and CPPFLAGS labels. 
17 * You need a directory that we call M68K_INSTALL_TREE that will own files in the same way they will be installed on the target computer.
18
19 mkdir /ColdFire-linphonec-1.4.0-mcfv4e
20 export M68K_INSTALL_TREE=/ColdFire-linphonec-1.4.0-mcfv4e
21 export CONFIG_SITE=/home/gianluca/ColdFire-install-environment/linphone-1.4.0-install/ipaq-config.site
22 export PATH=$PATH:/opt/mtwk/usr/local/m68k-linux/gcc-3.4.0-glibc-2.3.2-v4e/bin
23
24
25 Cross compiling ncurses for M68k:
26 ********************************
27 ./configure --prefix=/usr --host=m68k-linux --with-gnu-ld --with-shared
28 make
29 make install DESTDIR=$M68K_INSTALL_TREE
30
31
32 Cross compiling readline for M68k:
33 *********************************
34 ./configure --prefix=/usr --host=m68k-linux --with-gnu-ld --disable-static
35 make
36 make install DESTDIR=$M68K_INSTALL_TREE
37
38
39
40 Cross compiling libosip for M68k:
41 ********************************
42 ./configure --prefix=/usr --host=m68k-linux --with-gnu-ld --disable-static
43 make
44 make install DESTDIR=$M68K_INSTALL_TREE
45
46
47 Cross compiling libogg for M68k:
48 ********************************
49 ./configure --prefix=/usr --host=m68k-linux --with-gnu-ld --disable-static \96enable-fixed-point
50 make
51 make install DESTDIR=$M68K_INSTALL_TREE
52
53
54 Cross compiling speex for M68k:
55 ********************************
56 ./configure --prefix=/usr --host=m68k-linux --with-gnu-ld --disable-static --enable-fixed-point --enable-m68k-asm --with-ogg=/ColdFire-linphonec-1.4.0-mcfv4e/usr --with-ogg-includes=/ColdFire-linphonec-1.4.0-mcfv4e/usr/include \96with-ogg-libraries=/ColdFire-linphonec-1.4.0-mcfv4e/usr/lib --disable-oggtest 
57 make
58 make install DESTDIR=$M68K_INSTALL_TREE
59
60
61 cp /home/gianluca/ColdFire-iinstall-environment/linphone-1.4.0-install/linphone-1.4.0/mediastreamer2/src/.libs/libquickstream.so.0.0.0 /opt/mtwk/usr/local/m68k-linux/gcc-3.4.0-glibc-2.3.2-v4e/m68k-linux/lib
62 cd /opt/mtwk/usr/local/m68k-linux/gcc-3.4.0-glibc-2.3.2-v4e/m68k-linux/lib
63 ln -s libquickstream.so.0.0.0 libquickstream.so.0
64 ln -s libquickstream.so.0.0.0 libquickstream.so
65
66 cp /home/gianluca/ColdFire-install-environment/linphone-1.4.0-install/linphone-1.4.0/mediastreamer2/src/.libs/libmediastreamer.so.0.0.0 /opt/mtwk/usr/local/m68k-linux/gcc-3.4.0-glibc-2.3.2-v4e/m68k-linux/lib
67 cd /opt/mtwk/usr/local/m68k-linux/gcc-3.4.0-glibc-2.3.2-v4e/m68k-linux/lib
68 ln -s libmediastreamer.so.0.0.0 libmediastreamer.so.0
69 ln -s libmediastreamer.so.0.0.0 libmediastreamer.so
70
71
72 Cross compiling linphone for M68k:
73 ********************************
74 First you need to remove all .la files from the M68K_INSTALL_TREE because it confuses libtool and makes
75 the linker use your build machine binaries instead of the m68k-crosscompiled ones.
76 rm -f $M68K_INSTALL_TREE/usr/lib/*.la
77 #for some reason pkg-config doesn't like cross-compiling...
78 export PKG_CONFIG=/usr/bin/pkg-config
79 ./configure --prefix=/usr --host=m68k-linux --with-gnu-ld --disable-static --disable-strict --enable-gnome_ui=no --enable-alsa --disable-glib --disable-video --with-osip=$ARM_INSTALL_TREE/usr --with-osipparser=$ARM_INSTALL_TREE/usr --with-readline=$ARM_INSTALL_TREE/usr SPEEX_CFLAGS="-I$ARM_INSTALL_TREE/usr/include" SPEEX_LIBS="-L$ARM_INSTALL_TREE/usr/lib -lspeex"
80 make 
81 make install DESTDIR=$M68K_INSTALL_TREE
82
83
84 Binaries can also be stripped with m68k-linux-strip to save more space.
85
86
87 Running linphone under the ColdFire board
88 ********************************************
89
90 You just have to start linphone from a terminal by typing 'linphonec'.
91
92 Gianluca Salvador
93