Install linphone through source code compilation in Fedora8

Source: Internet
Author: User
Because linphone relies on too many libraries, pay more attention to it during installation. If the./configure script does not explicitly specify the installation path (-- prefix =) when installing the software in the source code form, it is installed in the/usr/local directory by default. This will cause troubles to the installation of some later packages, because the installation of the later package requires the header file and library file of the previously installed package, if it is not at this time. /configure script specifies the header file and library file location it depends on (-- with-FEATURE

Because linphone relies on too many libraries, pay more attention to it during installation.
If the./configure script does not explicitly specify the installation path (-- prefix =) when installing the software in the source code form, it is installed in the/usr/local directory by default.

This will cause troubles to the installation of some later packages, because the installation of the later package requires the header file and library file of the previously installed package, if it is not at this time. in the/configure script, specify the header file and library file location (-- with-FEATURE =) on which it depends. It is found in the/usr/include and/usr/lib directories by default, of course, compilation errors will occur if you cannot find it.

Therefore, it is best to take a look at the./configure -- help parameter during installation and specify the installation under/usr, which saves a lot of trouble.

Note: When installed in/usr, the original library file header files in the system will be replaced. If you want to use them, you can still install them in the/usr/local directory.

1. Install speex

[Root @ localhost atom] # rpm-qa | grep speex
Speex-1.2-0.3.beta2

Without the developer package, the hacker installs speex-1.2beta3.tar.gz.
./Configure -- prefix =/usr
Make
Make install

2.install libosip2-3.1.0.tar.gz
./Configure -- prefix =/usr
Make
Make install

3.install libexosip2-3.1.0.tar.gz
./Configure -- prefix =/usr
Make
Make install

4. Install readline
[Root @ localhost atom] # rpm-qa | grep readline
Readline-devel-5.2-7.fc8
Readline-5.2-7.fc8
You do not need to install

5. Install alsa-lib
[Root @ localhost atom] # rpm-qa | grep alsa-lib
Alsa-lib-devel-1.0.15-1.fc8
Alsa-lib-1.0.15-1.fc8
You do not need to install

6. Install SDL
[Root @ localhost atom] # rpm-qa | grep SDL
SDL-1.2.12-2.fc8
SDL-devel-1.2.12-2.fc8
You do not need to install

Install ffmpeg.
Sorry, I still don't know what ffmpeg is. I decided to do my homework. There is also a bunch of Video Processing libraries in linux.
To enable ffmpeg to provide more functions, you need to install more multi-media libraries. I only chose lame ogg xvid faad2 for installation.

7.install the legendary lame-398.tar.gz artifact :)
./Configure -- prefix =/usr
Make
Make install

8. Install libogg-1.1.3
./Configure -- prefix =/usr
Make
Make install

9.install faad2-2.6.1.tar.gz
./Bootstrap
./Configure -- prefix =/usr
Make
Make install

10.install xvidcore-1.1.3.tar.gz
Cd $ {xvidcore}/build/generic
./Configure -- prefix =/usr
Make
Make install

11. Install ffmpeg
Ffmpeg can only be obtained through svn
Svn checkout svn: // svn/mplayerhq. hu/ffmpeg/trunk ffmpeg
The current directory will automatically display an ffmpeg directory. wait patiently until it is downloaded. My size is about 32 MB
./Configure -- prefix =/usr -- enable-gpl -- enable-shared -- enable-libmp3lame -- enable-libxvid -- enable-libfaad -- enable-libfaadbin -- enable-swscale -- enable-pthreads
-- Enable-swscale must be used to compile mediastreamer2 later.

Make
Make install

12. Install gtk
[Root @ localhost atom] # rpm-qa | grep gtk2-devel
Gtk2-devel-2.12.1-5.fc8


13.install libtheora-1.0beta3.tar.gz
./Configure -- prefix =/usr
Make
Make install

14.install linphone-2.1.1.tar.gz
The linphone source code package already contains oRTP and mediastreamer2, which can be compiled as a whole, but it is best to go to The oRTP and mediastreamer2 folders to compile them separately.

Install oRTP
./Configure -- prefix =/usr
Make
Make install

Install mediastreamer2
./Configure -- prefix =/usr -- enable-alsa -- enable-video -- with-ffmpeg =/usr -- with-sdl =/usr -- enable-shared
Make
Make install

Note that an error occurs during make, because the header file cannot be found.
Create a new ffmpeg folder under/usr/include and copy avcodec. h swscale. h avutil. h
[Root @ localhost include] # mkdir ffmpeg
[Root @ localhost include] # cp libavcodec/avcodec. h ffmpeg
[Root @ localhost include] # cp libswscale/swscale. h ffmpeg
[Root @ localhost include] # cp libavutil/avutil. h ffmpeg/
I don't want to use this method either. I have also tried to specify the directory for generating the header file when compiling ffmpeg, but doing so will lead to a dynamic library link not going over, which is really strange.
The folder generated by ffmpeg in/usr/include is libavcodec libavdevice libavformat libavutil libswscale.
Make a mark to prevent future search.

Install linphone
. /Configure -- prefix =/usr -- enable-alsa -- enable-video -- with-osip =/usr -- with-readline =/usr -- with-ffmpeg =/usr -- with-sdl =/usr
Make
Make install

Finished

15. Test Communication

Install linphone-win32-0.5.2-setup.exe in windows. This is a very weak version. Not chat, but video.
Tools-> settings-> sip settings-> add proxy
Fill in the sip: atomchan@10.10.104.200 in your
Fill in the username between the sip and @, which is in the LAN, and fill in the IP address behind the @, which will not be sent to DNS for resolution.

Insert the camera and start calling linphone sip under linux: atom@10.10.104.196

You can chat.

Appendix:
Both Ubuntu and Fedora have an Ekiga installed by default. This is what was previously called Gnome meeting.
It is also a soft phone with an account registered at www.ekiga.net.
It seems to be more powerful than linphone in appearance, but every time I plug in the camera, it will crash.
I tried to connect ekiga and linphone.

In linux, are you still looking for something similar to the Flying Pigeon book in windows? Use Ekiga and linphone.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.