Menu

Tree [c9cdbf] master /
 History

HTTPS access


File Date Author Commit
 CLVREADME 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 CLVmain.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 Linux_TreeScaper.pro 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 Mac_TreeScaper.pro 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 Makefile 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 MersenneTwister.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 MersenneTwister.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 PlotGraph.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 PlotGraph.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 PointsSource.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 PointsSource.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 README 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 Sparse_matrix.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 Sparse_matrix.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 TreeOPE.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 TreeOPE.h 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 Trees.cpp 2014-08-05 whuang whuang [c9cdbf] Instead of finding several large plateaus, the ...
 Trees.h 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 Win32_TreeScaper.sln 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 Xtest.out 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 community.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 community.h 2014-06-02 whuang whuang [fc89ad] 1, Fixed the bugs when using command line versi...
 dimest_parameters.csv 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 graph.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 graph.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 greedy_louvain.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 greedy_louvain.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 hash.cc 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 hash.hh 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 hashfunc.cc 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 hashfunc.hh 2014-06-02 whuang whuang [fc89ad] 1, Fixed the bugs when using command line versi...
 hungarian.c 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 hungarian.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 indices.out 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 info.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 info.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 label-map.cc 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 label-map.hh 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 log.txt 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 main.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 nldr_parameters.csv 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 nldrparas 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 nldrparas_default 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 plot2d.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 plot2d.h 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 plot2d.ui 2014-06-02 whuang whuang [fc89ad] 1, Fixed the bugs when using command line versi...
 plotparas 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 plotparas_default 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 qcustomplot.cpp 2014-06-02 whuang whuang [fc89ad] 1, Fixed the bugs when using command line versi...
 qcustomplot.h 2014-06-02 whuang whuang [fc89ad] 1, Fixed the bugs when using command line versi...
 randgen.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 randgen.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 randomc.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 setting.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 setting.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 setting.ui 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 slicer.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 slicer.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 test.out 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 trees.txt 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 trees_Covariance Matrix.out 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 trees_Covariance Matrix_community_results.out 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 trees_unweighted_bipartition.out 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 treescaper.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 treescaper.h 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 treescaper.ui 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 triangle.txt 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wCommunitythread.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 wCommunitythread.h 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 wDimEst.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wDimEst.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wDimestthread.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wDimestthread.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wImage.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 wImage.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wNLDR.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wNLDR.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wNLDRthread.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wNLDRthread.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wPlotTree.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wPlotTree.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wPlotTreethread.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wPlotTreethread.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wPlotdimthread.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wPlotdimthread.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wPlotthread.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 wPlotthread.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 warray.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 warray.h 2014-06-02 whuang whuang [fc89ad] 1, Fixed the bugs when using command line versi...
 wdef.h 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 wfile.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wfile.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wimport_form.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wimport_form.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wmapping.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wmapping.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wmatrix.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 wmatrix.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wmix.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wmix.h 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 woutput.cpp 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 woutput.h 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...
 wstring.cpp 2014-05-05 whuang whuang [66e7ec] Combine GUI and command line version together.
 wstring.h 2014-07-29 whuang whuang [d48ceb] 1, fixed the bug when computing distance betwee...

Read Me

//##########################################################################
//# This software is part of the Treescaper i
//# -- Version 0.1
//# Copyright (C) 2010 Wen Huang
//#
//# This program is free software; you can redistribute it and/or
//# modify it under the terms of the GNU General Public License
//# as published by the Free Software Foundation; either version 2
//# of the License, or (at your option) any later version.
//#
//# This program is distributed in the hope that it will be useful,
//# but WITHOUT ANY WARRANTY; without even the implied warranty of
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//# GNU General Public License for more details.
//# http://www.gnu.org/copyleft/gpl.html
//##########################################################################

This readme file describes how to compile the code on Windows, Linux(Ubontu) and 
MAC system.

The rar includes the following files.

log
README
Win32_TreeScaper.sln
Win32_TreeScaper.vcproj
Linux_TreeScaper.pro
Mac_TreeScaper.pro
nldrparas_default
nldrparas
plotparas_default
plotparas
treescaper.ui
setting.ui
Xtest.out
test.out
randgen.h
setting.h
treescaper.h
ui_setting.h
ui_treescaper.h
warray.h
wdef.h
wDimEst.h
wDimestthread.h
wfile.h
wImage.h
wimport_form.h
wmapping.h
wmatrix.h
wmix.h
wNLDR.h
wNLDRthread.h
wPlotdimthread.h
wPlotthread.h
wstring.h
main.cpp
randgen.cpp
setting.cpp
treescaper.cpp
warray.cpp
wDimEst.cpp
wDimestthread.cpp
wfile.cpp
wImage.cpp
wimport_form.cpp
wmapping.cpp
wmatrix.cpp
wmix.cpp
wNLDR.cpp
wNLDRthread.cpp
wPlotdimthread.cpp
wPlotthread.cpp
wstring.cpp

Compiling:(Windows, Linux, Mac)
First, we need to change the file 'wdef.h'. If the platform is window, Linux, MAC respectively,
then _WINDOWS, _LINUX and _MAC need to be defined in 'wdef.h'.

	Windows: 
		1, download qt 4.8.4 lib and also add-in for vc2008 from official webpage.
		2, install qt.
		3, go to http://www.netlib.org/clapack/
			download CLAPACK-3.2.1-CMAKE.tgz
		4, download cmake from : http://www.cmake.org/cmake/resources/software.html
			Open CMAKE
	    Point to your CLAPACK-3.2.1-CMAKE folder in the source code folder
	    Point to a new folder where you want the build to be (not the same is better)
	    Click configure, check the install path if you want to have the libraries and includes in a particular location.
	    Choose Visual Studio Solution. You can also choose nmake or any other platform.
	    You may have to click again configure until everything becomes white
	    Click generate, that will create the Visual Studio for CLAPACK and you are done.
	    Close CMAKE
			Look in your "build" folder, you have your CLAPACK Visual Studio Solution, just open it.
			Build the "ALL_BUILD" project, it will build the solution and create the librarires
		5, compile and build lib for vtkmpeg2encode
			use same method as we compile clapack
		6, compile and build VTK
			open cmake-gui
			make 'bin' dir
			load source to be the dir of VTK and target to be dir of bin
			check advance and configure
			check VTK_USE_MPEG2_ENCODER and configure again
			2 errors occur. add dirs for vtkmpeg2encode's include and lib.
			check configure again. The problem is solved.
			click generate
			go to 'bin' dir and open the .sln file then compile it
		7, download vc2008 pro from the official webpage(90 days trial version)
		8, download microsoft directx SDK.
		8, Project->TreeScaper Properties. Configuration Properties->C/C++->General->Additional Include directories:
