Giter Club home page Giter Club logo

Comments (3)

icemagno avatar icemagno commented on August 18, 2024 1

Solved.

mea culpa

  1. Remove comments made on CMakeLists.txt
  2. 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.

icemagno avatar icemagno commented on August 18, 2024

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.

nmccready avatar nmccready commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.