Solved Kodi.exe file not formed on building Kodi
#1
Hello Team Kodi,
I had a problem during kodi building on windows.

I followed the guide specified in this file to build kodi, in this step , I used the command 
cpp:
cmake -G "Visual Studio 16 2019" -A x64 ..\xbmc
as I was using Visual Studio 2019. Then I opened the kodi.sln file generated in kodi-build directory and the build it, but on building it gives two errors and then no kodi.exe file was generated. 
These were the errors:
cpp:
Severity    Code    Description    Project    File    Line    Suppression State
Error    MSB8066    Custom build for 'C:\Users\semwa\kodi-build\CMakeFiles\c875caa5d069103a60fba7a7c50bc4fc\AddonModuleXbmcaddon.i.cpp.rule;C:\Users\semwa\kodi-build\CMakeFiles\c875caa5d069103a60fba7a7c50bc4fc\AddonModuleXbmcdrm.i.cpp.rule;C:\Users\semwa\kodi-build\CMakeFiles\c875caa5d069103a60fba7a7c50bc4fc\AddonModuleXbmcgui.i.cpp.rule;C:\Users\semwa\kodi-build\CMakeFiles\c875caa5d069103a60fba7a7c50bc4fc\AddonModuleXbmc.i.cpp.rule;C:\Users\semwa\kodi-build\CMakeFiles\c875caa5d069103a60fba7a7c50bc4fc\AddonModuleXbmcplugin.i.cpp.rule;C:\Users\semwa\kodi-build\CMakeFiles\c875caa5d069103a60fba7a7c50bc4fc\AddonModuleXbmcvfs.i.cpp.rule;C:\Users\semwa\kodi-build\CMakeFiles\c875caa5d069103a60fba7a7c50bc4fc\AddonModuleXbmcwsgi.i.cpp.rule' exited with code 1.    python_binding    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets    241    
cpp:
Severity    Code    Description    Project    File    Line    Suppression State
Error    LNK1104    cannot open file 'build\swig\Debug\python_binding.lib'    kodi    C:\Users\semwa\kodi-build\LINK    1    
In the first error, I checked the .rule files given in the error statements but they contains only a single line statement 
cpp:
# generated from CMake
. So I was unable to find the error.

Similarly I had also tried to build with the
cpp:
cmake --build . --config "Debug"
command , but it was also not generating kodi.exe file.

One more point all the commands were run on Developer Command Prompt for VS 2019, as per specified by my mentor.

This is the output on building: kodi.sln build
Reply
#2
Even a slight idea about solution is appreciated as I deleted whole directories of kodi and kodi-build and rebuild again and got stuck with same error. I can provide more information about how I builded till now if it is necessary to correct error.
Reply
#3
@Shardul what version of java do you have installed? Yes, java.
Which version of Kodi are you building? Matrix (v19.x) or Nexus (v20 - master)?
For matrix apply this PR as patch https://github.com/xbmc/xbmc/pull/19891

Edit: I see that you are participating in a GSOC project, friendly tip: to know whats going on you may want to have a read of https://github.com/xbmc/xbmc/issues https://github.com/xbmc/xbmc/pulls,
you also may want to subscribe to Kodi github notifications so you stay up to date.

The issue you are having was discussed here https://forum.kodi.tv/showthread.php?tid...pid3043557 and fixed in https://github.com/xbmc/xbmc/pull/19885 (master) and https://github.com/xbmc/xbmc/pull/19891 (Matrix)
Reply
#4
(2021-06-22, 20:07)asavah Wrote: @Shardul what version of java do you have installed? Yes, java.
Which version of Kodi are you building? Matrix (v19.x) or Nexus (v20 - master)?
For matrix apply this PR as patch https://github.com/xbmc/xbmc/pull/19891

Edit: I see that you are participating in a GSOC project, friendly tip: to know whats going on you may want to have a read of https://github.com/xbmc/xbmc/issues https://github.com/xbmc/xbmc/pulls,
you also may want to subscribe to Kodi github notifications so you stay up to date.

The issue you are having was discussed here https://forum.kodi.tv/showthread.php?tid...pid3043557 and fixed in https://github.com/xbmc/xbmc/pull/19885 (master) and https://github.com/xbmc/xbmc/pull/19891 (Matrix)
Thank you @asavah , I was not aware of this PR but I have made required changes and kodi.exe got formed successfully. By the way I was building Matrix(v19.1) and java version :
cpp:
C:\Users\semwa>java -version java version "16.0.1" 2021-04-20 Java™ SE Runtime Environment (build 16.0.1+9-24) Java HotSpot™ 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
Now the error is resolved, thank you Smile .
Reply
#5
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi.exe file not formed on building Kodi0