ChaiBapchya commented on issue #17602: Fix OS X staticbuild, update docs and add tests URL: https://github.com/apache/incubator-mxnet/pull/17602#issuecomment-586643862 Verified this works by doing the following Mac OS X 10.14.6 1. Get the source code ``` git clone --recursive https://github.com/leezu/mxnet.git cd mxnet/ git fetch origin git checkout --track origin/osxci ``` 2. Install dependencies - Homebrew ``` gcc --version ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew update ``` - Rest ``` brew install nasm automake ninja libtool ``` 3. Gave me error for cmake command not found ``` brew install cmake ``` 4. Static Build with CPU ``` CMAKE_STATICBUILD=1 ./tools/staticbuild/build.sh cpu ``` It works perfectly. Takes a little over an hour to build. Result - Static linked MXNet library available as a dylib file : `mxnet/lib/libmxnet.dylib` Minor modification : Update Readme to reflect libmxnet.dylib (if its is Mac) here : https://github.com/apache/incubator-mxnet/blob/master/tools/staticbuild/README.md
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
