设为首页 收藏本站
查看: 623|回复: 0

XBMC 11.0 稳定版 Windows VS 2012 + VS2010 编译

[复制链接]
累计签到:2 天
连续签到:1 天
发表于 2015-5-2 13:41:08 | 显示全部楼层 |阅读模式
  1. 下载稳定版源码
  Source Code  http://xbmc.org/download/
  Stable release sources are available here. XBMC 11.0 稳定版
  2. wiki  HOW-TO:Compile XBMC for Windows
  2.1 Microsoft DirectX SDK June 2010 version here 安装,可能遇见的问题DirectX SDK (June 2010)安装遇到Error Code S1023
  2.2 Visual C++ 2010 如果先装了VS 2012 后装 VS 2010 及 sp1 没有问题
       2.3 Run DownloadBuildDeps.bat in "path\to\xbmc\project\BuildDependencies" (Avoid spaces in the path to the XBMC code directory. The batch file doesn't like them at the moment.) 路径中间不要有空格
       /////////////// ffmpeg编译 2013/01/29 否则视频播放不了

       2.4 DownloadMingwBuildEnv.bat (also located in the folder project\BuildDependencies) to download the necessary items for building the ffmpeg libraries.
       2.5 buildmingwlibs.bat (in project\Win32BuildSetup). This will build the ffmpeg libraries.
  3. 编译
       3.1 如果使用VS2012 不要升级工程,实际还是用VS2010的编译器编译;只是vs2012的智能提示好用
     3.2  XBMC\project\VS2010Express\XBMC for Windows.sln 并且 Choose DirectX (OpenGL is deprecated).
       3.3 编译会出现一些错误,参考解决中文操作系统下编译XBMC的问题
  XBMC 11.0 稳定版需要替换的内容
  LocalizeStrings.cpp Line132
  // fill in the constant strings
  m_strings[20022] = "";
  m_strings[20027] = ToUTF8(encoding, "\xB0\x46");      //m_strings[20027] = ToUTF8(encoding, "癋");
  m_strings[20028] = ToUTF8(encoding, "K");
  m_strings[20029] = ToUTF8(encoding, "\xB0\x43");      //m_strings[20029] = ToUTF8(encoding, "癈");
  m_strings[20030] = ToUTF8(encoding, "\xB0\x52\xE9");  //m_strings[20030] = ToUTF8(encoding, "癛?);
  m_strings[20031] = ToUTF8(encoding, "\xB0\x52\x61");  //m_strings[20031] = ToUTF8(encoding, "癛a");
  m_strings[20032] = ToUTF8(encoding, "\xB0\x52\xF8");  //m_strings[20032] = ToUTF8(encoding, "癛?);
  m_strings[20033] = ToUTF8(encoding, "\xB0\x44\x65");  //m_strings[20033] = ToUTF8(encoding, "癉e");
  m_strings[20034] = ToUTF8(encoding, "\xB0\x4E");      //m_strings[20034] = ToUTF8(encoding, "癗");
  XBMChttp.cpp  Line 2763
  if(strInfo.Find("\xEF\xBF\xBD") && strInfo.Find("\xEF\xBF\xBD")) //if(strInfo.Find("?") && strInfo.Find("?"))
    {
      // The Charset Converter ToUtf8() will add. only in this case= "?" a char "°" during converting,
      // which is the right value for the GUI!
      // A length depending fix in CCharsetConverter::stringCharsetToUtf8() will couse a wrong char in GUI.
      // So just for http, we remove the "?", to fix BUG ID:[1586251]
      strInfo.Replace("\xEF\xBF\xBD",""); //strInfo.Replace("?","");
    }
  此时继续编译,编译成功。
  4. debug
  4.1 Goto the Debugging settings and enter "XBMC_HOME=C:\Dev\XBMC" (without quotes) in the "Environment" field, where C:\Dev\XBMC is the path where your XBMC root is (containing language/skin/system/userdata folders etc.)
  在 调试->环境 输入  XBMC_HOME=D:\xbmc\xbmc-11.0 会去这个路径下找 language文件夹等加载配置
   2013/01/30 更好的办法是设置为XBMC_HOME=../..
  4.2 Copy *.dll from "project\Win32BuildSetup\dependencies" to the build directory, e.g. "project\VS2010Express\XBMC\Debug (DirectX)"
              D:\xbmc\xbmc-11.0\project\Win32BuildSetup\dependencies 文件夹下的dll文件要拷贝过去,缺的是glew32.dll
        4.3 VS 2012可能直接debug会有问题,有些库不编译; 先用VS 2010 debug一次

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-62857-1-1.html 上篇帖子: 分享Windows Server 2012 R2的获取正版密钥方法 下篇帖子: 打造最强Windows Server 2012 给你比Windows 8更好的体验
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表