xyzz / openmw-android

OpenMW for Android
https://omw.xyz.is/
GNU General Public License v3.0
325 stars 87 forks source link

ffmpeg fails to build #39

Closed strikersix23 closed 3 years ago

strikersix23 commented 4 years ago

An issue on ubuntu 18.0.4

ffmpeg and its libs fails to compile with version mismatch I will upload a text log soon I might have a fix if it works I will send it along with the original error

licaon-kter commented 4 years ago

Maybe you don't have all the deps, eg. https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/is.xyz.omw_nightly.yml#L264

strikersix23 commented 4 years ago

The only I didn't have was doxygen but that doesn't affect ffmpeg

strikersix23 commented 4 years ago

Build fails still

xyzz commented 4 years ago

Log file?

strikersix23 commented 4 years ago

Ill try to build on Tuesday. The original official openme compiles correctly I'm going to try again

strikersix23 commented 4 years ago

here is the error

-- Found FFmpeg: /home/aj/openmw-android/buildscripts/prefix/arm/lib/libavcodec.a;/home/aj/openmw-android/buildscripts/prefix/arm/lib/libavformat.a;/home/aj/openmw-android/buildscripts/prefix/arm/lib/libavutil.a;/home/aj/openmw-android/buildscripts/prefix/arm/lib/libswscale.a;/home/aj/openmw-android/buildscripts/prefix/arm/lib/libswresample.a found components: AVCODEC AVFORMAT AVUTIL SWSCALE SWRESAMPLE -- libavformat is too old! (, wanted 57.56.100) -- libavcodec is too old! (, wanted 57.64.100) -- libavutil is too old! (, wanted 55.34.100) -- libswscale is too old! (, wanted 4.2.100) -- libswresample is too old! (, wanted 2.3.100) CMake Error at CMakeLists.txt:208 (message): FFmpeg version is too old, 3.2 is required

-- Configuring incomplete, errors occurred! See also "/home/aj/openmw-android/buildscripts/build/arm/openmw-prefix/src/openmw-build/CMakeFiles/CMakeOutput.log". make[2]: [openmw-prefix/src/openmw-stamp/openmw-configure] Error 1 make[1]: [CMakeFiles/openmw.dir/all] Error 2 make: *** [all] Error 2

xyzz commented 4 years ago

And what's in /home/aj/openmw-android/buildscripts/build/arm/openmw-prefix/src/openmw-build/CMakeFiles/CMakeOutput.log?

strikersix23 commented 4 years ago

here CMakeOutput.log

strikersix23 commented 4 years ago

anything wrong?

xyzz commented 4 years ago

Is it running on WSL? Try compiling it on a real Ubuntu 18.04 VM. The script at https://github.com/xyzz/openmw-android/blob/master/buildscripts/ssh-build.sh is what I use for clean 18.04 VMs on AWS, so it should always work.

strikersix23 commented 4 years ago

Im using wsl2 with Ubuntu 18.04 running on wsl2 Linux kernel I've compiled on wsl before and it worked I tested vanilla openmw port and ffmpeg works fine

strikersix23 commented 4 years ago

Can you tell me the deps that I need on the Ubuntu system

strikersix23 commented 4 years ago

Is htop and 7zip a hard dependency do I need qt5

strikersix23 commented 4 years ago

I don't have acces to aws vm

licaon-kter commented 4 years ago

Works fine in a local Virtualbox Debian VM with fdroidserver.

Sisah2 commented 4 years ago

Does anyone find solution without using virtual machine?

Sisah2 commented 4 years ago

Got it to work, removing "NOT" in line "if (NOT WIN32)" in file buildscripts/build/arm64/openmw-prefix/src/openmw/CMakeLists.txt disable that check and compile fine, just search for ffmpeg in that file.