Assuming:
- You have no previous dependency installed
- ActiveHarmony 4.6.0
- OpenCV 2.4.9
- InsightToolkit 4.11.0
- Nscale cloned on commit #daac7ff
- Yi provided on region-templates/runtime/regiontemplates/external-src/
for better organization, your workspace should look like
/workspace
- /libs
- /ah
- /activeharmony-4.6.0
- hadoopgis
- /itk
- /InsightToolkit-4.11.0
- /build
- /ns
- /nscale
- /build
- /opencv
- /opencv-2.4.9
- /build
- /yi
- /yi-src-multi
- /build
- /project
- /region-templates
- build
- /imgs
after everythins is downloaded, clone the repository into /project
folder
Requirements as noted on the Opencv install guide
compiler
sudo apt-get install build-essential
required
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
optional
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
download file and move to the /opencv
folder
inside /opencv
folder
unzip opencv-2.4.9.zip
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ../opencv-2.4.9/
make
sudo make install
download file and move to the /itk
folder
inside /itk
folder
tar -vxzf InsightToolkit-4.11.0.tar.gz
cd build
ccmake ../InsightToolkit-4.11.0
on the interface
- press
c
to configure - press
t
to toggle advanced mode - turn on
BUILD_SHARED_LIBS
- turn on
MODULE_ITKVideoBridgeOpenCV
- press
c
to configure - press
g
to generate
then build
make
clone the repository inside /ns
folder
inside /ns
folder
cd nscale
git checkout daac7ff
cd ../build
ccmake ../nscale
on the interface
- press
c
to configure - turn on
NS_SEGMENT
- turn on
NS_NORMALIZATION
- turn on
NS_FEATURE
- press
c
to configure - press
g
to generate
then build
make
NOTE: it may give errors of vars NSCALE_VERSION_MAJOR
and NSCALE_VERSION_MINOR
, press e
to continue and ignore.
inside /workspace
folder
cp project/region-templates/runtime/regiontemplates/external-src/yi-src-multi.tar.gz ./libs/yi/
inside /yi
folder
tar -vxzf yi-src-multi.tar.gz.tar.gz
cd build
ccmake ../yi-src-multi
on the interface
- press
c
to configure - press
e
to ignore errors and continue - fill
ITK_DIR
to yourITK
installation - turn off
build_mainTileAndSegmentWSINuclei
- press
c
to configure - turn on
build_mainSegmentSmallImage
- press
c
to configure - press
g
to generate
then build
make
download file and move to the /ah
folder
inside /ah
folder
tar -vxzf ah-4.6.0.tar.gz
cd activeharmony-4.6.0
make CXXFLAGS=-fPIC CFLAGS=-fPIC install
export full path to the /ah/activeharmony-4.6.0
something like
export HARMONY_HOME=/home/$USER/Desktop/workspace/ah/activeharmony-4.6.0
inside /workspace
folder
cp project/region-templates/runtime/regiontemplates/external-src/hadoopgis/ ./libs/
inside /hadoopgis
folder
cd installer
sudo bash installhadoopgis.sh
NOTE: it builds to /build
folder inside /hadoopgis
inside /project
folder
cd build
ccmake ../region-templates/runtime
on the interface
- press
c
to configure - turn on
BUILD_SAMPLE_APPLICATIONS
- turn on
RTEMPLATES_EXAMPLE
- turn on
USE_REGION_TEMPLATES
- press
c
to configure - press
e
to ignore errors and continue - fill
NSCALE_BUILD_DIR
to yourNSCALE
build - fill
NSCALE_SRC_DIR
to yourNSCALE
source - press
c
to configure - turn on
RT_TUNING_NSCALE_EXAMPLE
- turn on
RT_TUNING_YI_EXAMPLE
- turn on
USE_ACTIVE_HARMONY
- turn on
USE_HADOOPGIS
- press
c
to configure - press
e
to ignore errors and continue - fill
AH_SRC_DIR
to youractive harmony
source - fill
HADOOPGIS_BUILD_DIR
to yourhadoopgis
build - fill
ITK_DIR
to yourITK
installation - fill
YI_BUILD_DIR
to yourYI
build - fill
YI_SRC_DIR
to yourYI
source - press
c
to configure - press
g
to generate
then build
make