markdown 在服务器端编译3.4.3版本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在服务器端编译3.4.3版本相关的知识,希望对你有一定的参考价值。

# Compile opencv 3.4.3 in the server
As in a shared server could be version and file issues between users (specially protobuf), this is an example on how to compile in most of our cases.

This example involves the use of 'tensorflow_cc' to combine tensorflow and opencv in the same client applications.

```
cmake .. -DWITH_GTK_2_X=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF 
-DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_PROTOBUF=OFF -DUPDATE_PROTO_FILES=ON 
-DPROTOBUF_UPDATE_FILES=ON -DProtobuf_LIBRARIES=/usr/local/lib/tensorflow_cc/libprotobuf.a 
-DProtobuf_INCLUDE_DIR=/home/myUser/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/include 
-DProtobuf_PROTOC_EXECUTABLE=/home/myUser/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/bin/protoc
```

以上是关于markdown 在服务器端编译3.4.3版本的主要内容,如果未能解决你的问题,请参考以下文章