title: How to install shared library and include files manually in linux?
body: <p>I am trying to build and install TBB library from source so that it can be used for OpenCV to take advantages of multiple cores on my raspberry pi.</p>
  
  <p>I was able to build TBB from source without any problems using this steps.
  (Source : <a href="https://stackoverflow.com/questions/29556973/how-do-i-build-opencv-with-tbb-on-raspberry-pi">How do I build OpenCV with TBB on Raspberry Pi?</a>)</p>
  
  <p>wget -O ~/tbb43_20150316oss_src.tgz --no-check-certificate <a href="https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20150316oss_src.tgz" rel="nofollow noreferrer">https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20150316oss_src.tgz</a>
  tar -xvzf tbb43_20150316oss_src.tgz
  cd tbb43_20150316oss
  make tbb CXXFLAGS="-DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=0"  </p>
  
  <p>However, it's not getting detected while cmake step of building OpenCV.</p>
  
  <p>Where do I add generated .so files and .h files to system paths so that cmake can detect it ?</p>
  
  <p>Thanks. </p>