-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error in geospatial/src/Dem.cc #330
Comments
Obvious solution: diff --git a/geospatial/src/Dem.cc b/geospatial/src/Dem.cc
index f3e3d1e..7d75b12 100644
--- a/geospatial/src/Dem.cc
+++ b/geospatial/src/Dem.cc
@@ -261,7 +261,7 @@ bool Dem::GeoReference(double _x, double _y,
// Transform the terrain's coordinate system to WGS84
const char *importString
= strdup(this->dataPtr->dataSet->GetProjectionRef());
- sourceCs.importFromWkt(&importString);
+ sourceCs.importFromWkt((char**)&importString);
targetCs.SetWellKnownGeogCS("WGS84");
cT = OGRCreateCoordinateTransformation(&sourceCs, &targetCs);
if (nullptr == cT) |
Regarding the lack of GDAL causing ign-rendering7 not to build, this is the error:
|
the so the failures on 18.04 are expected. Perhaps we should improve the messaging about which Ubuntu versions are supported? |
What @scpeters said is right. Let me know how we can make this clearer. We've announced the supported platforms on this post, which links to this issue: We've also explicitly disabled Bionic CI on the I'll close this issue, but please reopen if the problem comes up in a supported platform. |
Environment
Source, main. Commit ff5970e
g++ --version
Trying to run latest ign-rendering7 fails because ign-common5's CMake tries to pull something-geospatial.cmake
But that won't exist unless GDAL dependency is installed.
So I installed GDAL, rebuilt from scratch and met with this gem:
Description
Steps to reproduce
colcon build --cmake-args -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Debug -DBUILD_DOCS=OFF --merge-install
NOTE: Debug is the build type.Using
libgdal-dev 2.2.3+dfsg-2
The text was updated successfully, but these errors were encountered: