Add FFmpeg to the project, as well as problems encountered in H264decoder

Source: Internet
Author: User

Because the library was written in C for the first time, some compilation problems were encountered, as well as reference issues

I386

1. A library with the suffix. A is added directly to OK

2.include folder files, is not directly added to the project, you need to add the header reference path in the project file, you can

Targets->build setting->search Paths->header Search Paths

Add "$ (srcroot)/engineering path/include" here

Then place the Include folder at the corresponding path

There is also a reference to the header file (libH264Dec.h) does not need to join the project, directly placed in the file directory referencing the header can be

3. Compile the error question

(1) Error not defined what what h264decoder.o what, this kind of wrong solution is

Targets->architectures->architectures

Change here to ARMv6 ARMv7

(2) Whether the error "Class" Is "class"

OC files can not directly reference C files, you need to change the OC corresponding. m file suffix to. mm file after reference, if the memory is automatically released by the project, you need to set this file to manually release

Add FFmpeg to the project, as well as problems encountered in H264decoder

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.