This application
License | Environment | Compiler Support | Language | Editor |
---|---|---|---|---|
Follow the steps below to set up your development environment and compile the project.
Before committing, configure your Git username and email for this repository:
git config --local user.name "Your Name"
git config --local user.email "your.email@example.com"
This ensures Git commits inside the container will use your name and email.
ℹ️ If you're using a Dev Container, you may also bind your local
.gitconfig
into the container so it applies globally inside the container as well.
In your .devcontainer/devcontainer.json
, include the following under mounts
:
{
"mounts": [
"source=${localEnv:USERPROFILE}/.gitconfig,target=/root/.gitconfig,type=bind,consistency=cached"
]
}
This allows Git inside the container to inherit your global Git config (e.g., aliases, signing, default email).
Clone the repository to your local machine:
git clone https://github.com/ysy307/FTDSS.git
Use VS Code and Dev Containers to launch the development environment.
FTDSS
folder in VS Code Ctrl+Shift+P
(or Cmd+Shift+P
on macOS) to open the Command Palette Dev Containers: Reopen in Container
Run the provided scripts to install the required external libraries:
# Grant execute permissions
chmod +x Scripts/Install_VTKFortran.sh
chmod +x Scripts/Install_VTK_CXX.sh
chmod +x Scripts/Install_stdlib.sh
chmod +x Scripts/Install_JsonFortran.sh
# Execute the scripts
./Scripts/Install_VTKFortran.sh
./Scripts/Install_VTK_CXX.sh
./Scripts/Install_stdlib.sh
./Scripts/Install_JsonFortran.sh
cmake -S . -B CMakeBuild -DBUILD_APP=test -DCMAKE_BUILD_TYPE=Release -G "Ninja"
cmake --build CMakeBuild --parallel
Run the compiled test application:
./bin/test