# 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
```