It is because the PYTHONPATH is not being picked up. This usually either arises at the CMake or Run from Xcode steps. The main problem that can arise is due to python path issues. Uninstall homebrew Python that some of the dependencies insist on installing #Several unit tests fail with NeXus v4.4.2 # # boost-python brings in homebrew's python if installed with -build-bottle.īrew install boost-python -c 11 -build-from-source And add -build-from-source.īrew install sip -build-from-source -without-python3īrew install -build-from-source -without-python3īrew install qscintilla2qt4 -build-from-sourceīrew install qscintilla2 -build-from-source -without-python3 # sip,pyqt and qscintilla2 bring in homebrew's python if # installed with -build-bottle. # mactex is optional, needed for parsing equations in qthelp documentation.īrew install -with-qt3support -build-bottle Install Apple’s Command Line tools (without this then /usr/include will not exist) The last version to support OS X Yosemite is Xcode 7.2.1Īs of August 1, 2016, our OS X El Capitan build server is running Xcode 7.3.1 The last version to support OS X Mavericks is Xcode 6.2 Other python distributions may work but have not been tested.įirst install Xcode and then clone the mantid git repository. These instructions are from the assumptions of a blank newly installed Mac and want to use the system python. OS X 10.10 and 10.11 using clang and Xcode ¶ Warning: if you do not want to install Mantid in /Applications, correct the CMAKE_INSTALL_PREFIX in the cmake_install.cmake file in your build directory. You may also install Mantid using the make install command. You may create the dmg package running the make package command I did not manage to build it for the moment.īuild mantid running make or make -j number_of_threads Pay attention that packaging of the documentation is switched off. DCMAKE_INSTALL_PREFIX =path_where_to_install_mantid /path_to_repository/mantid/Code/Mantid DSITEPACKAGES_PATH =/opt/local/Library/Frameworks/amework/Versions/2.7/lib/python2.7/site-packages \ DPYQT4_PATH =/opt/local/Library/Frameworks/amework/Versions/2.7/lib/python2.7/site-packages/PyQt4 \ DSPHINX_EXECUTABLE =/opt/local/bin/sphinx-build-2.7 \ DPYLINT_EXECUTABLE =/opt/local/bin/pylint-2.7 \ DPYTHON_EXECUTABLE =/opt/local/bin/python \ DPYTHON_NUMPY_INCLUDE_DIR =/opt/local/Library/Frameworks/amework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include \ DSIP_INCLUDE_DIR =/opt/local/Library/Frameworks/amework/Headers \ DPYTHON_INCLUDE_DIR =/opt/local/Library/Frameworks/amework/Headers \ DOPENCASCADE_INCLUDE_DIR =/opt/local/include/oce \ DJSONCPP_INCLUDE_DIR =/opt/local/include \ DQWTPLOT3D_INCLUDE_DIR =/opt/local/include/qwtplot3d \ DCMAKE_CXX_COMPILER =/usr/bin/clang -G 'Unix Makefiles' \ LibNeXus: macports do not contain libNeXus.ĭownload the source code from the NeXus developers website.Ĭmake -DCMAKE_C_COMPILER =/usr/bin/clang \ Install OpenCascade libraries as: sudo port install oce -tbb. If you have the POCO libraries already installed, uninstall them: sudo port uninstall poco, then install as: sudo port install poco ssl. Install Mantid prerequisites via sudo port install package_nameīy default, POCO libraries in macports are missing libCrypto and libNetSSL. Install Xcode and macports following the instructions on if needed. It is not recommended to have both, homebrew and macports installed simultaneously on one mac. In other cases please either download a Mantid dmg package or follow the instructions below. It alsoĬonsiders that you need to compile Mantid by yourself. This instruction considers that you either use macports or need them for your other development projects. See Building on OS X for the latest instructions. They almost certainly won’t work with the latest version of mantid. These instructions are provided as reference for building on older versions of OSX. OS X 10.10 and 10.11 using clang and Xcode
0 Comments
Leave a Reply. |