Kodi Community Forum

Full Version: Compiling W32 -- can't build ffmpeg
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to compile Kodi win32 from master on Win 7x64 / VS2015. Note that my local xbmc was way behind, so I did:

Code:
git fetch upstream
git merge upstream/master
which I think I resulted in my local repo being equal to kodi master as of yesterday PM.

make-mingwlibs.bat doesn't complete. It is hanging in mintty 2.2.2. This is what the console is showing:

Code:
-------------------------------------------------------------------------------
compiling mingw libs 32bit

NOPROMPT  = 0
MAKECLEAN = clean
WORKSPACE =
TOOLCHAIN = mingw

-------------------------------------------------------------------------------
-------------------------------------------------
building FFmpeg 32bit
-------------------------------------------------
gnutls  3.4.14 ................................................ [Up-to-date]
ffmpeg .......................................................... [Removing]
ffmpeg-3.3.2-Leia-Alpha-1 .................................... [Downloading]
/downloads/ffmpeg-30554d7a15f1944bca125392c5cf135cb5feb537.tar.gz: No such file or directory
ffmpeg-3.3.2-Leia-Alpha-1 ..................................... [Extracting]
tar: /downloads/ffmpeg-30554d7a15f1944bca125392c5cf135cb5feb537.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ffmpeg-3.3.2-Leia-Alpha-1 (32bit) ............................ [Configuring]
./buildffmpeg.sh: line 146: ./configure: No such file or directory
ffmpeg-3.3.2-Leia-Alpha-1 (32bit) .............................. [Compiling]
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
ffmpeg-3.3.2-Leia-Alpha-1 (32bit) ................................... [Done]
failed to compile /xbmc/project/BuildDependencies/mingwlibs//bin/avcodec-57.dll

I'm not sure where that /downloads/ffmpeg tar file is supposed to be?

any help appreciated.

scott s.
.
clean your git repository and redo all steps again
(2017-07-26, 16:01)Rechi Wrote: [ -> ]clean your git repository and redo all steps again

Ouch. Ok.

scott s.
.
Update: I blew away my local kodi repo and also my github fork. Reforked on github and cloned back to desktop.

So I ran make-mingwlibs.bat and it seemed to run through everything and compiled OK. So my initial problem is solved I guess.

I then tried to run BuildSetup.bat. (AFAICT from the wiki, that's the next step?)

It started building / compiling but quit on error.:

Code:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB6003: The specified task executable "cmd.exe" could not be run. The requested operation cannot be performed on a file with a user-mapped section open. [F:\DocumentsF\GitHub\xbmc\kodi-build\CMakeFiles\3.8.0\CompilerIdC\CompilerIdC.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB6003:  [F:\DocumentsF\GitHub\xbmc\kodi-build\CMakeFiles\3.8.0\CompilerIdC\CompilerIdC.vcxproj]

OFC I don't know what an "open user-mapped section" is in this context.

My CMakeOutputLog https://pastebin.com/RHu016Se
My CMakeErrorLog https://pastebin.com/L68A34St

scott s.
.