Archive:Eclipse CDT Setup For XBMC Development: Difference between revisions
No edit summary |
mNo edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{cleanup}} | {{cleanup}} | ||
Rough starting page with notes on how to get development of | Rough starting page with notes on how to get development of Kodi Media Center up and running using [http://www.eclipse.org/cdt/ Eclipse C/C++ Development Tooling (CDT)] | ||
== Installing Eclipse CDT == | == Installing Eclipse CDT == | ||
Line 22: | Line 22: | ||
Restart Eclipse | Restart Eclipse | ||
== Setting up | == Setting up Kodi in Eclipse CDT == | ||
Get | Get Kodi source from subversion | ||
Import project into Eclipse (there is a .project and .cproject at the root of the | Import project into Eclipse (there is a .project and .cproject at the root of the Kodi source tree so just select the root folder, e.g. trunk) | ||
Connect to subversion using Team -> Share Project (may be done magically now by new Subversive plug-in) | Connect to subversion using Team -> Share Project (may be done magically now by new Subversive plug-in) | ||
== Building | == Building Kodi == | ||
Either use command line externally or integrate the Makefile target for top level configure and make | Either use command line externally or integrate the Makefile target for top level configure and make | ||
== Debugging | == Debugging Kodi == | ||
Build and then launch the built xbmc.bin process or connect to existing running xbmc.bin process | Build and then launch the built xbmc.bin process or connect to existing running xbmc.bin process | ||
Line 40: | Line 40: | ||
== Tips and Tricks == | == Tips and Tricks == | ||
Symlink a folder under the Eclipse workspace folder to the root of the | Symlink a folder under the Eclipse workspace folder to the root of the Kodi source tree for the area being worked on, e.g. trunk or a branch) | ||
TODO: Detail how to configure the editor to show differences between the working file and what's under source control | TODO: Detail how to configure the editor to show differences between the working file and what's under source control | ||
Line 48: | Line 48: | ||
Ctrl + Shift + R opens the ''Open Resource'' dialog. Start typing the filename and it will find it for you - no more navigating to files deep inside the file hierarchy. | Ctrl + Shift + R opens the ''Open Resource'' dialog. Start typing the filename and it will find it for you - no more navigating to files deep inside the file hierarchy. | ||
[[Category:Development]] | [[Category:Development-Archived]] |
Latest revision as of 07:58, 28 July 2020
This page or section may require cleanup, updating, spellchecking, reformatting and/or updated images. Please improve this page if you can. The discussion page may contain suggestions. |
Rough starting page with notes on how to get development of Kodi Media Center up and running using Eclipse C/C++ Development Tooling (CDT)
Installing Eclipse CDT
Download the Eclipse IDE for C/C++ Developers from Eclipse Downloads. NOTE: there is a bug with Eclipse on Ubuntu Karmic Koala (9.10) where some of the GTK rendered buttons don't respond to a click. I can't believe this hasn't been fixed yet. Either Tab to focus the button and press Enter, or use the workaround noted in https://bugs.eclipse.org/bugs/show_bug.cgi?id=291257.
Install the Subversive plugin by gaining inspiration from the out-of-date Eclipse Subversive Installation Documentation
Help -> Install New Software
Type subversive into the Work with text box. Choose the Subversive Site that appears.
Install Subversive Integration Plug-in's and Subversive Team Provider Plugin
Restart Eclipse
Install Subversive Connectors (dialog after restarting Eclipse)
Choose the appropriate SVNKit version. NOTE: The version of SVNKit does NOT correspond to the version of subversion that it works with. Goodness only knows why they have a different version numbering scheme. For example, SVNKit 1.2.3 is for subversion 1.4, and SVNKit 1.3.0 is for subversion 1.6 (which you can check using svn --version). You'll have to read the description of the SVNKit version to determine what version of subversion it is for.
Restart Eclipse
Setting up Kodi in Eclipse CDT
Get Kodi source from subversion
Import project into Eclipse (there is a .project and .cproject at the root of the Kodi source tree so just select the root folder, e.g. trunk)
Connect to subversion using Team -> Share Project (may be done magically now by new Subversive plug-in)
Building Kodi
Either use command line externally or integrate the Makefile target for top level configure and make
Debugging Kodi
Build and then launch the built xbmc.bin process or connect to existing running xbmc.bin process
Tips and Tricks
Symlink a folder under the Eclipse workspace folder to the root of the Kodi source tree for the area being worked on, e.g. trunk or a branch)
TODO: Detail how to configure the editor to show differences between the working file and what's under source control
TODO: Create and checkin automatic code formatter settings for XBMC
Ctrl + Shift + R opens the Open Resource dialog. Start typing the filename and it will find it for you - no more navigating to files deep inside the file hierarchy.