Linphone relies on a lot of libraries and compilation is really painful. Some libraries do not support mingw compilation, such as Osip and exosip, which is convenient in VC compilation. Fortunately, the official website provides a collection of dependent packages and does not need to be compiled by itself. Download linphone-3.5.2.tar.gz. After decompression, the directory contains a readme. mingw file, detailing the compilation in the mingw environment. The main process is recorded here.
1. Download Resources
Intltool_0.40.4-1_win32.zip http://ftp.acc.umu.se/pub/GNOME/binaries/win32/intltool/0.40/intltool_0.40.4-1_win32.zip
Gtk316-bundle_2.24.10-201208_win32.zip http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip
Inphone-deps-win32-120218.zip http://download-mirror.savannah.gnu.org/releases/linphone/misc/linphone-deps-win32-120218.zip
Release the above three files to mysys/1.0/contents. The dependency package inphone-deps-win32-120218.zip contains the third-party libraries on which the compiled Linphone depends, as shown below:
2. Compile
Compilation process is simple
Go to the linphone-3.5.2 directory and execute the command
./Configure & make install
PS: The Configure process may prompt the following error:
Configure: Error: GNU gettext tools not found; required for intltool
Apparently, the gettext program is not installed.
$ Mingw-Get install gettext
How do I know that the mingw-Get website contains related tools? You can use this command to query
$ Mingw-Get list | grep gettext
3. About dependent Libraries
You can also compile the Linphone dependent libraries by yourself. Refer to the instructions in readme. mingw.