Skip to content
Snippets Groups Projects
Commit a52cb577 authored by Adam Nyberg's avatar Adam Nyberg
Browse files

README updated with new build instructions

parent ef65c699
No related branches found
No related tags found
No related merge requests found
...@@ -23,42 +23,46 @@ These values are adjustable within the code and can be fine-tuned based on desir ...@@ -23,42 +23,46 @@ These values are adjustable within the code and can be fine-tuned based on desir
* **CUDA Toolkit** – for CUDA language support, GPU parallelization, and CUDA/OpenGL interoperability * **CUDA Toolkit** – for CUDA language support, GPU parallelization, and CUDA/OpenGL interoperability
* **GLEW** – for OpenGL Extension Wrangler Library * **GLEW** – for OpenGL Extension Wrangler Library
* **freeGLUT** – for OpenGL windowing and event handling * **GLFW**
* **GLM** – for vector and matrix math operations in OpenGL
* **Thrust** – for high-performance parallel algorithms (comes with the CUDA Toolkit) * **Thrust** – for high-performance parallel algorithms (comes with the CUDA Toolkit)
---
### Build Instructions ## Build Instructions for Ubuntu
1. **Install Dependencies** ### **Dependencies**
Install all required dependencies using the following command:
```bash
sudo apt update && sudo apt install -y build-essential cmake libglew-dev libglfw3-dev mesa-common-dev libx11-dev
```
On Ubuntu, you can install the required libraries using: - **CUDA Toolkit**: Download and install [NVIDIA CUDA Toolkit](https://developer.nvidia.com/cuda-downloads).
---
### **Building the Project**
1. Clone the repository and navigate to the project directory:
```bash ```bash
sudo apt update git clone https://github.com/your_username/your_project.git
sudo apt install -y build-essential cmake libglew-dev freeglut3-dev libglm-dev cd your_project
``` ```
Install the **CUDA Toolkit** from NVIDIA’s official site [here](https://developer.nvidia.com/cuda-toolkit), which includes both CUDA and Thrust libraries.
2. **Build the Project with CMake**
Navigate to the project src folder and create a `build` folder: 2. Create a build directory:
```bash ```bash
mkdir build mkdir build
cd build cd build
``` ```
Run CMake to configure and generate the makefiles, then compile the code: 3. Configure and build the project:
```bash ```bash
cmake .. cmake ..
make make
``` ```
This will produce an executable named `cuda_opengl_integration` in the `build` directory. ---
### **Running the Application**
## Run Run the application from the build directory:
```bash
From the `build` directory, run the executable: ./fluidSimulator
```bash ```
./cuda_opengl_integration \ No newline at end of file
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment