isciences / exactextractr

R package for fast and accurate raster zonal statistics
https://isciences.gitlab.io/exactextractr/
281 stars 26 forks source link

Error during install using devtools on Windows machine #9

Closed laceymason closed 5 years ago

laceymason commented 5 years ago

I keep getting the error below when trying to install this package on my Windows machine. I have installed the rgeos and devtools packages. Any advice is appreciated!

`> install_github('isciences/exactextractr') Downloading GitHub repo isciences/exactextractr@master

checking for file 'C:\Users\masonl\AppData\Local\Temp\1\RtmpSwJxKY\remotes8943ce5204\isciences-exactextractr-37c2f0f/DESCRIPTION' ...

checking for file 'C:\Users\masonl\AppData\Local\Temp\1\RtmpSwJxKY\remotes8943ce5204\isciences-exactextractr-37c2f0f/DESCRIPTION' ...

√ checking for file 'C:\Users\masonl\AppData\Local\Temp\1\RtmpSwJxKY\remotes8943ce5204\isciences-exactextractr-37c2f0f/DESCRIPTION' (642ms)

√ checking DESCRIPTION meta-information

Warning: Warning: file 'exactextractr/cleanup' did not have execute permissions: corrected

Warning:

Warning: file 'exactextractr/configure' did not have execute permissions: corrected

** libs

*** arch - i386 rm -f exactextractr.dll RcppExports.o exact_extract.o exactextract/src/cell.o exactextract/src/geos_utils.o exactextract/src/floodfill.o exactextract/src/box.o exactextract/src/area.o exactextract/src/side.o exactextract/src/traversal_areas.o exactextract/src/extent.o exactextract/src/perimeter_distance.o exactextract/src/traversal.o exactextract/src/raster_cell_intersection.o exactextract/src/coordinate.o mkdir -p ../inst "C:/Users/masonl/DOCUME~1/R/R-35~1.2/bin/i386/Rscript.exe" --vanilla "../tools/winlibs.R" 2.2.3 trying URL 'https://github.com/rwinlib/gdal2/archive/v2.2.3.zip' Content type 'application/zip' length 44034709 bytes (42.0 MB)

downloaded 42.0 MB

C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exact_extract.cpp -o exact_extract.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/cell.cpp -o exactextract/src/cell.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/geos_utils.cpp -o exactextract/src/geos_utils.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/floodfill.cpp -o exactextract/src/floodfill.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/box.cpp -o exactextract/src/box.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/area.cpp -o exactextract/src/area.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/side.cpp -o exactextract/src/side.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/traversal_areas.cpp -o exactextract/src/traversal_areas.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/extent.cpp -o exactextract/src/extent.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/perimeter_distance.cpp -o exactextract/src/perimeter_distance.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/traversal.cpp -o exactextract/src/traversal.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/raster_cell_intersection.cpp -o exactextract/src/raster_cell_intersection.o C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/Users/masonl/DOCUME~1/R/R-35~1.2/include" -DNDEBUG -I"C:/Users/masonl/Documents/R/R-3.5.2/library/Rcpp/include" -std=c++14 -I../windows/gdal2-2.2.3/include/geos -O2 -Wall -mtune=generic -c exactextract/src/coordinate.cpp -o exactextract/src/coordinate.o C:/RBuildTools/3.5/mingw_32/bin/g++ -shared -s -static-libgcc -o exactextractr.dll tmp.def RcppExports.o exact_extract.o exactextract/src/cell.o exactextract/src/geos_utils.o exactextract/src/floodfill.o exactextract/src/box.o exactextract/src/area.o exactextract/src/side.o exactextract/src/traversal_areas.o exactextract/src/extent.o exactextract/src/perimeter_distance.o exactextract/src/traversal.o exactextract/src/raster_cell_intersection.o exactextract/src/coordinate.o -lgeos_c -lgeos -L../windows/gdal2-2.2.3/lib-4.9.3/i386 -LC:/Users/masonl/DOCUME~1/R/R-35~1.2/bin/i386 -lR C:/RBuildTools/3.5/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lgeos_c C:/RBuildTools/3.5/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lgeos collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'exactextractr'

dbaston commented 5 years ago

Thank you for the report. I've updated exactextractr with a fix in 44bc2690f248bc8bcb.

laceymason commented 5 years ago

Thank you!