Building on Ubuntu 18.04 may face some road blocks - but they are solvable. The exact solution may vary slightly depending on the packages in your system. The following are some guidelines:
(1) One issue is related to the opencv python package provided by anacoda. The solution is to remove that opencv python package (if you have it) and then install another one as follows.
-- conda remove opencv
-- conda install -c menpo opencv3
(2) There may be symbol errors related to protobuf. Uninstalling system probuf library and installing anaconda protobuf package solved the issue in our case.
-- sudo apt remove libprorobuf-dev
-- conda install protobuf
(3) If using CUDA 10, the following error may occur.
cmake error: CUDA_cublas_device_LIBRARY (ADVANCED)
This is due to an issue with cmake. Using cmake version >= 3.12.2 solves this issue. If anaconda has been installed recently, a recent version of cmake will be there in the anaconda bin directory and you can use it.
(1) One issue is related to the opencv python package provided by anacoda. The solution is to remove that opencv python package (if you have it) and then install another one as follows.
-- conda remove opencv
-- conda install -c menpo opencv3
(2) There may be symbol errors related to protobuf. Uninstalling system probuf library and installing anaconda protobuf package solved the issue in our case.
-- sudo apt remove libprorobuf-dev
-- conda install protobuf (3) If using CUDA 10, the following error may occur. cmake error: CUDA_cublas_device_LIBRARY (ADVANCED) This is due to an issue with cmake. Using cmake version >= 3.12.2 solves this issue. If anaconda has been installed recently, a recent version of cmake will be there in the anaconda bin directory and you can use it.