Difference between revisions of "OpenIGTLink/Library/Build"
From NAMIC Wiki
Line 1: | Line 1: | ||
[[OpenIGTLink | << OpenIGTLink]] | [[OpenIGTLink/Library | Library]] | [[OpenIGTLink | << OpenIGTLink]] | [[OpenIGTLink/Library | Library]] | ||
− | |||
− | |||
== Linux / Mac OS X == | == Linux / Mac OS X == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | First obtain the source code from the repository. | + | First obtain the source code from the repository. Open the terminal and run: |
$ svn co http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink OpenIGTLink | $ svn co http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink OpenIGTLink | ||
Line 22: | Line 15: | ||
$ make | $ make | ||
+ | |||
+ | You may install the library into your disk (optional). Run | ||
+ | |||
+ | $ make install | ||
== Windows == | == Windows == |
Revision as of 16:04, 15 July 2008
Home < OpenIGTLink < Library < BuildLinux / Mac OS X
First obtain the source code from the repository. Open the terminal and run:
$ svn co http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink OpenIGTLink
Then configure using CMake. The library requires CMake version higher than 2.4.
$ mkdir OpenIGTLink-build $ cd OpenIGTLink-build $ ccmake ../OpenIGTLink
Then CMake configuration screen shows up on your terminal. Normally, you don't need to change any options. Just press the 'c' key (configure) followed by the 'g' key (generate). and quit the configuration screen. Now you are ready to build the software.
$ make
You may install the library into your disk (optional). Run
$ make install
Windows
- Download SVN Windows client if you don't have one already
- You will also need CMake and a C/C++ compiler as Microsoft Visual C++
- Download out the source code from SVN
- Create a directory, ex. C:\Devel\OpenIGT\OpenIGTLink
- Right click on this directory (OpenIGTLink)
- From the menu select "SVN Checkout..."
- URL of repository: http://www.na-mic.org/svn/NAMICSandBox/trunk/OpenIGTLink/
- Click OK
- Run CMake
- Where is the source code: C:\Devel\OpenIGT\OpenIGTLink
- Where to build the binaries: C:\Devel\OpenIGT\build
- Click "Configure" and select your compiler (usually just click "OK")
- Message: "Build directory does not exit, should I create it?" - click "OK"
- It might give a "pdflatex" error, just ignore it for now
- Click "Configure"
- Click "OK" to close CMake
- Start Visual C and compile the project (C:\Devel\OpenIGT\build\OpenIGTLink.sln)
If all went OK you will have the executable and the library:
- C:\Devel\OpenIGT\build\Testing\debug\igtlSocketTest.exe
- C:\Devel\OpenIGT\build\Source\debug\OpenIGTLink.lib