[gdal-dev] Build difficulties (Ubuntu 20.04)

Even Rouault even.rouault at spatialys.com
Mon Jan 23 15:10:30 PST 2023


Anja,

the minimum will be to install PROJ with:

apt-get install libproj-dev

For a build with nearly all open source dependencies, you can find the 
list to install in 
https://github.com/OSGeo/gdal/blob/5db56957dd9b5d00098f5ac8abb75a3c756cc0aa/.github/workflows/cmake_builds.yml#L57

You can also play with the ready-made Docker images listed at 
https://github.com/OSGeo/gdal/tree/master/docker

Even


Le 24/01/2023 à 00:05, Anja Sheppard a écrit :
> Hello gdal community--
>
> I am new to this tool, and am trying to build it on Ubuntu 20.04. I 
> don't use conda, so I'm running into problems with the dependencies. I 
> downloaded the current release .tar.gz file from 
> https://gdal.org/download.html and then unpacked it. I then followed 
> the instructions on the build help website which I found through the 
> readme. I ran:
>
> *$ mkdir build*
> *$ cd build*
> *$ cmake ..*
>
> And then the result was the output pasted at the end of this email.
>
> What are the dependencies that I can just install with apt? I don't 
> use conda or any of the other package managers listed in the readme. 
> Any help is appreciated.
>
> Alternatively, if anyone has any other tools that can be used for 
> converting .DAT to .IMG or .JPG files, I would be very eager to hear 
> more. I have not been able to successfully view a .DAT image from the 
> NASA PDS website as of yet.
>
> Thanks,
>
> Anja Sheppard
>
> *-- The C compiler identification is GNU 9.4.0
> -- The CXX compiler identification is GNU 9.4.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Performing Test test_sse
> -- Performing Test test_sse - Success
> -- Looking for C++ include xmmintrin.h
> -- Looking for C++ include xmmintrin.h - found
> -- Performing Test test_sse2
> -- Performing Test test_sse2 - Success
> -- Looking for C++ include emmintrin.h
> -- Looking for C++ include emmintrin.h - found
> -- Performing Test test_ssse3
> -- Performing Test test_ssse3 - Success
> -- Looking for C++ include tmmintrin.h
> -- Looking for C++ include tmmintrin.h - found
> -- Performing Test test_sse4.1
> -- Performing Test test_sse4.1 - Success
> -- Looking for C++ include smmintrin.h
> -- Looking for C++ include smmintrin.h - found
> -- Performing Test test_avx
> -- Performing Test test_avx - Success
> -- Looking for C++ include immintrin.h
> -- Looking for C++ include immintrin.h - found
> -- Performing Test test_avx2
> -- Performing Test test_avx2 - Success
> -- Found Python: /usr/bin/python3.8 (found suitable version "3.8.10", 
> minimum required is "3.6") found components: Interpreter Development 
> NumPy
> -- Performing Test HAVE_WFLAG_ALL
> -- Performing Test HAVE_WFLAG_ALL - Success
> -- Performing Test HAVE_WFLAG_EXTRA
> -- Performing Test HAVE_WFLAG_EXTRA - Success
> -- Performing Test HAVE_WFLAG_INIT_SELF
> -- Performing Test HAVE_WFLAG_INIT_SELF - Success
> -- Performing Test HAVE_WFLAG_UNUSED_PARAMETER
> -- Performing Test HAVE_WFLAG_UNUSED_PARAMETER - Success
> -- Performing Test HAVE_WFLAG_MISSING_PROTOTYPES
> -- Performing Test HAVE_WFLAG_MISSING_PROTOTYPES - Success
> -- Performing Test HAVE_WFLAG_MISSING_DECLARATIONS
> -- Performing Test HAVE_WFLAG_MISSING_DECLARATIONS - Success
> -- Performing Test HAVE_WFLAG_SHORTEN_64_TO_32
> -- Performing Test HAVE_WFLAG_SHORTEN_64_TO_32 - Failed
> -- Performing Test HAVE_WFLAG_LOGICAL_OP
> -- Performing Test HAVE_WFLAG_LOGICAL_OP - Success
> -- Performing Test HAVE_WFLAG_SHADOW
> -- Performing Test HAVE_WFLAG_SHADOW - Success
> -- Performing Test HAVE_WFLAG_SHADOW_FIELD
> -- Performing Test HAVE_WFLAG_SHADOW_FIELD - Failed
> -- Performing Test HAVE_WFLAG_MISSING_INCLUDE_DIRS
> -- Performing Test HAVE_WFLAG_MISSING_INCLUDE_DIRS - Success
> -- Performing Test HAVE_WFLAG_FORMAT_SECURITY
> -- Performing Test HAVE_WFLAG_FORMAT_SECURITY - Success
> -- Performing Test HAVE_WFLAG_ERROR_VLA
> -- Performing Test HAVE_WFLAG_ERROR_VLA - Success
> -- Performing Test HAVE_WFLAG_NO_CLOBBERED
> -- Performing Test HAVE_WFLAG_NO_CLOBBERED - Success
> -- Performing Test HAVE_WFLAG_DATE_TIME
> -- Performing Test HAVE_WFLAG_DATE_TIME - Success
> -- Performing Test HAVE_WFLAG_NULL_DEREFERENCE
> -- Performing Test HAVE_WFLAG_NULL_DEREFERENCE - Success
> -- Performing Test HAVE_WFLAG_DUPLICATE_COND
> -- Performing Test HAVE_WFLAG_DUPLICATE_COND - Failed
> -- Performing Test HAVE_WFLAG_EXTRA_SEMI
> -- Performing Test HAVE_WFLAG_EXTRA_SEMI - Success
> -- Performing Test HAVE_WFLAG_COMMA
> -- Performing Test HAVE_WFLAG_COMMA - Failed
> -- Performing Test HAVE_WFLAG_FLOAT_CONVERSION
> -- Performing Test HAVE_WFLAG_FLOAT_CONVERSION - Success
> -- Performing Test HAVE_WFLAG_DOCUMENTATION_AND_NO_DEPRECATED
> -- Performing Test HAVE_WFLAG_DOCUMENTATION_AND_NO_DEPRECATED - Failed
> -- Performing Test HAVE_WFLAG_UNUSED_PRIVATE_FIELD
> -- Performing Test HAVE_WFLAG_UNUSED_PRIVATE_FIELD - Failed
> -- Performing Test HAVE_WFLAG_NON_VIRTUAL_DTOR
> -- Performing Test HAVE_WFLAG_NON_VIRTUAL_DTOR - Success
> -- Performing Test HAVE_WFLAG_OVERLOADED_VIRTUAL
> -- Performing Test HAVE_WFLAG_OVERLOADED_VIRTUAL - Success
> -- Performing Test HAVE_WFLAG_SUGGEST_OVERRIDE
> -- Performing Test HAVE_WFLAG_SUGGEST_OVERRIDE - Success
> -- Performing Test HAVE_FLAG_NO_OPERATOR_NAMES
> -- Performing Test HAVE_FLAG_NO_OPERATOR_NAMES - Success
> -- Performing Test HAVE_GCC_WARNING_ZERO_AS_NULL_POINTER_CONSTANT
> -- Performing Test HAVE_GCC_WARNING_ZERO_AS_NULL_POINTER_CONSTANT - 
> Success
> -- Performing Test HAVE_WFLAG_OLD_STYLE_CAST
> -- Performing Test HAVE_WFLAG_OLD_STYLE_CAST - Success
> -- Performing Test HAVE_WFLAG_EFFCXX
> -- Performing Test HAVE_WFLAG_EFFCXX - Success
> -- Looking for vsnprintf
> -- Looking for vsnprintf - found
> -- Looking for getcwd
> -- Looking for getcwd - found
> -- Looking for fcntl.h
> -- Looking for fcntl.h - found
> -- Looking for unistd.h
> -- Looking for unistd.h - found
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for locale.h
> -- Looking for locale.h - found
> -- Looking for xlocale.h
> -- Looking for xlocale.h - not found
> -- Looking for direct.h
> -- Looking for direct.h - not found
> -- Looking for dlfcn.h
> -- Looking for dlfcn.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of int
> -- Check size of int - done
> -- Check size of unsigned long
> -- Check size of unsigned long - done
> -- Check size of void*
> -- Check size of void* - done
> -- Check size of size_t
> -- Check size of size_t - done
> -- Check if the system is big endian
> -- Searching 16 bit integer
> -- Check size of unsigned short
> -- Check size of unsigned short - done
> -- Using unsigned short
> -- Check if the system is big endian - little endian
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
> -- Looking for pthread_create in pthreads
> -- Looking for pthread_create in pthreads - not found
> -- Looking for pthread_create in pthread
> -- Looking for pthread_create in pthread - found
> -- Found Threads: TRUE
> -- Performing Test HAVE_PTHREAD_MUTEX_RECURSIVE
> -- Performing Test HAVE_PTHREAD_MUTEX_RECURSIVE - Success
> -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
> -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success
> -- Performing Test HAVE_PTHREAD_SPINLOCK
> -- Performing Test HAVE_PTHREAD_SPINLOCK - Success
> -- Performing Test HAVE_5ARGS_MREMAP
> -- Performing Test HAVE_5ARGS_MREMAP - Success
> -- Performing Test HAVE_PTHREAD_ATFORK
> -- Performing Test HAVE_PTHREAD_ATFORK - Success
> -- Looking for sys/stat.h
> -- Looking for sys/stat.h - found
> -- Looking for linux/fs.h
> -- Looking for linux/fs.h - found
> -- Looking for readlink
> -- Looking for readlink - found
> -- Looking for posix_spawnp
> -- Looking for posix_spawnp - found
> -- Looking for posix_memalign
> -- Looking for posix_memalign - found
> -- Looking for vfork
> -- Looking for vfork - found
> -- Looking for mmap
> -- Looking for mmap - found
> -- Looking for sigaction
> -- Looking for sigaction - found
> -- Looking for statvfs
> -- Looking for statvfs - found
> -- Looking for statvfs64
> -- Looking for statvfs64 - found
> -- Looking for lstat
> -- Looking for lstat - found
> -- Looking for getrlimit
> -- Looking for getrlimit - found
> -- Looking for RLIMIT_AS
> -- Looking for RLIMIT_AS - found
> -- Looking for ftell64
> -- Looking for ftell64 - not found
> -- Looking for ftello64
> -- Looking for ftello64 - found
> -- Looking for fseek64
> -- Looking for fseek64 - not found
> -- Looking for fseeko64
> -- Looking for fseeko64 - found
> -- Looking for stat64
> -- Looking for stat64 - found
> -- Performing Test NO_UNIX_STDIO_64
> -- Performing Test NO_UNIX_STDIO_64 - Failed
> -- Looking for fopen64
> -- Looking for fopen64 - found
> -- Check size of off_t
> -- Check size of off_t - done
> -- Looking for pread64
> -- Looking for pread64 - found
> -- Looking for ftruncate64
> -- Looking for ftruncate64 - found
> -- Performing Test HAVE_USELOCALE
> -- Performing Test HAVE_USELOCALE - Success
> -- Performing Test HAVE_HIDE_INTERNAL_SYMBOLS
> -- Performing Test HAVE_HIDE_INTERNAL_SYMBOLS - Success
> -- Performing Test HAVE_GCC_ATOMIC_BUILTINS
> -- Performing Test HAVE_GCC_ATOMIC_BUILTINS - Success
> -- Performing Test HAVE_GCC_BSWAP
> -- Performing Test HAVE_GCC_BSWAP - Success
> -- Performing Test HAVE_SC_PHYS_PAGES
> -- Performing Test HAVE_SC_PHYS_PAGES - Success
> -- Performing Test HAVE_SCHED_GETAFFINITY
> -- Performing Test HAVE_SCHED_GETAFFINITY - Success
> -- Performing Test INT128_TEST
> -- Performing Test INT128_TEST - Success
> -- checking if sprintf can be overloaded for GDAL compilation
> -- Performing Test DEPRECATE_SPRINTF
> -- Performing Test DEPRECATE_SPRINTF - Failed
> -- Looking for linux/userfaultfd.h
> -- Looking for linux/userfaultfd.h - found
> -- GDAL_VERSION          = 3.6.2
> -- GDAL_ABI_FULL_VERSION = 32.3.6.2
> -- GDAL_SOVERSION        = 32
> -- Could NOT find ODBC (missing: ODBC_LIBRARY ODBC_INCLUDE_DIR ODBCINST)
> -- Could NOT find ODBCCPP (missing: ODBCCPP_LIBRARY ODBCCPP_INCLUDE_DIR)
> -- Could NOT find MSSQL_ODBC (missing: MSSQL_ODBC_LIBRARY 
> MSSQL_ODBC_INCLUDE_DIR MSSQL_ODBC_VERSION)
> -- Could NOT find MySQL (missing: MYSQL_LIBRARY MYSQL_INCLUDE_DIR)
> -- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
> -- Performing Test Iconv_IS_BUILT_IN
> -- Performing Test Iconv_IS_BUILT_IN - Success
> -- Found Iconv: /usr/lib/x86_64-linux-gnu/libc.so
> -- Performing Test _ICONV_SECOND_ARGUMENT_IS_NOT_CONST
> -- Performing Test _ICONV_SECOND_ARGUMENT_IS_NOT_CONST - Success
> -- Performing Test ICONV_HAS_EXTRA_CHARSETS
> -- Performing Test ICONV_HAS_EXTRA_CHARSETS - Success
> -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
> -- Could NOT find EXPAT (missing: EXPAT_DIR)
> -- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version 
> "2.2.9")
> -- Failed to find XercesC (missing: XercesC_LIBRARY 
> XercesC_INCLUDE_DIR XercesC_VERSION)
> -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
> -- Could NOT find Deflate (missing: Deflate_LIBRARY Deflate_INCLUDE_DIR)
> -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder 
> in the system variable OPENSSL_ROOT_DIR (missing: 
> OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR SSL Crypto)
> -- Could NOT find CryptoPP (missing: CRYPTOPP_LIBRARY 
> CRYPTOPP_TEST_KNOWNBUG CRYPTOPP_INCLUDE_DIR)
> CMake Error at 
> /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 
> (message):
>   Could NOT find PROJ (missing: PROJ_LIBRARY PROJ_INCLUDE_DIR) 
> (Required is
>   at least version "6.0")
> Call Stack (most recent call first):
> /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 
> (_FPHSA_FAILURE_MESSAGE)
>   cmake/modules/packages/FindPROJ.cmake:57 
> (find_package_handle_standard_args)
>   cmake/helpers/CheckDependentLibraries.cmake:355 (find_package)
>   gdal.cmake:264 (include)
>   CMakeLists.txt:224 (include)
>
>
> -- Configuring incomplete, errors occurred!*
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230124/f03c408b/attachment-0001.htm>


More information about the gdal-dev mailing list