Build Instructions: Difference between revisions

From Commontk
Jump to navigationJump to search
No edit summary
No edit summary
Line 50: Line 50:


* Making a repository hosted on github that can track git.vtk.org [http://wiki.github.com/pieper/SlicerVTK/]
* Making a repository hosted on github that can track git.vtk.org [http://wiki.github.com/pieper/SlicerVTK/]
== Tools ==
List of needed tools and libraries used when building CTK:
* [http://git-scm.com/download Git]: To download source code
* [http://qt.nokia.com/downloads Qt]: Dependency needed. You need to compile it in your machine before building CTK
* [http://www.cmake.org/cmake/resources/software.html CMake]: Cross-platform build system
* [http://gnuwin32.sourceforge.net/packages/patch.htm Patch for Windows]: Needed to apply patches to external thirdparty libraries source code
* [http://www.collab.net/downloads/subversion SVN]: To update some third-party libraries automatically like PythonQt
* [http://ftp.gnu.org/non-gnu/cvs/ CVS]: To update some third-party libraries automatically like KWStyle
Optional:
* [http://www.python.org/download/ Python]: If you plan to use Scripting
* [http://www.stack.nl/~dimitri/doxygen/download.html#latestsrc DoxyGen]: To generate documentation from source code on your machine
* [http://www.graphviz.org/Download.php GraphViz]: To generate documentation from source code on your machine

Revision as of 03:20, 25 May 2010

Home < Build Instructions

CTK is a new and rapidly evolving system. These instructions are valid as of may, 2010.

Download

If you have a git hub account:

git clone git@github.com:pieper/CTK.git

(configure your ssh id for access)

Anonymous checkout:

git clone http://github.com/pieper/CTK.git

Build with CMake

mkdir CTK-superbuild
cd CTK-superbuild
ccmake ../CTK
make

CMake Configuration

  • set QT_QMAKE_EXECUTABLE for 4.6 development install if needed
  • turn on the parts of CTK you want to build


Simple Git

These are shortcuts for people used to the 'cvs or svn style' of source code management:

Checkout

  • checkout
git clone git@github.com:pieper/CTK.git

(or use anonymous option listed above)

Update

git pull --rebase

Commit

  • commit (commit is to local version, push sends it to upstream server)
git add <changed files>
git commit -m <message>
git push

Intermediate Git

  • check update before merging (look at diff):
git fetch
git diff origin master
git rebase
  • Making a repository hosted on github that can track git.vtk.org [1]

Tools

List of needed tools and libraries used when building CTK:

  • Git: To download source code
  • Qt: Dependency needed. You need to compile it in your machine before building CTK
  • CMake: Cross-platform build system
  • Patch for Windows: Needed to apply patches to external thirdparty libraries source code
  • SVN: To update some third-party libraries automatically like PythonQt
  • CVS: To update some third-party libraries automatically like KWStyle

Optional:

  • Python: If you plan to use Scripting
  • DoxyGen: To generate documentation from source code on your machine
  • GraphViz: To generate documentation from source code on your machine