Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ statisticians with modest computational resources.

## Installation

> Note: Installation requires at least **CMake of version 3.2**. to build ExaGeoStatCPP.
### Requirements
To build and run this software, you will need:

1. [CMake](https://cmake.org/download/) (version 3.2 or higher)
2. [wget](https://www.gnu.org/software/wget/)
3. **gcc** and **g++** compilers
4. **autoconf** and **automake**
5. [libtool](https://www.gnu.org/software/libtool/)
6. [R](https://cran.r-project.org/bin/windows/base/) (only if you plan on using the R functionality)

### C++ source code installation
To install the `ExaGeoStat` project locally, run the following commands in your terminal:
Expand Down
14 changes: 6 additions & 8 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ BLUE='\033[0;34m'
NC='\033[0m'

INSTALL_PREFIX=$PWD/installdir/_deps
BASE_DIR=$PWD

# Function to install CMake from source
install_cmake() {
Expand All @@ -36,12 +37,11 @@ install_cmake() {
cd cmake-3.28.1 || exit 1

# Configure, build, and install CMake to the specified location
./bootstrap --prefix="$INSTALL_PREFIX" --parallel=2 -- -DCMAKE_USE_OPENSSL=OFF
./bootstrap --prefix="$INSTALL_PREFIX/CMAKE" --parallel=2 -- -DCMAKE_USE_OPENSSL=OFF
make -j 2
sudo make install

make install
# Clean up
cd "$temp_dir" || exit 1
cd "$BASE_DIR" || exit 1
rm -rf "$temp_dir"
}

Expand Down Expand Up @@ -226,10 +226,8 @@ elif [ -x "/Applications/CMake.app/Contents/bin/cmake" ]; then
cmake_command_bin="${cmake_install_dir}/cmake"
else
echo "Installing CMake from source"
mkdir "${ABSOLUTE_PATH}/inst/_deps/"
install_dir="${ABSOLUTE_PATH}/inst/_deps/"
install_cmake "$install_dir"
cmake_command_bin="${ABSOLUTE_PATH}/inst/_deps/bin/cmake"
install_cmake
cmake_command_bin="${INSTALL_PREFIX}/CMAKE/bin/cmake"
fi

"$cmake_command_bin" "$DEVELOPER_WARNINGS" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
Expand Down