mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Improve documentation for macOS when building Matio and/or ProtocolBuffers from source
This commit is contained in:
parent
a713f8c646
commit
35cd66cb55
@ -1737,6 +1737,29 @@ if(NOT MATIO_FOUND OR MATIO_VERSION_STRING VERSION_LESS ${GNSSSDR_MATIO_MIN_VERS
|
|||||||
message(FATAL_ERROR "aclocal is required to build matio from source")
|
message(FATAL_ERROR "aclocal is required to build matio from source")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
if((NOT EXISTS /usr/local/bin/glibtoolize AND NOT EXISTS /opt/local/bin/glibtoolize) OR
|
||||||
|
(NOT EXISTS /usr/local/bin/aclocal AND NOT EXISTS /opt/local/bin/aclocal))
|
||||||
|
message(" libtool/automake tools have not been found.")
|
||||||
|
message(" You can try to install them by typing:")
|
||||||
|
message(" 'sudo port install libtool automake', if you use Macports, or 'brew install libtool automake', if you use Homebrew")
|
||||||
|
message(FATAL_ERROR "libtool/automake tools are required to build matio from source")
|
||||||
|
endif()
|
||||||
|
if(CMAKE_GENERATOR STREQUAL Xcode)
|
||||||
|
if(EXISTS /opt/local/bin/glibtoolize OR EXISTS /opt/local/bin/aclocal)
|
||||||
|
if(NOT EXISTS /usr/local/bin/glibtoolize OR NOT EXISTS /usr/local/bin/aclocal)
|
||||||
|
message(" WARNING: libtool/atomake binaries cannot be found by Xcode. Please do:")
|
||||||
|
message("sudo ln -s /opt/local/bin/glibtoolize /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/aclocal /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/autom4te /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/automake /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/autoconf /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/autoreconf /usr/local/bin/") # not needed by Matio, but by Protocol Buffers
|
||||||
|
message(FATAL_ERROR "libtool/automake tools cannot be found by Xcode")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
find_package(HDF5)
|
find_package(HDF5)
|
||||||
set_package_properties(HDF5 PROPERTIES
|
set_package_properties(HDF5 PROPERTIES
|
||||||
URL "https://support.hdfgroup.org/HDF5/"
|
URL "https://support.hdfgroup.org/HDF5/"
|
||||||
@ -2083,6 +2106,29 @@ if((NOT Protobuf_FOUND) OR (NOT Protobuf_PROTOC_EXECUTABLE) OR (${Protobuf_VERSI
|
|||||||
message(FATAL_ERROR "aclocal is required to build Protocol Buffers from source")
|
message(FATAL_ERROR "aclocal is required to build Protocol Buffers from source")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
if((NOT EXISTS /usr/local/bin/glibtoolize AND NOT EXISTS /opt/local/bin/glibtoolize) OR
|
||||||
|
(NOT EXISTS /usr/local/bin/aclocal AND NOT EXISTS /opt/local/bin/aclocal))
|
||||||
|
message(" libtool/automake tools have not been found.")
|
||||||
|
message(" You can try to install them by typing:")
|
||||||
|
message(" 'sudo port install libtool automake', if you use Macports, or 'brew install libtool automake', if you use Homebrew")
|
||||||
|
message(FATAL_ERROR "libtool/automake tools are required to build Protocol Buffers from source")
|
||||||
|
endif()
|
||||||
|
if(CMAKE_GENERATOR STREQUAL Xcode)
|
||||||
|
if(EXISTS /opt/local/bin/glibtoolize OR EXISTS /opt/local/bin/aclocal)
|
||||||
|
if(NOT EXISTS /usr/local/bin/glibtoolize OR NOT EXISTS /usr/local/bin/aclocal)
|
||||||
|
message(" WARNING: libtool/automake binaries cannot be found by Xcode. Please do:")
|
||||||
|
message("sudo ln -s /opt/local/bin/glibtoolize /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/aclocal /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/autom4te /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/automake /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/autoconf /usr/local/bin/")
|
||||||
|
message("sudo ln -s /opt/local/bin/autoreconf /usr/local/bin/")
|
||||||
|
message(FATAL_ERROR "libtool/automake tools cannot be found by Xcode")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(PROTOBUF_MAKE_PROGRAM ${CMAKE_MAKE_PROGRAM})
|
set(PROTOBUF_MAKE_PROGRAM ${CMAKE_MAKE_PROGRAM})
|
||||||
if(PROTOBUF_MAKE_PROGRAM MATCHES "ninja" OR CMAKE_GENERATOR STREQUAL Xcode)
|
if(PROTOBUF_MAKE_PROGRAM MATCHES "ninja" OR CMAKE_GENERATOR STREQUAL Xcode)
|
||||||
|
Loading…
Reference in New Issue
Block a user