Closed ronanduddy closed 2 years ago
The error would go away if set (CMAKE_CXX_STANDARD 11)
were to be added to CMakeLists.txt
What OS were you using where that fix worked?
I'm on a Mac and I can't get the make files to work with GDAL 2.3.2
I get this error when I run make
after modifying the CMakeLists.txt
file
[ 25%] Linking CXX executable prepair
Undefined symbols for architecture x86_64:
"OGRFeature::SetGeometry(OGRGeometry const*)", referenced from:
PolygonRepair::saveToShp(OGRGeometry*, char const*) in PolygonRepair.cpp.o
"OGRGeometryFactory::createFromWkt(char const**, OGRSpatialReference*, OGRGeometry**)", referenced from:
OGRGeometryFactory::createFromWkt(char**, OGRSpatialReference*, OGRGeometry**) in prepair.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [prepair] Error 1
make[1]: *** [CMakeFiles/prepair.dir/all] Error 2
make: *** [all] Error 2
Hi @violetaria, it was on macOS High Sierra that I was able to do this.. however I've now upgraded to Mojave and I'm getting an error when running make
after modifying the CMakeLists.txt
now too.
I'm sure there's someone out there with the c/c++ know-how to get this running with GDAL 2.3.x
solved with v2
Hi there,
Is it known whether or not prepair supports GDAL 2.3.0 which uses C++11?
After running
make
I get the following error:Cheers