Skip to content

Commit 830a799

Browse files
committed
update
1 parent f088889 commit 830a799

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ tensorflow-predictor-cpp
22
========
33

44
TensorFlow prediction using its C++ API.
5-
Having this repo, you will not need `TensorFlow-Serving`. This project has been tested on OSX.
5+
Having this repo, you will not need `TensorFlow-Serving`. This project has been tested on `OSX` and `Linux`.
66

77

88
Contains two examples:
@@ -117,7 +117,10 @@ output value: 0.0553177
117117
```
118118

119119
# Build on Linux
120+
The procedure is similar with that of OSX except for you should change those configuration.
120121
* remove `-undefined dynamic_lookup -all_load` in `CMakeLists.txt`
122+
* add `-Wl,--allow-multiple-definition -Wl,--whole-archive -Wl,--no-whole-archive` in `CMakeLists.txt`
121123
* change `default.macos.c++11` to `default.linux.c++11` in `src/CMakeLists.txt`
124+
* append `dl` to `list(APPEND DEEP_CTR_LINKER_LIBS)` in `src/CMakeLists.txt`
122125

123126

0 commit comments

Comments
 (0)