-
Notifications
You must be signed in to change notification settings - Fork 348
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
Which GDAL version for compiling #15
Comments
Latest ctb version has a fix for a similar issue. |
I have used now the latest ctp version and I pass that error. However now it can't find the GDALOpenEx function. -- The C compiler identification is GNU |
Is /usr/local/lib/libgdal.so the one you installed or and older one?
What parameters did you pass to cmake?
|
I have installed GDAL from source yesterday (see my first post). This is the list (ls) of the file above: lrwxrwxrwx 1 root root 17 Feb 15 23:51 /usr/local/lib/libgdal.so -> libgdal.so.1.18.0 By installing GDAL I did not pass any parameters (./configure), neither did I by CTP (cmake). |
I'm having similar issues tring to build the latest git clone of cesium-terrain-builder. On my system i have gdal installed from its git-svn mirror My gdal version :
I installed gdal on a non standard prefix, this is the results of
In the cesium-terrain-builder cmake configuration i have the following :
But the cmake configure ends with the following error :
In my /lib
that's my gdal.pc
|
i had to remove the check and ctb built fine without errors/worning. I'll try to generate tiles and see if any trouble (i'm using gdal from svn trubk) |
Solved with |
As best as I can tell, this only compiles with GDAL 2.1.x, because of the overview function described in #51 . Would be great if we can figure out how to get it to compile with GDAL 2.2.x instead. |
So it seems that There's some relevant discussion in rasterio/rasterio#1161 . Still trying to go through this. |
I'm facing the same problem:
this happen with gdal trunk as well as with gdal installed from the ubuntu-gis repository:
|
To fix the build, just remove the extra argument. Not sure it will affect the library behaviour... in
testing now. |
Hi, I had the same problem, @epifanio is right, I removed the extra argument and CTB runs fine |
Testing the change, |
Just now I am changing the code to create the Json metadata file when the tile set is created first time. It avoids to execute CTB twice. |
@ahuarte47 thanks! Quick OT question: To test the quantized-mesh output before the PR will be merged, is https://github.com/ahuarte47/cesium-terrain-builder.git [branch:master-quantized-mesh] the right repo? |
Yes, direct link here |
Hi @epifanio, I updated the PR to can build with different versions of GDAL+GDALCreateOverviewDataset. |
Thanks @ahuarte47 - Merged the PR on my fork. Tested, it builds with gdal maser and tiles are generated with no errors. I need to test this on underwater surfaces. How do you serve the tiles to cesium? Is cesium-terrain-server master what I need to use? |
It is an option), but you can directly publish the directory in a Tomcat, Wildfly, IIS, or so on. Cesium can fetch the tiles via REST, you could read about it in TerrainCesiumProvider documentation. |
@ahuarte47 continuing the discussion on #55 |
ok |
@markerikson - moved here. I'm having trouble building since updating to GDAL 2.2.2, since it's not exporting the GDALCreateOverviewDataset function. Is there a fix? |
My workaround for now was to just build GDAL 2.1.4 myself, and compile CTB against that. |
My workaround was to include the gdaloverviewdataset.cpp source file in GDALTiler.cpp just before "getOverviewDataset" declaration. I build with GDAL 2.3.x in Windows.
But obviously you have to download the GDAL sources |
Okay, thanks to the fix in #55 to allow for 2.1 support, I was able to build using the 2.1.3 GDAL library from the ubuntugis stable ppa. Thanks! |
I was using
I get
with
Build log:
So, as I understand I need to install some 2.1.* gdal.
I have tried 2.1.0:
But it still give an error:
|
This comment could help you |
Include #include "gdaloverviewdataset.cpp" just before of |
Seems it works.
|
Thanks a lot! |
Hi, I have pulled GDAL from SVN (https://svn.osgeo.org/gdal/trunk/gdal) and installed it by ./configure, make, make install (I did not choose any extra configure parameters). The installed version is:
GDAL 2.0.0dev, released 2014/04/16
But the cmake of CTB still throws an error:
The GDAL version must be one that implements RFC 46 (GDAL/OGR unification)
i.e. >= 2.0.0
Which GDAL version should I install?
The text was updated successfully, but these errors were encountered: