You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
677 B

  1. #!/bin/bash
  2. INCLUDE_INSTALL_DIR="$1"/include
  3. LIBRARY_INSTALL_DIR="$1"/lib
  4. mkdir -p $INCLUDE_INSTALL_DIR
  5. mkdir -p $LIBRARY_INSTALL_DIR
  6. cp -av include/OpenImageDenoise $INCLUDE_INSTALL_DIR
  7. cp -av lib/lib* $LIBRARY_INSTALL_DIR
  8. rm $LIBRARY_INSTALL_DIR/libtbb.so
  9. rm $LIBRARY_INSTALL_DIR/libtbb.so.12
  10. cp $LIBRARY_INSTALL_DIR/libtbb.so.12.1 $LIBRARY_INSTALL_DIR/libtbb.so.12
  11. sudo ln -s ${LIBRARY_INSTALL_DIR}/libOpenImageDenoise.so /usr/local/lib/libOpenImageDenoise.so
  12. sudo ln -s ${LIBRARY_INSTALL_DIR}/libOpenImageDenoise.so.1 /usr/local/lib/libOpenImageDenoise.so.1
  13. sudo ln -s ${LIBRARY_INSTALL_DIR}/libOpenImageDenoise.so.1.4.0 /usr/local/lib/libOpenImageDenoise.so.1.4.0