"E:\TreeScaper\clapack-3.2.1-CMAKE\INCLUDE","E:\Qt4.8.4\include\QtWidgets","E:\Qt4.8.4\include\QtCore","E:\Qt4.8.4\include\QtGui","E:\Qt4.8.4\include","E:\Qt4.8.4\include\ActiveQt","debug",".","E:\Qt4.8.4\mkspecs\win32-msvc2008";"E:\TreeScaper\vtk\bin";"E:\TreeScaper\vtk\bin\Common";"E:\TreeScaper\vtk\bin\Utilities";"E:\TreeScaper\vtk\bin\VolumeRendering";"E:\TreeScaper\vtk\bin\Rendering";"E:\TreeScaper\vtk\bin\Charts";"E:\TreeScaper\vtk\bin\Utilities\vtkalglib";"E:\TreeScaper\vtk\vtk\Infovis";"E:\TreeScaper\vtk\vtk\Geovis";"E:\TreeScaper\vtk\vtk\Views";"E:\TreeScaper\vtk\vtk\VolumeRendering";"E:\TreeScaper\vtk\vtk\Hybrid";"E:\TreeScaper\vtk\vtk\Widgets";"E:\TreeScaper\vtk\vtk\Rendering";"E:\TreeScaper\vtk\vtk\Charts";"E:\TreeScaper\vtk\vtk\Rendering\Testing\Cxx";"E:\TreeScaper\vtk\vtk\IO";"E:\TreeScaper\vtk\vtk\Imaging";"E:\TreeScaper\vtk\vtk\Graphics";"E:\TreeScaper\vtk\vtk\GenericFiltering";"E:\TreeScaper\vtk\vtk\Filtering";"E:\TreeScaper\vtk\vtk\Common";"E:\TreeScaper\vtk\vtk\Utilities";"E:\TreeScaper\vtk\vtk\Common\Testing\Cxx";"E:\TreeScaper\vtk\bin\Utilities\vtklibproj4";"E:\TreeScaper\vtk\vtk\Utilities\vtklibproj4";"E:\TreeScaper\vtk\bin\Utilities\DICOMParser";"E:\TreeScaper\vtk\vtk\Utilities\DICOMParser";"E:\TreeScaper\vtk\bin\Utilities\vtkfreetype\include";"E:\TreeScaper\vtk\vtk\Utilities\vtkfreetype\include";"E:\TreeScaper\vtk\bin\Utilities\vtknetcdf";"E:\TreeScaper\vtk\vtk\Utilities\vtknetcdf";"E:\TreeScaper\vtk\bin\Utilities\vtkexodus2\include";"E:\TreeScaper\vtk\vtk\Utilities\vtkexodus2\include";"E:\TreeScaper\vtk\bin\Utilities\MaterialLibrary";"E:\TreeScaper\vtk\vtk\Utilities\MaterialLibrary";"E:\TreeScaper\vtk\bin\Utilities\verdict";"E:\TreeScaper\vtk\vtk\Utilities\verdict";"E:\TreeScaper\vtk\vtk\Utilities\utf8\source";"E:\TreeScaper\vtk\vtk\Utilities\vtkalglib";"E:\TreeScaper\vtk\vtk\Utilities\ftgl\src";"E:\TreeScaper\vtk\bin\Utilities\ftgl"; "E:\TreeScaper\vtk\vtkmpeg2encode";
	9, Project->TreeScaper Properties. Configuration Properties->Linker->Input->Additional Dependencies:
E:\Qt4.8.4\lib\qtmaind.lib E:\Qt4.8.4\lib\QtGuid4.lib E:\Qt4.8.4\lib\QtCored4.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  "E:\TreeScaper\vtk\bin\bin\Debug\vtkWidgets.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkHybrid.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkRendering.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkGraphics.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkverdict.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkImaging.lib" "C:\Program Files\Microsoft DirectX SDK (June 2010)\Lib\x86\d3d9.lib" wbemuuid.lib  "E:\TreeScaper\vtk\bin\bin\Debug\vtkIO.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkFiltering.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkCommon.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkDICOMParser.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkmetaio.lib" comctl32.lib wsock32.lib  "E:\TreeScaper\vtk\bin\bin\Debug\vtksqlite.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkpng.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtktiff.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkzlib.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkjpeg.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkexpat.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtksys.lib" ws2_32.lib  "E:\TreeScaper\vtk\bin\bin\Debug\vtkftgl.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkfreetype.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkexoIIc.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\vtkNetCDF.lib" "E:\TreeScaper\vtk\vtkmpeg2encode\Debug\vtkMPEG2Encode.lib" vfw32.lib opengl32.lib "E:\TreeScaper\vtk\bin\bin\Debug\MapReduceMPI.lib"  "E:\TreeScaper\vtk\bin\bin\Debug\mpistubs.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkalglib.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkCharts.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkGenericFiltering.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkGeovis.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkInfovis.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtklibxml2.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkproj4.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtksqlite.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkverdict.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkViews.lib" "E:\TreeScaper\vtk\bin\bin\Debug\vtkVolumeRendering.lib" "E:\TreeScaper\clapack\F2CLIBS\libf2c\Debug\libf2c.lib" "E:\TreeScaper\clapack\BLAS\SRC\Debug\blas.lib" "E:\TreeScaper\clapack\SRC\Debug\lapack.lib"

	10, Project->TreeScaper Properties. Configuration Properties->Linker->Input->Ignore Specific Library:
		LIBCMTD.lib

	Linux:
		TreeScaper instructions for Ubuntu 12.04LTS
		1, download qt 5.0.1 framework from official webpage.
		2, change mode and run the qt-sourcefile by:
			chmod +x filename
		3, install g++ by:
			sudo apt-get install g++
		4, update and install openGL
			sudo apt-get install freeglut3
			sudo apt-get update
			sudo apt-get install freeglut3-dev
		5, go to http://www.netlib.org/clapack/
			download clapack.tgz (3.2.1)
			follow the readme to complie the souce code
		6, go to http://www.vtk.org/VTK/resources/software.html
			download 5.10.1 source, data and also additional components
			unpack vtk, vtkdata and vtkmpeg2encode
		7, install cmake-gui by
			sudo apt-get install cmake-qt-gui
		8, compile and build lib for vtkmpeg2encode
			open cmake-gui
			load source and binary dirs as that of vtkmpeg2encode
			click configure and select use default native compliers
			click generate
			move to the dir of vtkmpeg2encode and use command: make
		9, compile and build VTK
			open cmake-gui
			make 'bin' dir
			load source to be the dir of VTK and target to be dir of bin
			check advance and configure
			check VTK_USE_MPEG2_ENCODER and configure again
			2 errors occur. add dirs for vtkmpeg2encode's include and lib.
			check configure again. The problem is solved.
			click generate
			go to 'bin' dir and use command 'make' to generate libs

	
