isciences / exactextract

Fast and accurate raster zonal statistics
Apache License 2.0
246 stars 32 forks source link

Install/Make Error on Linux #36

Closed njdepsky closed 1 year ago

njdepsky commented 1 year ago

Hi, I followed the instructions to install and build for Linux as follows:

git clone https://github.com/isciences/exactextract
cd exactextract
mkdir cmake-build-release
cd cmake-build-release
cmake -DCMAKE_BUILD_TYPE=Release ..
make

But upon running make I encounter a series of these errors:

Building CXX object CMakeFiles/catch_tests.dir/test/test_box.cpp.o
/home/userdir/exactextract/test/test_box.cpp:7:10: error: expected constructor, destructor, or type conversion before ‘(’ token
 TEST_CASE("Box dimensions are calculated correctly", "[box]" ) {

/home/njdepsky/exactextract/test/test_box.cpp:15:10: error: expected constructor, destructor, or type conversion before ‘(’ token
 TEST_CASE("Coordinate sides are correctly identified", "[box]") {

etc...
dbaston commented 1 year ago

What is the output from cmake ?

njdepsky commented 1 year ago

Just resolved it - was due to some conflicting dependencies in the virtual env I'd set up. The issue resolved when I set up a new environment and ran this as the first install. Thanks!