Openh264 Compiling a small note

Source: Internet
Author: User

Today is the last year before the Spring Festival to work, but also because of the recent integration of MSDK, X264 two encoder, so today the small test of the Cisco OPENH264 Encoder, intends to integrate it into my code.


the first is the compilation problem:

System platform: Win7 x86

Compilation Environment: Mingw32/msys


1, download the source code, I downloaded is openh264-master, can be seen from the above github download;

2, after decompression, with Msys into the openh264 root directory, directly run make;

Error: G++.exe:error:createprocess:no such file or directory

Workaround: Add the underlying directory of GCC under the Libexec directory to the PATH environment variable; for example mine is "C:\MinGW\mingw32\libexec\gcc\i686-w64-mingw32\4.8.0";


Error: G++.exe:fatal Error:fuse-linker-plugin, but liblto_plugin-0.dll not found

Clearly added libexec directory has liblto_plugin-0.dll this file, but still can't find. Later found to be using the GCC version is 4.7, and the addition of the GCC version of the Libexe directory is not on, my version is 4.8;

Workaround: Re-download or find the appropriate GCC suite to replace, or replace the corresponding version of the file in the Libexec directory;


3, after the above, re-make, the discovery can be compiled successfully;

7 Static libraries:

Libcommon.a

Libconsole_common.a

Libdecoder.a

Libencoder.a

libopenh264.a

Libopenh264.dll.a

Libprocessing.a


1 Dynamic Libraries:

Libopenh264.dll

2 Executable files:

H264dec.exe

H264enc.exe


4, Next we can use the example of the Openh264/codec directory to study and analyze the

As for the Android version openh264 compilation, you can refer to the Readme file, which has detailed instructions, pay attention to build a good NDK environment.


Streaming Media Group: 190717128

WEBRTC Group: 323038420

Welcome everyone to join the study together


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.