Leia master does not compile on Windows 7, only Windows 10
#1
I couldn't get the master branch to compile on Windows 7 64 but it works on Windows 10 64.
It could not find the Windows SDK even though I have installed the correct version.
Even after adding the SDK into the cmake files it still would not compile.

Could someone confirm this.

If so the wiki needs updating to say Windows 10 only.
https://kodi.wiki/view/HOW-TO:Compile_Kodi_for_Windows
Reply
#2
uwp is win10, it will still build for win32|win64 just fine.
Reply
#3
(2018-03-09, 12:54)spiff Wrote: uwp is win10, it will still build for win32|win64 just fine.
 I just tried it on a fresh git clone and it fails with this on Windows 7 64.

Code:
Compiling Kodi branch master...
-- The CXX compiler identification is MSVC 19.0.24215.1
-- The C compiler identification is MSVC 19.0.24215.1
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Warning: Did not find file Compiler/MSVC-ASM
-- Source directory: C:/xbmc/master/xbmc
-- Build directory: C:/xbmc/master/xbmc/kodi-build
-- Generator: Multi-configuration (Visual Studio 14 2015)
-- CMake Version: 3.10.2
-- System type: Windows
CMake Error at cmake/scripts/windows/ArchSetup.cmake:5 (message):
  Detected Windows SDK version is .

  Windows SDK 10.0.14393.0 or higher is required.

  INFO: Windows SDKs can be installed from the Visual Studio installer.
Call Stack (most recent call first):
  cmake/scripts/common/ArchSetup.cmake:95 (include)
  CMakeLists.txt:33 (include)


-- Configuring incomplete, errors occurred!
See also "C:/xbmc/master/xbmc/kodi-build/CMakeFiles/CMakeOutput.log".
------------------------------------------------------------
!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-
   ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR
!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-
ERROR: "Kodi.EXE failed to build!"
------------------------------------------------------------
Press any key to exit...

Here is the CMakeOutput.log https://pastebin.com/7eczQZmr

The installed Windows SDKs are:
10.1.14393.795
10.1.16299.91
The wiki says 10.0.14393.
Reply
#4
Uninstall SDK 8(.1).
Reply
#5
Hi, Rechi

I met the same problem, you said to uninistall the SDK 8.1 , but I can find any option to do it, including the installer of vs2015 and windows add/remove program.

Can you tell me how to uninstall the sdk 8.1 in win7 64bit. 

Thanks a lot

Ethan
Reply
#6
You don't see a section named Windows 8.1 Tools in the VS 2015 installer? That's the one which has to be deselected.

Image
Reply
#7
I managed to find the installers for the 8 and 8.1 SDKs from Microsoft, install them and then uninstall them to get rid of the old SDKs.
The build process got past my original error but ffmpeg wouldn't build. Something wouldn't come down from a repo.
I parked the project until I have the energy to try again.

I have a vague recollection of something saying it would install the bare minimum ms dev tools to build something a while ago but I couldn't locate what it was.
That might have just copied the sdks into the Program folder without the proper installer.

The VS2015 installer didn't know about them at all.
Reply
#8
The 8 SDKs must only be with an earlier version of VS2015.
Here is my install dialog.
Image
Reply
#9
(2018-04-14, 13:48)Rechi Wrote: You don't see a section named Windows 8.1 Tools in the VS 2015 installer? That's the one which has to be deselected.

Image
There aren't any option about Windows 8.1 in my VS2015 installer too. The same as primaeval's image above.. And where to download your VS2015.   I use VS2015 Community too.
Reply
#10
This is where I found the installers for 8 and 8.1 in the Earlier section at the bottom.
https://developer.microsoft.com/en-us/wi...dk-archive
Install them.
Uninstall them and it should get rid of the old versions.
Reply
#11
(2018-04-14, 14:20)primaeval Wrote: This is where I found the installers for 8 and 8.1 in the Earlier section at the bottom.
https://developer.microsoft.com/en-us/wi...dk-archive
Install them.
Uninstall them and it should get rid of the old versions.
 Thank you。  I did as what you say. Install SDK 8, 8.1  and uninstall them.  But when I run BuildSetup.bat still met the same problem :

Wait while preparing the build.
------------------------------------------------------------
Compiling Kodi branch master...
子目录或文件 D:\xbmc\kodi_18\xbmc\kodi-build 已经存在。
-- Source directory: D:/xbmc/kodi_18/xbmc
-- Build directory: D:/xbmc/kodi_18/xbmc/kodi-build
-- Generator: Multi-configuration (Visual Studio 14 2015 Win64)
-- CMake Version: 3.11.0
-- System type: Windows
CMake Error at cmake/scripts/windows/ArchSetup.cmake:5 (message):
  Detected Windows SDK version is .

  Windows SDK 10.0.14393.0 or higher is required.

  INFO: Windows SDKs can be installed from the Visual Studio installer.
Call Stack (most recent call first):
  cmake/scripts/common/ArchSetup.cmake:95 (include)
  CMakeLists.txt:33 (include)


-- Configuring incomplete, errors occurred!
See also "D:/xbmc/kodi_18/xbmc/kodi-build/CMakeFiles/CMakeOutput.log".
------------------------------------------------------------
!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-
   ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR
!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-
ERROR: "Kodi.EXE failed to build!"
------------------------------------------------------------
Press any key to exit...
Reply
#12
I might have had to do a VS2015 reinstall or at least the sdk.
I tried a lot of things to get it working.
You should be able to select the sdk in the solution properties if everything is working normally apparently.
Reply
#13
Finally, I install a Windows 10.. and it's working now..
Reply
#14
awesome info bro, i will try to recompile all again, but whatever, tks for the info.  Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
Leia master does not compile on Windows 7, only Windows 100