![]() RSTT’s Python interface is distributed in a precompiled module (see Downloads), but if you want or need to compile it from source, yourself, the Makefiles have been designed so that you need only compile the minimum amount of code necessary to use RSTT with your language of choice. RSTT is developed in C++, but it also has interfaces in C, Fortran, Java, and Python. The easiest way to satisfy these dependencies on Linux is, depending on your distro and package manager, by running one of these sets of commands in a termal window: apt Once you have the Xcode app installed, you can install the Xcode Command Line Tools by opening a Terminal window and typing: $ xcode-select -install Make sure to fully open the app to finish installation of dependencies after you install the main program. You can install the Xcode app either through the App Store or Apple Developer. In the latest versions of MacOS, you will also need to have installed the latest Xcode and Xcode Command Line Tools available for your OS version. $ python3 -m pip install -user pybind11 sphinx sphinx-autodoc-typehints Or, If you are having trouble with installing things with pip due to disk/folder permissions, try adding -user to the pip flags in order to install modules for the local user. $ python3 -m pip install pybind11 sphinx sphinx-autodoc-typehints NOTE: You can also install pybind11, Sphinx, and related modules directly through pip. Following that, you can install the necessary dependencies by running these commands in a terminal window: $ brew update $ brew install gcc gfortran openjdk doxygen python3 pybind11 sphinx-doc $ python3 -m pip install sphinx-autodoc-typehints The easiest way to satisfy these dependencies on a Mac is to install the Homebrew package manager. Softwareīuild GeoTess and core RSTT libraries and testsīuild documentation for C++, C, and Fortran code The version numbers listed are those used and tested in development. If that fails, they will fall back to searching the path provided in the above variables, if set, in order.īelow is a list of packages and software required to build RSTT from source. In both the Java and Python interfaces, RSTT will first attempt to load the appropriate libraries through the system paths. If you are having difficulty with strange errors related to paths during compilation, try and temporarily remove any remnants of past RSTT versions in environment variables such as $PATH, $LD_LIBRARY_PATH, $DYLD_LIBRARY_PATH, $DYLD_FALLBACK_LIBRARY_PATH, and $SLBM_ROOT or $SLBM_HOME.Īfter compiling, when writing your own codes that utilize the latest RSTT libraries, you may find it useful to set one of the following environmental variables to the root directory of RSTT: During the compilation process, the Makefiles will point to the correct library paths within the default directory structure. In RSTT v3.2.0, no paths should need to be specified in any environment variables to compile and run. This will be addressed in the next release, but in the meantime these errors may be temporarily resolved by adding " -std=c++11" to the CXXFLAGS in each Makefile where it is present. Compiling errors on latest MacOS Changes to GCC on the latest versions of MacOS have resulted in compiling errors on RSTT v3.2.0.
0 Comments
Leave a Reply. |