Skip to content

Commit 4a1a0cc

Browse files
committed
Merge branch 'main' into dev
2 parents 8d47534 + 533b940 commit 4a1a0cc

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

.github/workflows/test-build-gcc.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
##############################################################################
2+
# GitHub Actions Workflow to test building AdTree with GCC
3+
#
4+
# Copyright (C) 2022 Liangliang Nan <liangliang.nan@gmail.com>
5+
#
6+
# Licensed under GNU LGPL.3, see LICENCE file
7+
##############################################################################
8+
name: test-build-gcc
9+
10+
on: [push, pull_request]
11+
12+
jobs:
13+
build:
14+
name: ${{ matrix.compilers }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
compilers: [g++-7, g++-8, g++-9, g++-10, g++-11]
19+
runs-on: ubuntu-20.04
20+
steps:
21+
- uses: actions/checkout@v1
22+
- run: sudo apt-get update || true;
23+
sudo apt-get install ${{ matrix.compilers }};
24+
sudo apt-get install build-essential libglu1-mesa-dev freeglut3-dev mesa-common-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libboost-all-dev;
25+
rm -rf Release;
26+
mkdir Release;
27+
cd Release;
28+
cmake -DCMAKE_CXX_COMPILER=${{ matrix.compilers }} -DCMAKE_BUILD_TYPE=Release ..;
29+
make;
30+

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
AdTree implements the tree reconstruction method described in the following [paper](https://3d.bk.tudelft.nl/liangliang/publications/2019/adtree/AdTree_RS-2019.pdf):
8-
```c++
8+
```
99
Shenglan Du, Roderik Lindenbergh, Hugo Ledoux, Jantien Stoter, and Liangliang Nan.
1010
AdTree: Accurate, Detailed, and Automatic Modelling of Laser-Scanned Trees.
1111
Remote Sensing. 2019, 11(18), 2074.
@@ -27,7 +27,7 @@ compatible with the latest version.
2727
You need [CMake](https://cmake.org/download/) and of course a compiler to build AdTree:
2828

2929
- CMake `>= 3.1`
30-
- a compiler that supports `>= C++17`
30+
- a compiler that supports `>= C++11`
3131

3232
AdTree has been tested on macOS (Xcode >= 8), Windows (MSVC >=2015), and Linux (GCC >= 4.8, Clang >= 3.3). Machines
3333
nowadays typically provide higher [supports](https://en.cppreference.com/w/cpp/compiler_support), so you should be
@@ -42,19 +42,19 @@ of AdTree. Then you should have obtained a usable project and just build. I reco
4242
- Option 3: Use CMake to generate Makefiles and then build.
4343
- on Linux or macOS:
4444
```
45-
$ cd adtree
45+
$ cd path-to-root-dir-of-AdTree
4646
$ mkdir Release
4747
$ cd Release
4848
$ cmake -DCMAKE_BUILD_TYPE=Release ..
4949
$ make
5050
```
51-
- on Windows with Microsoft Visual Studio:
51+
- on Windows with Microsoft Visual Studio, use `x64 Native Tools Command Prompt for VS XXXX` (don't use the x86 one), then
5252
```
53-
$ cd adtree
53+
$ cd path-to-root-dir-of-AdTree
5454
$ mkdir Release
5555
$ cd Release
56-
$ cmake -DCMAKE_BUILD_TYPE=Release ..
57-
$ msbuild adtree.sln /p:Configuration=Release
56+
$ cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ..
57+
$ nmake
5858
```
5959
6060
Don't have any experience with C/C++ programming? Have a look at [How to build AdTree step by step](./How_to_build.md).

0 commit comments

Comments
 (0)