problem with building Kodi of branch Krypton under windows7 and mingw64
#1
I have forked and download kodi source from https://github.com/xbmc/xbmc, when I was going to build the source under windows following the wiki guide(http://kodi.wiki/view/HOW-TO_compile_XBM...ource_code), I got the following error after I executed make-mingwlibs.bat (in tools\buildsteps\win32) script. Could anyone do me a favor to help me out?
Error prompt as follows.

Code:
building FFmpeg 32bit
-------------------------------------------------
backgrounding: sh ./buildffmpeg.sh clean /xbmc/project/Win32BuildSetup/bgprocess mingw & (workdir: /xbmc/tools/buildsteps/win32)
waiting on bgprocess...
.tput: unknown terminal "xterm-256color"
remote: Not Found
fatal: repository 'https://github.com/xbmc/FFmpeg/archive/' not found
ffmpeg .......................................................... [Removing]
ffmpeg-3.1.11-Krypton-17.5.tar.gz ............................. [Extracting]
.ffmpeg-3.1.11-Krypton-17.5 (32bit) ........................... [Configuring]
tput: unknown terminal "xterm-256color"
tput: unknown terminal "xterm-256color"
...gcc is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
ffmpeg-3.1.11-Krypton-17.5 (32bit) ............................. [Compiling]
Makefile:198: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'.  Stop.
Makefile:198: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'.  Stop.
ffmpeg-3.1.11-Krypton-17.5 (32bit) .................................. [Done]
cp: cannot stat ‘/xbmc/lib/win32/ffmpeg/bin/*.dll’: No such file or directory
failed to compile /xbmc/system/avcodec-57.dll


The related config.log file states as the following.

Code:
# ./configure --enable-cross-compile --arch=x86_64 --target_os='win32--target-os=mingw32' --prefix=/xbmc/lib/win32/ffmpeg --arch=x86 --disable-static --enable-shared --disable-debug --disable-doc --enable-gpl --enable-w32threads --enable-shared --enable-memalign-hack --enable-postproc --enable-zlib --disable-static --disable-programs --disable-devices --disable-avdevice --disable-crystalhd --enable-muxer=spdif --enable-muxer=adts --enable-muxer=asf --enable-muxer=ipod --enable-encoder=ac3 --enable-encoder=aac --enable-encoder=wmav2 --enable-encoder=png --enable-encoder=mjpeg --enable-protocol=http --enable-runtime-cpudetect --disable-dxva2 --cpu=i686 --extra-cflags=-DPTW32_STATIC_LIB --extra-ldflags=-static-libgcc
ACLOCAL_PATH=/mingw32/share/aclocal:/usr/share/acloc
mktemp -u XXXXXX
UG5DzA
check_ld cc
check_cc
BEGIN /tmp/ffconf.w7uxxQFz.c
   1    int main(void){ return 0; }
END /tmp/ffconf.w7uxxQFz.c
gcc -I/local32/include -D_FORTIFY_SOURCE=2 -I/local32/include -mms-bitfields -mthreads -mtune=generic -pipe -DPTW32_STATIC_LIB -march=i686 -c -o /tmp/ffconf.nKNycXU7.o /tmp/ffconf.w7uxxQFz.c
gcc -L/local32/lib -mthreads -pipe -static-libgcc -march=i686 -o /tmp/ffconf.8LLz6Xqz /tmp/ffconf.nKNycXU7.o
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find crt2.o: No such file or directory
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmingwthrd
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmingw32
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmoldname
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmingwex
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmsvcrt
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lpthread
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -ladvapi32
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lshell32
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -luser32
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lkernel32
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmingwthrd
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmingw32
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmoldname
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmingwex
D:\Kodi_dev\xbmc\project\BuildDependencies\msys64\mingw32\bin/ld.exe: cannot find -lmsvcrt
collect2.exe: error: ld returned 1 exit status
C compiler test failed.

Thanks very much to help me out.
Reply
#2
looks like https://github.com/xbmc/xbmc/commit/1d2a...81a56f3ad3 needs backporting to Krypton
Reply
#3
(2017-10-13, 14:23)wsnipex Wrote: looks like https://github.com/xbmc/xbmc/commit/1d2a...81a56f3ad3 needs backporting to Krypton

that's only a cosmetic change to not get
Code:
fatal: repository 'https://github.com/xbmc/FFmpeg/archive/' not found
which isn't a fatal error



It looks like something failed during executing DownloadMingwBuildEnv.bat.

Execute prepare-env.bat in tools\buildsteps\win32 and then start again with DownloadBuildDeps.bat.
Reply

Logout Mark Read Team Forum Stats Members Help
problem with building Kodi of branch Krypton under windows7 and mingw640