-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_build.sh
executable file
·34 lines (30 loc) · 1.47 KB
/
test_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
#!/bin/bash
set -e -x
rm -rf tensorflow_test
g++ -std=c++11 -o tensorflow_test \
./src/test/test_tensorflow.cpp \
./src/tfmodel/tfmodel.cc \
-g -Wall -D_DEBUG -Wshadow -Wno-sign-compare -w -Xlinker -export-dynamic \
-I../tensorflow/ \
-I./include/tfmodel/ \
-I./include/utils/ \
-I./include/base/ \
-I./third_party/gflags/include/ \
-I./third_party/glog/include/ \
-I/home/sunxx/soft/boost/include/ \
-I/usr/include/python2.7/ \
-I../tensorflow/tensorflow/contrib/makefile/gen/proto \
-I../tensorflow/tensorflow/contrib/makefile/downloads/eigen \
-I../tensorflow/tensorflow/contrib/makefile/downloads/absl/ \
-I../tensorflow/tensorflow/contrib/makefile/gen/protobuf/include \
-I../tensorflow/tensorflow/contrib/makefile/downloads/nsync/public/ \
-L../tensorflow/bazel-bin/tensorflow -ltensorflow_cc \
-L../tensorflow/bazel-bin/tensorflow -ltensorflow_framework \
-L./third_party/gflags/lib -lgflags \
-L./third_party/gflags/lib -lgflags_nothreads \
-L./third_party/glog/lib -lglog \
-L/home/sunxx/soft/boost/lib -lboost_system \
-L/usr/lib64 -lpython2.7 \
-lm \
-ldl \
-lpthread \