From d1787eb1096aa7ecea8957fe32e849368a67462a Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Mon, 17 Feb 2025 23:10:28 +0100 Subject: [PATCH] remove macOS build instructions They are outdated and need substantial updates --- modules/doc/install.rst | 71 ----------------------------------------- 1 file changed, 71 deletions(-) diff --git a/modules/doc/install.rst b/modules/doc/install.rst index 0060a81b4..3bc926de8 100644 --- a/modules/doc/install.rst +++ b/modules/doc/install.rst @@ -333,77 +333,6 @@ OpenMM plugin directory. Lets do a proper out of source build here: cmake .. -DOPTIMIZE=ON -DENABLE_MM=1 -DENABLE_PARASAIL=1 \ -DOPEN_MM_PLUGIN_DIR=/lib/x86_64-linux-gnu/openmm/plugins - -**macOS (Catalina/ Big Sur/ Monterey) with Homebrew** - -.. note:: - - When switching the Qt version used for compiling OST with support for the - graphical user interface, dng may start behaving weird. Symptoms are that the - user interface starts being unresponsive to mouse clicks. An easy solution - may be to close dng and remove - ``$HOME/Library/Preferences/org.openstructure.dng.plist`` and start dng again. - -`Homebrew <https://brew.sh/>`_ can be used to conveniently install all -dependencies. The current Python version, as of writing these instructions, is -3.9.10 but works so far. Boost comes as 1.76.0 which seems to be OK. Do not -forget to also install boost-python3 (your system may have a lower version of -Python than 3.9.10 but it seems like boost-python3 was compiled for 3.9.10). -Eigen and SQLite also seem to be unproblematic concerning higher version -numbers. To build the graphical user interface, use Qt version 5 by installing -packages qt@5 and pyqt@5 from Homebrew. - -If you want to build the info module or the graphical user interface, make sure -you have the Xcode app installed. Just the Xcode command line tools which are -sufficient for Homebrew, will not work with Qt5. - -Before running CMake, some environment variables need to be set on the command -line. If omitted, the linker will throw a bunch of warnings later: - -.. code-block:: bash - - export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/\ - MacOSX.platform/Developer/SDKs/MacOSX.sdk - -If building the info module or with graphical user interface, get the Qt -binaries in your Path for CMake to determine its configuration: - -.. code-block:: bash - - export PATH="/usr/local/opt/qt@5/bin:$PATH" - -Homebrew installs all the software under /usr/local. Thus we have to tell cmake -where to find Python. Also the Python headers and libraries are not located as -they are on Linux and hence they must be specified too. To get rid of a ton of -compilation warnings from third party software, we add some dedicated C flags: - -.. code-block:: bash - - cmake . -DPython_INCLUDE_DIRS=/usr/local/opt/python@3.9/Frameworks/\ - Python.framework/Versions/Current/include/python3.9/ \ - -DPython_LIBRARIES=/usr/local/opt/python@3.9/Frameworks/\ - Python.framework/Versions/Current/lib/libpython3.9.dylib \ - -DPython_ROOT_DIR=/usr/local/opt/python@3.9/ \ - -DBOOST_ROOT=/usr/local \ - -DSYS_ROOT=/usr/local \ - -DOPTIMIZE=ON \ - -DCMAKE_C_FLAGS="-isystem /Applications/Xcode.app/Contents/\ - Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/\ - Library/Frameworks/OpenGL.framework/Headers/ -isystem /usr/local/opt/\ - qt@5/lib/QtCore.framework/Headers/ -isystem /usr/local/opt/qt@5/lib/\ - QtWidgets.framework/Headers/ -isystem /Applications/Xcode.app/\ - Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/\ - MacOSX.sdk/System/Library/Frameworks/Security.framework/ \ - -isystem /usr/local/opt/qt@5/lib/QtGui.framework/Headers/" \ - -DCMAKE_CXX_FLAGS="-isystem /Applications/Xcode.app/\ - Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/\ - System/Library/Frameworks/OpenGL.framework/Headers/ -isystem /usr/local/opt/\ - qt@5/lib/QtCore.framework/Headers/ -isystem /usr/local/opt/qt@5/lib/\ - QtWidgets.framework/Headers/ -isystem /Applications/Xcode.app/\ - Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/\ - MacOSX.sdk/System/Library/Frameworks/Security.framework/ \ - -isystem /usr/local/opt/qt@5/lib/QtGui.framework/Headers/" - Building the Project -------------------------------------------------------------------------------- -- GitLab