forked from CalvinGregory/microUSV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·105 lines (102 loc) · 2.08 KB
/
build.sh
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Build AprilTag Library Objects
gcc -c -pthread \
src/apriltag/common/g2d.c \
src/apriltag/common/getopt.c \
src/apriltag/common/homography.c \
src/apriltag/common/image_u8.c \
src/apriltag/common/image_u8x3.c \
src/apriltag/common/image_u8x4.c \
src/apriltag/common/matd.c \
src/apriltag/common/pam.c \
src/apriltag/common/pjpeg-idct.c \
src/apriltag/common/pjpeg.c \
src/apriltag/common/pnm.c \
src/apriltag/common/string_util.c \
src/apriltag/common/svd22.c \
src/apriltag/common/time_util.c \
src/apriltag/common/unionfind.c \
src/apriltag/common/workerpool.c \
src/apriltag/common/zarray.c \
src/apriltag/common/zhash.c \
src/apriltag/common/zmaxheap.c \
src/apriltag/apriltag.c \
src/apriltag/apriltag_pose.c \
src/apriltag/apriltag_quad_thresh.c \
src/apriltag/tag25h9.c \
src/apriltag/tag36h11.c
# Build Objects
g++ -c -std=c++11 -pthread \
src/ConfigParser.cpp \
src/CVSS_util.cpp \
src/kodama_server.cpp \
src/cyclicbarrier.cpp \
src/FrameBuffer.cpp \
src/kodama_msg.pb.cc \
src/PoseDetector.cpp \
src/Robot.cpp
# Compile Application
g++ -std=c++11 -pthread -o kodama_server \
apriltag.o \
apriltag_pose.o \
apriltag_quad_thresh.o \
ConfigParser.o \
kodama_server.o \
CVSS_util.o \
cyclicbarrier.o \
FrameBuffer.o \
g2d.o getopt.o \
homography.o \
image_u8.o \
image_u8x3.o \
image_u8x4.o \
matd.o \
kodama_msg.pb.o \
pam.o \
pjpeg.o \
pjpeg-idct.o \
pnm.o \
PoseDetector.o \
Robot.o \
string_util.o \
svd22.o \
tag25h9.o \
tag36h11.o \
time_util.o \
unionfind.o \
workerpool.o \
zarray.o \
zhash.o \
zmaxheap.o \
-L/usr/local/lib -lopencv_core -lopencv_highgui -lopencv_features2d -lopencv_calib3d -lopencv_videoio -lopencv_imgcodecs -lopencv_imgproc -lprotobuf
# Cleanup .o files
rm apriltag.o \
apriltag_pose.o \
apriltag_quad_thresh.o \
ConfigParser.o \
kodama_server.o \
CVSS_util.o \
cyclicbarrier.o \
FrameBuffer.o \
g2d.o getopt.o \
homography.o \
image_u8.o \
image_u8x3.o \
image_u8x4.o \
matd.o \
kodama_msg.pb.o \
pam.o \
pjpeg.o \
pjpeg-idct.o \
pnm.o \
PoseDetector.o \
Robot.o \
string_util.o \
svd22.o \
tag25h9.o \
tag36h11.o \
time_util.o \
unionfind.o \
workerpool.o \
zarray.o \
zhash.o \
zmaxheap.o