You can pass additional parameters to the make command to alter the compilation process ( e.g., a CC option can pick a compiler installed on your computer). The process is documented in the makefile and involves editing the xercesSo and headersPath variables for your different settings. You either have to install it as specified above or edit the makefile to recognize your custom installation. If the command-line compile does not work, the most likely explanation is a problem with the xerces installation. If you prefer to install and use gcc change the SYSTEM=mac-clang lines to SYSTEM=mac instead. The above commands assume you have installed the clang-mp compiler. You can use an additional make install command to copy each compiled executable to your ~/bin folder if desired. The -j 8 option compiles in parallel where the number is number of available cores on your computer.Īll source code will be compiled and the executables will be installed in nairn-mpm-fea/NairnMPM/input or nairn-mpm-fea/NairnFEA/input, respectively. It also possible to compile on MacOS X using a command line approach (after installing XCode and command line tools and after installing xerces and its header files as explained above making sure they are in the specified default locations). The only reason to repeat it is when a new xerces version is available and/or the project requires a new version for compatibility. When working with nairn-mpm-fea on a new Mac, the xerces installation only needs to be done once.It requires sudo for you to provide your administrator password needed to authenticate installation and the default location (which is /usr/local). The final install command after make is done, installs both the library and the header files at the default locations listed above. These commands make the library (but not the unneeded xerces examples). When the configuration is done, use the following commands:.To determine your chips, choose "About This Mac" from the Apple menu. Where the provided arch options (or architectures) are for Intel chips ( x86_64) or the new Silcon M1 chips ( arm64) you can pick one for your computer or include both to have a "fat" binary with both architectures. Open Terminal app and navigate to the xerces folder expanded from the downloaded file.First install XCode and command line tools.Xerces source code from the Apache Software Foundation web site and then building and installing xerces with the following steps: This libraries can be obtained by downloading the The nairn-mpm-fea project needs access to xerces 3.0 or newer. These can be changed if needed by editing the project and target settings. These compiling instructions assume they are installed in the default locations for MacOS X or at:įor the header files. To fix this problem edit both the project and target settings and under the "Architectures" section, set the "Architectures" option to match the architecture you used when installing xerces or recompile xerces if needed.īefore you can compile and run the project, however, you will need an installed version of the xerces library and a copy of the xerces header files. If a linking error occurs, you might have conflicting architectures between the XCode settings and the xerces library you installed. Choose build and they will compile and be saved in XCode's derived data folder.Select the target to compile - either NairnMPM or NairnFEA.Once xerces is installed, open the NairnMPM.xcodeproj to compile the code by: This project is called NairnMPM, but it includes all MPM and FEA source code in two targets named NairnMPM and NairnFEA. Nairn-mpm-fea/Common/Projects/NairnMPM.xcodeproj The preferred method is to use XCode (but first you must install Xcode, install command line tools, and get a new compiler). Most development of NairnMPM and NairnFEA is done in MacOS X and thus compiling on MacOS X is easy. 4.4 Possible Changes Needed After Updating MacOS or XCode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |