MainConcept / mc-ffmpeg-omx

Modified FFmpeg to support OMX plugins
8 stars 5 forks source link

Compilation error: OMX_Core.h: No such file or directory #2

Closed VitaliiGitHub closed 1 year ago

VitaliiGitHub commented 1 year ago

I tried to build sources:

0) clone repo (branch - omx_4.4_public_2.3) 1) ./configure 2) make

and got error: "./libavutil/omx_common.h:31:10: fatal error: OMX_Core.h: No such file or directory".

MainConcept-Development commented 1 year ago

This branch is typically built with a combination of OMX options that are enabled. Ex: "--enable-omx --enable-omx_enc_hevc --enable-omx_enc_avc". However, you are right, it should be possible to build ffmpeg without enabling OMX (and without OMX features). We hope to update this soon.

VitaliiGitHub commented 1 year ago

The command "./configure --enable-omx --enable-omx_enc_hevc --enable-omx_enc_avc" also return "ERROR: OMX_Core.h not found". It would be nice to add a little description of how to build the sources after "git clone".

MainConcept-Development commented 1 year ago

Could you please try the following, which should work on Linux?

mkdir build
pushd build
../configure --enable-asm --enable-static --disable-shared --enable-x86asm --enable-omx --enable-omx_enc_vvc --enable-omx_enc_mpegh --enable-omx_dec_avc --enable-omx_dec_hevc --enable-omx_enc_avc --enable-omx_enc_hevc --enable-omx_enc_mp2v --enable-omx_enc_xheaac --enable-gpl --enable-libx264 --extra-cflags="-I../omxil_common/include/omx" --prefix="../dist/linux-x64"
make -j 
make install
popd

After this, you should find your build in the ./dist sub-directory.

MainConcept-Development commented 1 year ago

We have also pushed https://github.com/MainConcept/mc-ffmpeg-omx/commit/5a7785a5609c13cb5434e810d3ce34af5f0fda4f, which corrects configure with no parameters so that it will not try to build any OMX components.

VitaliiGitHub commented 1 year ago

Could you please try the following, which should work on Linux?

mkdir build
pushd build
../configure --enable-asm --enable-static --disable-shared --enable-x86asm --enable-omx --enable-omx_enc_vvc --enable-omx_enc_mpegh --enable-omx_dec_avc --enable-omx_dec_hevc --enable-omx_enc_avc --enable-omx_enc_hevc --enable-omx_enc_mp2v --enable-omx_enc_xheaac --enable-gpl --enable-libx264 --extra-cflags="-I../omxil_common/include/omx" --prefix="../dist/linux-x64"
make -j 
make install
popd

After this, you should find your build in the ./dist sub-directory.

Yes, this help for Linux, and built successfully. Share the secret of how to fix the "libx264 not found"(for use --enable-libx264) error on Windows (mingw64)? I built x264 but it does not help.

MainConcept-Development commented 1 year ago

It sounds like your original issue is resolved and you can now successfully build MainConcept's modified FFmpeg sources. Unfortunately, building FFmpeg with x264 is not something we can help with; I suggest you start from this page or seek help from the FFmpeg community or elsewhere such as Stack Overflow.

VitaliiGitHub commented 1 year ago

Yes, fix helped thanks.