%	3, VTK
%		download vtk from http://www.vtk.org/VTK/resources/software.html#latest2.
%		download are vtk-5.8.0.tar.gz and vtkdata-5.8.0.tar.gz.
%		In addition, additional components(MPEG2) also need to be downloaded.
%		download cmake, cmake-2.8.6-Linux-i386.tar.gz, from: http://www.cmake.org/cmake/resources/software.html
	
			
	MAC:
		0, make sure Xcode is installed in your computer.
		1, QT
			Download QT SDK from qt ftp webpage: ftp://ftp.qt.nokia.com/qtsdk/ or official webpage: http://qt.nokia.com/downloads. Then install it.
			Because my mac mini is MAC OS 10.5.8, I download qt-sdk-mac-opensource-2010.05.dmg from ftp://ftp.qt.nokia.com/qtsdk/.
		2, CLAPACK
			download clapack-3.2.1-CMAKE.tgz from http://www.netlib.org/clapack/
			follow the readme to complie the souce code
		3, VTK
			download cmake, cmake-2.8.5-Darwin-universal.dmg, from: http://www.cmake.org/cmake/resources/software.html
			download vtk from http://www.vtk.org/VTK/resources/software.html#latest2.
			Because my MAC mini is MAC OS X 10.5.8, I don't want to download latest version.
			The version I used is 5.6.1. What I download are vtk-5.6.1.tar.gz and vtkdata-5.6.1.tar.gz.
			In addition, additional components(MPEG2) also need to be downloaded.
			untar vtk-5.6.1.tar.gz, vtkdata-5.6.1.tar.gz and vtkmpeg2encode.tar.gz in a same directory. create a new fold 'bin' in the directory.
			open cmake, choose vtkmpeg2encode as source code and build directory. then click configure, choose Unix-makefiles as generator.
			Then click generate. Then go to this directory and use 'make' to build lib.
			open cmake, choose vtk-5.6.1 as source code and choose bin as build directory. then click configure.
			Then choose Unix-makefiles as generator. check the option VTE_USE_MPEG2_ENCODER.
			Check VTK_USE_CARBON and uncheck VTK_USE_COCOA. then click configure again.
			Some errors appear now. Then we could get rid of the errors by choosing directory of vtkmpeg2encode and lib that just generated.
			now, we can click generate. After that, go to the bin directory that just is generated, use 'make' to build libs of vtk.
		4, Modify code
			open the file wdef.h, make sure _MAC is in the file.
			open the file Mac_TreeScaper.pro. then change the directory for each library and head file.
		5, package
			use command "macdeployqt Treescaper.app/ -verbose=1 -dmg" to package. The macdeployqt is in the directory of QTSDK somewhere.
		
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.