Comments (3)
Solved.
mea culpa
- Remove comments made on CMakeLists.txt
- Invoke
mkdir build && cd build && cmake cmake -DGDAL_LIBRARY_DIR=/usr/lib/ -DGDAL_LIBRARY=/usr/lib/libgdal.so -DGDAL_INCLUDE_DIR=/usr/include/gdal/ .. && make instal
and then
cp src/libctb.so /usr/lib
from cesium-terrain-builder.
My history (from a new Ubuntu install):
add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
apt-get update
apt-get upgrade
apt-get install gdal-bin python-gdal python3-gdal
gdalinfo --version
$ GDAL 2.2.1, released 2017/06/23
wget https://github.com/geo-data/cesium-terrain-builder/archive/v0.4.1.tar.gz
tar -xvf v0.4.1.tar.gz
cd cesium-terrain-builder-0.4.1/
mkdir build && cd build && cmake .. && make install
(oops! Missing cmake)
apt-get install cmake
mkdir build && cd build && cmake .. && make install
(oops... can't find compiler)
apt-get install build-essential
mkdir build && cd build && cmake .. && make install
(oops.. Could NOT find GDAL (missing: GDAL_LIBRARY GDAL_INCLUDE_DIR)
vim CMakeLists.txt
(The Thor method! comment what is doing wrong! )
# We need GDAL
#find_package(GDAL)
#if(NOT GDAL_FOUND)
# message(FATAL_ERROR "The GDAL library cannot be found on the system")
#endif()
include_directories("/usr/lib") <<<--------- My GDAL location by force!
mkdir build && cd build && cmake .. && make install
( oops... The GDAL version must be one that implements RFC 46 (GDAL/OGR unification))
apt-get install -y gdal-bin python-gdal libgdal-dev
mkdir build && cd build && cmake .. && make install
( oops !! DAMN IT ! fatal error: gdalwarper.h: No such file or directory )
Jesus !! I'm almost quit !
from cesium-terrain-builder.
For anyone else, adding this to the CMakeLists.txt helps debugging immensely
MESSAGE( STATUS "GDAL_LIBRARY_DIR: " ${GDAL_LIBRARY_DIR})
MESSAGE( STATUS "GDAL_INCLUDE_DIR: " ${GDAL_INCLUDE_DIR})
MESSAGE( STATUS "GDAL_LIBRARY: " ${GDAL_LIBRARY})
MESSAGE( STATUS "GDAL_VERSION: " ${GDAL_VERSION})
Also setting the GDAL_CONFIG only should set all the other variables for you.
cmake -DGDAL_CONFIG=/usr/local/Cellar/gdal/2.4.4/bin/gdal-config ../.
from cesium-terrain-builder.
Related Issues (20)
- Error tiling with output format set to Leveller
- Can't change terrain tile size from 65x65 to 256x256
- GDALOpenEx - not found Windows build HOT 1
- ctb.dll not found Windows HOT 2
- Trouble building with CMAKE: GDAL not found
- ERROR 1: PROJ: webmerc: Invalid latitude HOT 1
- Resume is not a valid parameter anymore
- quantized-mesh tiles has no “metadata” extension HOT 5
- empty tiles
- undefined reference to `GDALCreateOverviewDataset(GDALDataset*, int, int)' HOT 10
- why cesium can not display the terrain? HOT 5
- ctb-tile gets killed after "90..." HOT 4
- The command line ran successfully, but was not generated file "layer.json"? HOT 1
- Error while running make install HOT 4
- Cesium Terrain generated using DSM is way higher than the base map
- Cesium is not rendered after reaching level 4 terrain HOT 1
- Can not add the terrain data in cesium HOT 17
- Possibility to merge several regions with different resolutions? HOT 1
- Tile coordinates are not consistent with Google or TMS standard
- @alienatorZ , @aberenyi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cesium-terrain-builder.