-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
46 lines (40 loc) · 1.13 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Make script for building camera calibration application.
# To compile stereo camera calibrator OpenCV and Java glue needed.
# also ImageJ is added to use as imaging utility lib.
#
# Fredrik Hederstierna 2013
#
# javacv-0.6-cppjars.zip
# ---> ffmpeg-2.0.1-linux-x86_64.jar
# ---> opencv-2.4.6.1-linux-x86_64.jar
# javacv-0.6-bin.zip
# ---> javacpp.jar
# ---> javacv.jar
# ---> javacv-linux-x86_64.jar
# ij147.zip
# ---> ij.jar
#
# Links:
# https://code.google.com/p/javacv/
# http://rsb.info.nih.gov/ij/
#
SC = scalac
SR = scala
BUILD = ../build
OPENCV_DIR = /home/fredrik/github/opencv
OPENCV_LIB =
OPENCV_LIB += $(OPENCV_DIR)/javacv.jar
OPENCV_LIB += $(OPENCV_DIR)/javacv-linux-x86_64.jar
OPENCV_LIB += $(OPENCV_DIR)/javacpp.jar
OPENCV_LIB += $(OPENCV_DIR)/opencv-2.4.6.1-linux-x86_64.jar
OPENCV_LIB += $(OPENCV_DIR)/ffmpeg-2.0.1-linux-x86_64.jar
OPENCV_LIB += $(OPENCV_DIR)/ij.jar
# convert to colon separated list
SPACE := $(eval) $(eval)
PATHS := $(subst $(SPACE),:,$(OPENCV_LIB))
all:
# @echo "CLASSPATH: " $(PATHS)
$(SC) -d $(BUILD) -cp .$(PATHS) *.scala
run:
$(SR) -classpath $(BUILD)$(PATHS) com.stereoscan.camcalibrator.Main