Kodi Community Forum

Full Version: fatal error C1083: Cannot open include file: 'Python.h'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm getting stuck on the cmake build step in Windows7 64bit.
Could someone see why I it can't find Python.h please.
Here is the cmake output:
http://pastebin.com/NUiyycmM


[MODS] Please delete this thread if it is too basic for the Kodi Application forum.
What git revision are you currently trying to build? As this is just work in progress it may be you are currently on an old version were it hasn't worked.

Are you following the HOW-TO_compile_XBMC_for_Windows_from_source_code (wiki)?

Edit: Do you want to compile Kodi 64-Bit? If not just answer my second question.
(2017-03-22, 18:27)Rechi Wrote: [ -> ]What git revision are you currently trying to build? As this is just work in progress it may be you are currently on an old version were it hasn't worked.

Are you following the HOW-TO_compile_XBMC_for_Windows_from_source_code (wiki)?

Edit: Do you want to compile Kodi 64-Bit? If not just answer my second question.

Thanks for helping. I think I might be pushing my luck by starting on the latest revision instead of a stable build.
https://github.com/xbmc/xbmc/commit/e6d6...20c193c052

My fork is here
https://github.com/primaeval/xbmc

I followed the instructions:
DownloadBuildDeps.bat
DownloadMingwBuildEnv.bat
make-mingwlibs.bat
mkdir kodi-build && cd kodi-build
cmake -G "Visual Studio 14 2015 Win64" c:\xbmc\xbmc
cmake --build . --config "Debug"

I am trying to initially make a 64bit build but I need to build a Kodi 18 32bit version afterwards to find out where my addon is crashing Kodi 18.
If you want to make a 64Bit Build you need to check out https://github.com/xbmc/xbmc/tree/feature_win64.

Sometimes DownloadBuildDeps.bat skip some dependencies, so just run it again if you still get Python.h is missing or something similar.

If you want to switch target architecture (32/64 Bit Build) you need to remove your kodi-build folder otherwise cmake will fail with different generator used.
I got it to build when I used the Win32BuildSetup\BuildSetup.bat script.
So there must be an extra step needed in the manual build process.

I also needed to uninstall python 64bit and install the 32bit version for some other build errors.
I was surprised because I thought it would be using the version downloaded in the dependencies.