Win Compile error Windows
#1
Hello

I'm trying to compile the latest nightly (Kodi 18) myself. I have followed the instructions on the Wiki. All is fine until to compile ffmpeg. I always get the error to compile libdvdcss-2.dll:
Please see the output.
I have started as suggested make-mingwlibs.bat as admin and as non admin. The error is the same.
Do you have any idea whats wrong?

I'm using Windows 10 64bit and i have all prerequisites installed from the wiki.

Code:
checking for DVDREAD... no
configure: error: Package requirements (dvdread >= 5.0.2) were not met:

No package 'dvdread' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DVDREAD_CFLAGS
and DVDREAD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
libdvdnav-master (32bit) ....................................... [Compiling]
make: *** Keine Regel, um „clean“ zu erstellen.  Schluss.
make: *** Keine Regel, um „install“ zu erstellen.  Schluss.
libdvdnav-master (32bit) ............................................ [Done]
gcc.exe: error: libdvdread/src/*.o: Invalid argument
gcc.exe: error: libdvdnav/src/*.o: Invalid argument
gcc.exe: error: libdvdnav/src/vm/*.o: Invalid argument
gcc.exe: error: C:/compile/lib/libdvd/lib/libdvdcss.dll.a: No such file or directory
C:\compile\project\BuildDependencies\msys64\mingw32\bin\strip.exe: 'C:/compile/lib/libdvd/bin/libdvdnav.dll': No such file
libdvd (32bit) ...................................................... [Done]
failed to compile /xbmc/system/libdvdcss-2.dll
Reply
#2
I can remember a week before i was able to compile Kodi. So i guess something has changed during the build process of ffmpeg and the necessary libs.

I guess it's a common error because i could see in the output some packages can't be find or not installed. All packages are related to ffmpeg like libdvd.
Reply
#3
I am getting the same error, though I have not yet been able to build successfully as i just started trying.

What was the last commit where you were able to compile kodi previously?
Reply
#4
Here is my error output. I'm still messing around with this, so hopefully i'll find a solution, but if anyone has seen this before I would appreciate a hint Smile

Code:
ffmpeg-3.1.6-Krypton (32bit) ........................................ [Done]
.-------------------------------------------------
building of FFmpeg 32bit done...
-------------------------------------------------
-------------------------------------------------
building libdvd 32bit
-------------------------------------------------
backgrounding: sh ./buildlibdvd.sh clean /xbmc/project/Win32BuildSetup/bgprocess mingw & (workdir: /xbmc/tools/buildsteps/win32)
waiting on bgprocess...
.libdvdcss ....................................................... [Removing]
libdvdcss-2f12236bc1c92f73c21e973363f79eb300de603f.tar.gz ..... [Extracting]
libdvdcss-master (32bit) ..................................... [Configuring]
/usr/bin/autoreconf: Perl lib version (5.22.0) doesn't match executable '/usr/bin/perl' version (5.22.1) at /usr/lib/perl5/core_perl/Config.pm line 62.
Compilation failed in require at /usr/share/perl5/core_perl/File/Copy.pm line 14.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 14.
Compilation failed in require at /usr/share/autoconf/Autom4te/FileUtils.pm line 167.
BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/FileUtils.pm line 167.
Compilation failed in require at /usr/bin/autoreconf line 42.
BEGIN failed--compilation aborted at /usr/bin/autoreconf line 42.
./buildlibdvd.sh: line 19: ./configure: No such file or directory
libdvdcss-master (32bit) ....................................... [Compiling]
make: *** No rule to make target 'clean'.  Stop.
make: Nothing to be done for 'install'.
libdvdcss-master (32bit) ............................................ [Done]
D:\code\xbmc\project\BuildDependencies\msys64\mingw32\bin\strip.exe: 'D:/code/xbmc/lib/libdvd/bin/libdvdcss-2.dll': No such file
libdvdread ...................................................... [Removing]
.libdvdread-17d99db97e7b8f23077b342369d3c22a6250affd.tar.gz .... [Extracting]
libdvdread-master (32bit) .................................... [Configuring]
/usr/bin/autoreconf: Perl lib version (5.22.0) doesn't match executable '/usr/bin/perl' version (5.22.1) at /usr/lib/perl5/core_perl/Config.pm line 62.
Compilation failed in require at /usr/share/perl5/core_perl/File/Copy.pm line 14.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 14.
Compilation failed in require at /usr/share/autoconf/Autom4te/FileUtils.pm line 167.
BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/FileUtils.pm line 167.
Compilation failed in require at /usr/bin/autoreconf line 42.
BEGIN failed--compilation aborted at /usr/bin/autoreconf line 42.
./buildlibdvd.sh: line 33: ./configure: No such file or directory
libdvdread-master (32bit) ...................................... [Compiling]
make: *** No rule to make target 'clean'.  Stop.
make: *** No rule to make target 'install'.  Stop.
libdvdread-master (32bit) ........................................... [Done]
.libdvdnav ....................................................... [Removing]
libdvdnav-43b5f81f5fe30bceae3b7cecf2b0ca57fc930dac.tar.gz ..... [Extracting]
libdvdnav-master (32bit) ..................................... [Configuring]
/usr/bin/autoreconf: Perl lib version (5.22.0) doesn't match executable '/usr/bin/perl' version (5.22.1) at /usr/lib/perl5/core_perl/Config.pm line 62.
Compilation failed in require at /usr/share/perl5/core_perl/File/Copy.pm line 14.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/File/Copy.pm line 14.
Compilation failed in require at /usr/share/autoconf/Autom4te/FileUtils.pm line 167.
BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/FileUtils.pm line 167.
Compilation failed in require at /usr/bin/autoreconf line 42.
BEGIN failed--compilation aborted at /usr/bin/autoreconf line 42.
./buildlibdvd.sh: line 45: ./configure: No such file or directory
libdvdnav-master (32bit) ....................................... [Compiling]
make: *** No rule to make target 'clean'.  Stop.
make: *** No rule to make target 'install'.  Stop.
libdvdnav-master (32bit) ............................................ [Done]
gcc.exe: error: libdvdread/src/*.o: Invalid argument
gcc.exe: error: libdvdnav/src/*.o: Invalid argument
gcc.exe: error: libdvdnav/src/vm/*.o: Invalid argument
gcc.exe: error: D:/code/xbmc/lib/libdvd/lib/libdvdcss.dll.a: No such file or directory
D:\code\xbmc\project\BuildDependencies\msys64\mingw32\bin\strip.exe: 'D:/code/xbmc/lib/libdvd/bin/libdvdnav.dll': No such file
libdvd (32bit) ...................................................... [Done]
failed to compile /xbmc/system/libdvdcss-2.dll
Reply
#5
The errors I was receiving lead me to believe I should try to build libdvdcss by itself. So I started and had to install mingw and msys and everything on this new surface pro 4 I got and I finally got libdvdcss to build, but the build instructions at https://github.com/xbmc/libdvdcss/blob/master/INSTALL are outdated.

Does the kodi community maintain that repo still? It is listed as a build dependency at https://github.com/xbmc/xbmc/blob/master...SS-VERSION
Reply
#6
I got a little closer to getting kodi to build on windows by running all of the batch scripts in powershell (not in administrative role) and then I ran into the following error:


Code:
CMake Error at CMakeLists.txt:306 (add_dependencies):
  The dependency target "dvdnav" of target "libkodi" does not exist.


-- Generating done
-- Build files have been written to: C:/code/xbmc/kodi-build
------------------------------------------------------------
---------------
   ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR
---------------
ERROR: "Kodi.EXE failed to build"
------------------------------------------------------------

so I tried to build libdvdnav locally, and ran into an error there, so I put out a pull request: https://github.com/xbmc/libdvdnav/pull/3. If anyone knows of a better place to point out pull requests, or if I should post that up to videolan's repository, please let me know.
Reply
#7
I was able to compile it using the instructions at: https://stackengineer.com/multimedia/bui...vdcss.html

Code:
sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64-tools
wget download.videolan.org/libdvdcss/1.4.0/libdvdcss-1.4.0.tar.bz2
tar -xf libdvdcss-1.4.0.tar.bz2
cd libdvdcss-1.4.0/
./configure --host=x86_64-w64-mingw32
make
Reply
#8
Hi~
Make a git repository in the project/BuildDependencies directory.

> cd project\BuildDependencies
> git init
> git config user.email "[email protected]"
> git config user.name "Your Name"
> git add DownloadBuildDeps.bat
> git commit -m "initial commit"
[master (root-commit) 5dbca9d] initial commit
1 file changed, 62 insertions(+)
create mode 100644 DownloadBuildDeps.bat
Reply

Logout Mark Read Team Forum Stats Members Help
Compile error Windows0