From: MyungJoo Ham Date: Wed, 17 Jul 2019 10:00:57 +0000 (+0900) Subject: [Dist] Enable shared-lib option of tensorflow X-Git-Tag: accepted/tizen/unified/20190723.112119~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b65a71726626af577fdc6a998d4027a2ad34f72;p=platform%2Fupstream%2Ftensorflow.git [Dist] Enable shared-lib option of tensorflow Let's enable shared_lib mode. Change-Id: I5d41bfd852f94b83dcd28bf29ea5ad2322f118bb Signed-off-by: MyungJoo Ham --- diff --git a/debian/rules b/debian/rules index baee2ef..d8aca92 100755 --- a/debian/rules +++ b/debian/rules @@ -122,7 +122,7 @@ build: sed -i "s|ExternalProject_Add(\\(.*\\)$$|ExternalProject_add(\\1\\n\\tDOWNLOAD_COMMAND echo\\n\\tUPDATE_DISCONNECTED 1\\n|" tensorflow/contrib/cmake/external/*.cmake - cd ${topdir}/build && cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_ZLIB=ON + cd ${topdir}/build && cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_ZLIB=ON -Dtensorflow_BUILD_SHARED_LIB=ON printf 'PWD=`pwd`\n' > temp.sh printf 'for F in *.cmake ; do\n' >> temp.sh diff --git a/packaging/tensorflow.spec b/packaging/tensorflow.spec index 08aa565..4888961 100644 --- a/packaging/tensorflow.spec +++ b/packaging/tensorflow.spec @@ -241,7 +241,7 @@ pushd build # Seems some arguments of %%cmake is causing errors. # -Dtensorflow_ENABLE_SSL_SUPPORT=OFF Cut the dependency to Go (not available in Tizen) # Use -DCMAKE_INSTALL_LIBDIR=lib because of discrepency in png install path. -cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DCMAKE_INSTALL_LIBDIR=lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_PROTOBUF=ON -Dsystemlib_ZLIB=ON -Dsystemlib_GRPC=ON +cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DCMAKE_INSTALL_LIBDIR=lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_PROTOBUF=ON -Dsystemlib_ZLIB=ON -Dsystemlib_GRPC=ON -Dtensorflow_BUILD_SHARED_LIB=ON # QEMU unsupported syscall error is being writtin into .cmake files pushd CMakeFiles/pywrap_tensorflow_internal.dir