Fixed the FFMPEG compilation error-videodev2.h: 518: Error: syntax error before

Source: Internet
Author: User

An error occurred while compiling FFMPEG:

/Usr/include/Linux/videodev2.h: 518:Error:Syntax error before

......

Open/Usr/include/Linux/videodev2.h, 518 rowsCode:

Typedef _ u64 v4l2_std_id;

This error may be because the current compilation environment does not recognize the _ u64 Declaration (My GCC version: GCC version 3.4.6 20060404)

 

I had to modify the "great" FFMPEG source code:_ U64Change statementUnsigned long,

Save, recompile, and make another declaration error. The error occurs in/usr/include/Linux/videodev. h, and then modify it,

SetUlongChange declarationUnsigned long, Save, compile, and pass.

 

You can also use the macro definition to correct this error. However, since there is no problem in other places, you should change it to see if there is any problem.

 

There is no 64-bit server environment, as if_ U64Such declarations have poor compatibility. Alas, after all, there are too many compiler versions, but the developers who work in these architectures really don't understand the outcome. Is it really "great? It only consumes more energy... and the application should not bear such errors.

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.