Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
d1787eb1
Commit
d1787eb1
authored
1 month ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
remove macOS build instructions
They are outdated and need substantial updates
parent
0157853b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/doc/install.rst
+0
-71
0 additions, 71 deletions
modules/doc/install.rst
with
0 additions
and
71 deletions
modules/doc/install.rst
+
0
−
71
View file @
d1787eb1
...
...
@@ -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
--------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment