diff --git a/.clang-tidy b/.clang-tidy
index 0ef91e2ecb..3ddbd1a517 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -120,7 +120,6 @@ Checks: '-*,
readability-uppercase-literal-suffix'
WarningsAsErrors: ''
HeaderFilterRegex: ''
-AnalyzeTemporaryDtors: false
FormatStyle: 'file'
CheckOptions:
- key: performance-unnecessary-copy-initialization.ExcludedContainerTypes
diff --git a/.github/workflows/citation.yml b/.github/workflows/citation.yml
index 9de637fed4..db667992c9 100644
--- a/.github/workflows/citation.yml
+++ b/.github/workflows/citation.yml
@@ -24,7 +24,7 @@ jobs:
uses: dieghernan/cff-validator@main
# Upload artifact in case of failure
- name: Update artifact
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
if: failure()
with:
name: citation-cff-errors
diff --git a/.github/workflows/gnss-sdr_archs.yml b/.github/workflows/gnss-sdr_archs.yml
index 6ba71fb648..ca95951878 100644
--- a/.github/workflows/gnss-sdr_archs.yml
+++ b/.github/workflows/gnss-sdr_archs.yml
@@ -41,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: uraimo/run-on-arch-action@v2.6.0
+ - uses: uraimo/run-on-arch-action@v2.7.1
name: Test in non-x86 container
continue-on-error: ${{ contains(fromJson('["ppc64le", "s390x"]'), matrix.arch) }}
id: test
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 183a871efb..8323fdea84 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later
-# SPDX-FileCopyrightText: 2020-2022 Carles Fernandez-Prades
+# SPDX-FileCopyrightText: 2020-2024 Carles Fernandez-Prades
name: Simple CI
on:
@@ -40,6 +40,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
- name: install dependencies
run: |
brew update
@@ -53,8 +56,8 @@ jobs:
rm /usr/local/bin/pydoc3.1* || true
rm /usr/local/bin/python3.1* || true
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
- brew install ninja hdf5 automake armadillo lapack libmatio \
- gflags glog gnuradio log4cpp openssl pugixml protobuf
+ brew link --overwrite python@3.12
+ brew install ninja hdf5 automake armadillo lapack libmatio gnuradio openssl pugixml protobuf
pip3 install mako
- name: configure
run: cd build && cmake -GNinja ..
@@ -69,6 +72,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
- name: install dependencies
run: |
brew update
@@ -82,9 +88,9 @@ jobs:
rm /usr/local/bin/pydoc3.1* || true
rm /usr/local/bin/python3.1* || true
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
- brew install ninja pkg-config hdf5 automake armadillo lapack libmatio \
- gflags glog gnuradio log4cpp openssl pugixml protobuf
- pip3 install mako
+ brew link --overwrite python@3.12
+ brew install ninja pkg-config hdf5 automake armadillo lapack libmatio gnuradio openssl pugixml protobuf
+ pip3 install mako
- name: configure
run: cd build && cmake -GXcode ..
- name: build
@@ -117,6 +123,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
- name: install dependencies
run: |
brew update
@@ -130,16 +139,16 @@ jobs:
rm /usr/local/bin/pydoc3.1* || true
rm /usr/local/bin/python3.1* || true
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
- brew install llvm pkg-config hdf5 armadillo lapack gflags glog gnuradio libmatio \
- log4cpp openssl pugixml protobuf
+ brew link --overwrite python@3.12
+ brew install ninja pkg-config hdf5 automake armadillo lapack libmatio gnuradio openssl pugixml protobuf llvm
pip3 install mako
ln -s $(brew --prefix llvm)/bin/clang-tidy /usr/local/bin
ln -s $(brew --prefix llvm)/bin/clang-apply-replacements /usr/local/bin
- ln -s $(brew --prefix llvm)/bin/run-clang-tidy /usr/local/bin
+ ln -s $(brew --prefix llvm)/bin/run-clang-tidy.py /usr/local/bin
- name: Prepare run
- run: cd build && cmake .. && make volk_gnsssdr_module gtest-1.13.0 core_monitor core_libs pvt_libs
+ run: cd build && cmake .. && make volk_gnsssdr_module gtest-1.14.0 core_monitor core_libs pvt_libs
- name: run clang-tidy
- run: cd build && run-clang-tidy -fix
+ run: cd build && /opt/homebrew/opt/llvm/bin/run-clang-tidy -fix
- name: check
run: |
git diff > clang_tidy.patch
@@ -192,7 +201,7 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
@@ -231,8 +240,13 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- - name: install dependencies
- run: pip3 install mako
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install mako
- name: configure
run: cd build && cmake ../src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr
- name: build
@@ -244,8 +258,13 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- - name: install dependencies
- run: pip3 install mako
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install mako
- name: configure
run: cd build && cmake -GXcode ../src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr
- name: build
diff --git a/.github/workflows/volk_gnsssdr_archs.yml b/.github/workflows/volk_gnsssdr_archs.yml
index 0e34896476..6f4e314543 100644
--- a/.github/workflows/volk_gnsssdr_archs.yml
+++ b/.github/workflows/volk_gnsssdr_archs.yml
@@ -45,7 +45,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: uraimo/run-on-arch-action@v2.6.0
+ - uses: uraimo/run-on-arch-action@v2.7.1
name: Build in non-x86 container
# continue-on-error: ${{ contains(fromJson('["ppc64le", "s390x"]'), matrix.arch) }}
id: build
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 99e567462f..f0fbcae719 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,7 +16,7 @@ endif()
# Build type can still be overridden by setting -DCMAKE_BUILD_TYPE=
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")
-cmake_minimum_required(VERSION 2.8.12...3.28)
+cmake_minimum_required(VERSION 2.8.12...3.30)
project(gnss-sdr CXX C)
set(GNSSSDR_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) # Allows to be a sub-project
@@ -74,9 +74,20 @@ option(ENABLE_PACKAGING "Enable software packaging" OFF)
option(ENABLE_OWN_GLOG "Download glog and link it to gflags" OFF)
+option(ENABLE_GLOG_AND_GFLAGS "Force using Google glog and Gflags instead of Abseil" OFF)
+
+option(ENABLE_OWN_ABSEIL "Forces downloading and building of Abseil" OFF)
+if(CMAKE_VERSION VERSION_LESS 3.24)
+ set(ENABLE_OWN_ABSEIL OFF)
+endif()
+if(ENABLE_OWN_ABSEIL)
+ set(ENABLE_OWN_GLOG OFF)
+ set(ENABLE_GLOG_AND_GFLAGS OFF)
+endif()
+
option(ENABLE_OWN_ARMADILLO "Download and build Armadillo locally" OFF)
-option(ENABLE_LOG "Enable logging" ON)
+option(ENABLE_LOG "Enable internal logging" ON)
option(ENABLE_ARMA_NO_DEBUG OFF)
@@ -211,7 +222,7 @@ endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|kFreeBSD|GNU")
include(DetectLinuxDistro)
if(CMAKE_CROSSCOMPILING)
- message(STATUS "Configuring GNSS-SDR v${VERSION} to be cross-compiled on ${LINUX_DISTRIBUTION} ${LINUX_VER} (${CMAKE_HOST_SYSTEM_PROCESSOR}) for ${CMAKE_SYSTEM_PROCESSOR} ${ARCHITECTURE_STRING}")
+ message(STATUS "Configuring GNSS-SDR v${VERSION} to be cross-compiled on ${LINUX_DISTRIBUTION} ${LINUX_VER} (${CMAKE_HOST_SYSTEM_PROCESSOR}) for ${CMAKE_SYSTEM_PROCESSOR}")
else()
message(STATUS "Configuring GNSS-SDR v${VERSION} to be built on GNU/Linux ${LINUX_DISTRIBUTION} ${LINUX_VER} ${ARCHITECTURE_STRING}")
endif()
@@ -329,25 +340,34 @@ set(GNSSSDR_MATIO_MIN_VERSION "1.5.3")
set(GNSSSDR_PROTOBUF_MIN_VERSION "3.0.0")
set(GNSSSDR_PYTHON_MIN_VERSION "2.7")
set(GNSSSDR_PYTHON3_MIN_VERSION "3.4")
+set(GNSSSDR_ABSEIL_MIN_VERSION "20240116")
################################################################################
# Versions to download and build (but not to install system-wide) if not found
################################################################################
-set(GNSSSDR_ARMADILLO_LOCAL_VERSION "12.6.x")
+set(GNSSSDR_ARMADILLO_LOCAL_VERSION "14.0.x")
set(GNSSSDR_GFLAGS_LOCAL_VERSION "2.2.2")
-set(GNSSSDR_GLOG_LOCAL_VERSION "0.6.0")
-set(GNSSSDR_MATIO_LOCAL_VERSION "1.5.26")
-set(GNSSSDR_PROTOCOLBUFFERS_LOCAL_VERSION "25.0")
+set(GNSSSDR_GLOG_LOCAL_VERSION "0.7.1")
+set(GNSSSDR_MATIO_LOCAL_VERSION "1.5.27")
+set(GNSSSDR_PROTOCOLBUFFERS_LOCAL_VERSION "27.2")
set(GNSSSDR_PUGIXML_LOCAL_VERSION "1.14")
-set(GNSSSDR_GTEST_LOCAL_VERSION "1.13.0")
-set(GNSSSDR_GNSS_SIM_LOCAL_VERSION "master")
-set(GNSSSDR_GNSSTK_LOCAL_VERSION "14.0.0")
-set(GNSSSDR_BENCHMARK_LOCAL_VERSION "1.8.3")
+set(GNSSSDR_GTEST_LOCAL_VERSION "1.14.0")
+set(GNSSSDR_GNSS_SIM_LOCAL_VERSION "origin/master")
+set(GNSSSDR_GNSSTK_LOCAL_VERSION "14.3.0")
+set(GNSSSDR_BENCHMARK_LOCAL_VERSION "1.8.5")
set(GNSSSDR_MATHJAX_EXTERNAL_VERSION "2.7.7")
+set(GNSSSDR_ABSL_LOCAL_VERSION "origin/master") # live at head (see https://abseil.io/about/releases)
# Downgrade versions if requirements are not met
+if(CMAKE_VERSION VERSION_LESS "3.5")
+ set(GNSSSDR_ARMADILLO_LOCAL_VERSION "12.8.x")
+endif()
+
+if(CMAKE_VERSION VERSION_LESS "3.22")
+ set(GNSSSDR_GLOG_LOCAL_VERSION "0.6.0")
+endif()
if(CMAKE_VERSION VERSION_LESS "3.16")
set(GNSSSDR_GLOG_LOCAL_VERSION "0.5.0")
endif()
@@ -368,10 +388,19 @@ if(CMAKE_VERSION VERSION_LESS "3.4")
set(GNSSSDR_PUGIXML_LOCAL_VERSION "1.10")
endif()
-if(CMAKE_CROSSCOMPILING OR CMAKE_VERSION VERSION_LESS "3.13")
+if(CMAKE_CROSSCOMPILING OR CMAKE_VERSION VERSION_LESS "3.13" OR
+ ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0.0)) OR
+ ((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0")) OR
+ ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "11")))
set(GNSSSDR_PROTOCOLBUFFERS_LOCAL_VERSION "21.12")
endif()
+if(CMAKE_VERSION VERSION_LESS "3.13" OR
+ (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.3.1) OR
+ (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.0))
+ set(GNSSSDR_GTEST_LOCAL_VERSION "1.13.0")
+endif()
+
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0) OR
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0) OR
CMAKE_VERSION VERSION_LESS 3.5)
@@ -729,8 +758,18 @@ set(BOOST_COMPONENTS atomic chrono date_time serialization system thread)
if(NOT ${FILESYSTEM_FOUND})
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} filesystem)
endif()
-find_package(Boost ${GNSSSDR_BOOST_MIN_VERSION} COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
-
+if(CMAKE_VERSION VERSION_LESS 3.30)
+ find_package(Boost ${GNSSSDR_BOOST_MIN_VERSION} COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
+else()
+ find_package(Boost ${GNSSSDR_BOOST_MIN_VERSION} COMPONENTS ${BOOST_COMPONENTS})
+ if(NOT Boost_FOUND)
+ message(STATUS "Trying deprecated FindBoost Module ...")
+ if(POLICY CMP0167)
+ cmake_policy(SET CMP0167 OLD)
+ find_package(Boost ${GNSSSDR_BOOST_MIN_VERSION} REQUIRED COMPONENTS ${BOOST_COMPONENTS})
+ endif()
+ endif()
+endif()
if(NOT Boost_FOUND)
message(FATAL_ERROR "Fatal error: Boost (version >=${GNSSSDR_BOOST_MIN_VERSION}) required.")
endif()
@@ -1145,7 +1184,7 @@ if(NOT VOLKGNSSSDR_FOUND)
if(CMAKE_GENERATOR STREQUAL Xcode)
set(VOLK_GNSSSDR_BUILD_COMMAND "xcodebuild"
- "-configuration" $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>
+ "-configuration" $<$:None>$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:NoOptWithASM>$<$:Coverage>$<$:O2WithASM>$<$:O3WithASM>$<$:Debug>:RelWithDebInfo>$<$:Debug>
)
endif()
@@ -1380,316 +1419,427 @@ endif()
################################################################################
-# gflags - https://github.com/gflags/gflags
+# Abseil C++ - https://abseil.io/docs/cpp/
################################################################################
-set(LOCAL_GFLAGS FALSE)
-if(ENABLE_OWN_GLOG)
- unset(Glog::glog CACHE)
- unset(GLOG_FOUND CACHE)
- unset(Gflags::gflags CACHE)
- unset(GLAGS_FOUND CACHE)
- set(GFLAGS_GREATER_20 TRUE)
-else()
- unset(Glog::glog CACHE)
- unset(GLOG_FOUND CACHE)
- find_package(GLOG)
- if(GLOG_FOUND)
- unset(GFLAGS_GREATER_20 CACHE)
- find_package(GFLAGS)
- endif()
-endif()
-set_package_properties(GFLAGS PROPERTIES
- PURPOSE "Used for commandline flags management."
- TYPE REQUIRED
-)
-if(NOT GFLAGS_FOUND)
- set(ENABLE_OWN_GLOG ON)
- if(GFLAGS_VERSION)
- message(STATUS " A version of the gflags library equal or higher than v${GNSSSDR_GFLAGS_MIN_VERSION} has not been found.")
- else()
- message(STATUS " The gflags library has not been found.")
- endif()
- message(STATUS " gflags v${GNSSSDR_GFLAGS_LOCAL_VERSION} will be downloaded, built, and statically linked automatically")
- message(STATUS " when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'.")
- set(GFLAGS_BUILD_COMMAND ${CMAKE_COMMAND}
- "--build" "${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}"
- "--config" $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
- )
- if(CMAKE_GENERATOR STREQUAL Xcode)
- set(GFLAGS_BUILD_COMMAND "xcodebuild" "-configuration" $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>)
- endif()
- if(CMAKE_TOOLCHAIN_FILE)
- set(GFLAGS_TOOLCHAIN_FILE -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
- endif()
+if(NOT CMAKE_VERSION VERSION_LESS 3.24
+ AND NOT CMAKE_CXX_STANDARD VERSION_LESS 17
+ AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.3.1)
+ AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.0)
+ AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12)
+ AND NOT ENABLE_OWN_GLOG
+ AND NOT ENABLE_GLOG_AND_GFLAGS)
+ # See https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md
- if(CMAKE_VERSION VERSION_LESS 3.2)
- ExternalProject_Add(gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
- PREFIX ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
- GIT_REPOSITORY https://github.com/gflags/gflags.git
- GIT_TAG v${GNSSSDR_GFLAGS_LOCAL_VERSION}
- SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/gflags/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
- BINARY_DIR ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
- CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF
- -DBUILD_STATIC_LIBS=ON
- -DBUILD_gflags_LIB=ON
- -DBUILD_gflags_nothreads_LIB=ON
- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
- ${GFLAGS_TOOLCHAIN_FILE}
- -DGFLAGS_NAMESPACE=google
- -DCMAKE_BUILD_TYPE=$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
- BUILD_COMMAND ${GFLAGS_BUILD_COMMAND}
- UPDATE_COMMAND ""
- PATCH_COMMAND ""
- INSTALL_COMMAND ""
+ if(ENABLE_OWN_ABSEIL)
+ include(FetchContent)
+ set(ABSEIL_BUILD_COMMAND ${CMAKE_COMMAND}
+ "--build" "${GNSSSDR_BINARY_DIR}/abseil-cpp"
+ "--config" $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
+ "--target" "install"
+ )
+ if(CMAKE_GENERATOR STREQUAL Xcode)
+ set(ABSEIL_BUILD_COMMAND "xcodebuild" "-configuration" $<$:None>$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:NoOptWithASM>$<$:Coverage>$<$:O2WithASM>$<$:O3WithASM>$<$:Debug>)
+ endif()
+ if(CMAKE_TOOLCHAIN_FILE)
+ set(ABSEIL_TOOLCHAIN_FILE -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
+ endif()
+ set(ABSL_PROPAGATE_CXX_STD ON)
+ FetchContent_Declare(
+ absl
+ GIT_REPOSITORY https://github.com/abseil/abseil-cpp
+ GIT_TAG ${GNSSSDR_ABSL_LOCAL_VERSION}
+ SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/abseil-cpp
+ CMAKE_ARGS -DABSL_PROPAGATE_CXX_STD=ON -ABSL_BUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=${GNSSSDR_BINARY_DIR}/abseil-cpp ${ABSEIL_TOOLCHAIN_FILE}
+ BINARY_DIR ${GNSSSDR_BINARY_DIR}/abseil-cpp
+ BUILD_COMMAND ${ABSEIL_BUILD_COMMAND}
+ OVERRIDE_FIND_PACKAGE # Requires CMake 3.24
)
+ FetchContent_MakeAvailable(absl)
+ set(absl_FOUND TRUE)
+ set(ENABLE_GLOG_AND_GFLAGS OFF)
else()
- set(GFLAGS_BUILD_BYPRODUCTS ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX})
- if((CMAKE_BUILD_TYPE STREQUAL Debug) OR (CMAKE_BUILD_TYPE STREQUAL NoOptWithASM) OR
- (CMAKE_BUILD_TYPE STREQUAL Coverage) OR (CMAKE_BUILD_TYPE STREQUAL ASAN)) # Workaround for Ninja generator
- set(GFLAGS_BUILD_BYPRODUCTS ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags_debug${CMAKE_STATIC_LIBRARY_SUFFIX})
+ find_package(absl)
+ set_package_properties(absl PROPERTIES
+ URL "https://github.com/abseil/abseil-cpp"
+ PURPOSE "Making use of Abseil's log and flags libraries."
+ TYPE OPTIONAL
+ )
+ if(absl_FOUND)
+ set_package_properties(absl PROPERTIES
+ DESCRIPTION "A collection of C++ library code designed to augment the C++ standard library (found: v${absl_VERSION})"
+ )
+ else()
+ set_package_properties(absl PROPERTIES
+ DESCRIPTION "A collection of C++ library code designed to augment the C++ standard library"
+ )
endif()
- if((CMAKE_VERSION VERSION_GREATER 3.12.0) AND NOT (CMAKE_GENERATOR STREQUAL Xcode))
- set(PARALLEL_BUILD "--parallel 2")
+ if("${absl_VERSION}" VERSION_LESS ${GNSSSDR_ABSEIL_MIN_VERSION})
+ unset(absl_FOUND CACHE)
+ set(absl_FOUND FALSE)
+ set(ENABLE_GLOG_AND_GFLAGS ON)
+ set_package_properties(absl PROPERTIES
+ DESCRIPTION "A collection of C++ library code designed to augment the C++ standard library (found: v${absl_VERSION}, but it is too old and it will not be used)"
+ )
endif()
- ExternalProject_Add(gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
- PREFIX ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
- GIT_REPOSITORY https://github.com/gflags/gflags.git
- GIT_TAG v${GNSSSDR_GFLAGS_LOCAL_VERSION}
- SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/gflags/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
- BINARY_DIR ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
- CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF
- -DBUILD_STATIC_LIBS=ON
- -DBUILD_gflags_LIB=ON
- -DBUILD_gflags_nothreads_LIB=ON
- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
- ${GFLAGS_TOOLCHAIN_FILE}
- -DCMAKE_BUILD_TYPE=$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
- BUILD_COMMAND "${GFLAGS_BUILD_COMMAND} ${PARALLEL_BUILD}"
- BUILD_BYPRODUCTS ${GFLAGS_BUILD_BYPRODUCTS}
- UPDATE_COMMAND ""
- PATCH_COMMAND ""
- INSTALL_COMMAND ""
- )
endif()
- # Note: -DBUILD_gflags_nothreads_LIB=ON is required as a workaround to a bug in gflags 2.2.2. This is fixed in gflags master branch
+endif()
- set(GFlags_INCLUDE_DIRS
- ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/include CACHE PATH "Local Gflags headers"
- )
- if(CMAKE_VERSION VERSION_LESS "3.0.2")
- set(GFlags_LIBS
- ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
- )
+if(NOT absl_FOUND)
+ set(ENABLE_GLOG_AND_GFLAGS ON)
+ ################################################################################
+ # gflags - https://github.com/gflags/gflags
+ ################################################################################
+ set(LOCAL_GFLAGS FALSE)
+ if(ENABLE_OWN_GLOG)
+ unset(Glog::glog CACHE)
+ unset(GLOG_FOUND CACHE)
+ unset(Gflags::gflags CACHE)
+ unset(GLAGS_FOUND CACHE)
+ set(GFLAGS_GREATER_20 TRUE)
+ else()
+ unset(Glog::glog CACHE)
+ unset(GLOG_FOUND CACHE)
+ find_package(GLOG)
+ if(GLOG_FOUND)
+ unset(GFLAGS_GREATER_20 CACHE)
+ find_package(GFLAGS)
+ endif()
endif()
-
- if(NOT TARGET Gflags::gflags)
- file(MAKE_DIRECTORY ${GFlags_INCLUDE_DIRS})
- add_library(Gflags::gflags STATIC IMPORTED)
- add_dependencies(Gflags::gflags gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION})
- set_target_properties(Gflags::gflags PROPERTIES
- IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
- IMPORTED_CONFIGURATIONS "None;Debug;Release;RelWithDebInfo;MinSizeRel"
- MAP_IMPORTED_CONFIG_NOOPTWITHASM Debug
- MAP_IMPORTED_CONFIG_COVERAGE Debug
- MAP_IMPORTED_CONFIG_O2WITHASM RelWithDebInfo
- MAP_IMPORTED_CONFIG_O3WITHASM RelWithDebInfo
- MAP_IMPORTED_CONFIG_ASAN Debug
- IMPORTED_LOCATION_NONE ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_DEBUG ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags_debug${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_RELEASE ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_RELWITHDEBINFO ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_MINSIZEREL ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
- INTERFACE_INCLUDE_DIRECTORIES ${GFlags_INCLUDE_DIRS}
- INTERFACE_LINK_LIBRARIES ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags$<$:_debug>${CMAKE_STATIC_LIBRARY_SUFFIX}
+ set_package_properties(GFLAGS PROPERTIES
+ PURPOSE "Used for commandline flags management."
+ TYPE REQUIRED
+ )
+ if(NOT GFLAGS_FOUND)
+ set(ENABLE_OWN_GLOG ON)
+ if(GFLAGS_VERSION)
+ message(STATUS " A version of the gflags library equal or higher than v${GNSSSDR_GFLAGS_MIN_VERSION} has not been found.")
+ else()
+ message(STATUS " The gflags library has not been found.")
+ endif()
+ message(STATUS " gflags v${GNSSSDR_GFLAGS_LOCAL_VERSION} will be downloaded, built, and statically linked automatically")
+ message(STATUS " when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'.")
+ set(GFLAGS_BUILD_COMMAND ${CMAKE_COMMAND}
+ "--build" "${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}"
+ "--config" $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
)
- if((CMAKE_GENERATOR STREQUAL Xcode) OR MSVC)
- if(MSVC)
- set(MSVC_POSTFIX _static)
+ if(CMAKE_GENERATOR STREQUAL Xcode)
+ set(GFLAGS_BUILD_COMMAND "xcodebuild" "-configuration" $<$:None>$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:NoOptWithASM>$<$:Coverage>$<$:O2WithASM>$<$:O3WithASM>$<$:Debug>)
+ endif()
+ if(CMAKE_TOOLCHAIN_FILE)
+ set(GFLAGS_TOOLCHAIN_FILE -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
+ endif()
+
+ if(CMAKE_VERSION VERSION_LESS 3.2)
+ ExternalProject_Add(gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ PREFIX ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ GIT_REPOSITORY https://github.com/gflags/gflags.git
+ GIT_TAG v${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/gflags/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ BINARY_DIR ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF
+ -DBUILD_STATIC_LIBS=ON
+ -DBUILD_gflags_LIB=ON
+ -DBUILD_gflags_nothreads_LIB=ON
+ -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
+ ${GFLAGS_TOOLCHAIN_FILE}
+ -DGFLAGS_NAMESPACE=google
+ -DCMAKE_BUILD_TYPE=$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
+ BUILD_COMMAND ${GFLAGS_BUILD_COMMAND}
+ UPDATE_COMMAND ""
+ PATCH_COMMAND ""
+ INSTALL_COMMAND ""
+ )
+ else()
+ set(GFLAGS_BUILD_BYPRODUCTS ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX})
+ if((CMAKE_BUILD_TYPE STREQUAL Debug) OR (CMAKE_BUILD_TYPE STREQUAL NoOptWithASM) OR
+ (CMAKE_BUILD_TYPE STREQUAL Coverage) OR (CMAKE_BUILD_TYPE STREQUAL ASAN)) # Workaround for Ninja generator
+ set(GFLAGS_BUILD_BYPRODUCTS ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags_debug${CMAKE_STATIC_LIBRARY_SUFFIX})
+ endif()
+ if((CMAKE_VERSION VERSION_GREATER 3.12.0) AND NOT (CMAKE_GENERATOR STREQUAL Xcode))
+ set(PARALLEL_BUILD "--parallel 2")
endif()
+ ExternalProject_Add(gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ PREFIX ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ GIT_REPOSITORY https://github.com/gflags/gflags.git
+ GIT_TAG v${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/gflags/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ BINARY_DIR ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}
+ CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF
+ -DBUILD_STATIC_LIBS=ON
+ -DBUILD_gflags_LIB=ON
+ -DBUILD_gflags_nothreads_LIB=ON
+ -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
+ ${GFLAGS_TOOLCHAIN_FILE}
+ -DCMAKE_BUILD_TYPE=$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
+ BUILD_COMMAND "${GFLAGS_BUILD_COMMAND} ${PARALLEL_BUILD}"
+ BUILD_BYPRODUCTS ${GFLAGS_BUILD_BYPRODUCTS}
+ UPDATE_COMMAND ""
+ PATCH_COMMAND ""
+ INSTALL_COMMAND ""
+ )
+ endif()
+ # Note: -DBUILD_gflags_nothreads_LIB=ON is required as a workaround to a bug in gflags 2.2.2. This is fixed in gflags master branch
+
+ set(GFlags_INCLUDE_DIRS
+ ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/include CACHE PATH "Local Gflags headers"
+ )
+
+ if(CMAKE_VERSION VERSION_LESS "3.0.2")
+ set(GFlags_LIBS
+ ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+ endif()
+
+ if(NOT TARGET Gflags::gflags)
+ file(MAKE_DIRECTORY ${GFlags_INCLUDE_DIRS})
+ add_library(Gflags::gflags STATIC IMPORTED)
+ add_dependencies(Gflags::gflags gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION})
set_target_properties(Gflags::gflags PROPERTIES
- IMPORTED_LOCATION_DEBUG ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/Debug/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}_debug${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_RELEASE ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/Release/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_RELWITHDEBINFO ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/RelWithDebInfo/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_MINSIZEREL ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/MinSizeRel/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}
- INTERFACE_LINK_LIBRARIES ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/$<$:Debug/>$<$:Release/>$<$:RelWithDebInfo/>$<$:MinSizeRel/>${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}$<$:_debug>${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
+ IMPORTED_CONFIGURATIONS "None;Debug;Release;RelWithDebInfo;MinSizeRel"
+ MAP_IMPORTED_CONFIG_NOOPTWITHASM Debug
+ MAP_IMPORTED_CONFIG_COVERAGE Debug
+ MAP_IMPORTED_CONFIG_O2WITHASM RelWithDebInfo
+ MAP_IMPORTED_CONFIG_O3WITHASM RelWithDebInfo
+ MAP_IMPORTED_CONFIG_ASAN Debug
+ IMPORTED_LOCATION_NONE ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_DEBUG ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags_debug${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_RELEASE ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_RELWITHDEBINFO ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_MINSIZEREL ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_STATIC_LIBRARY_SUFFIX}
+ INTERFACE_INCLUDE_DIRECTORIES ${GFlags_INCLUDE_DIRS}
+ INTERFACE_LINK_LIBRARIES ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gflags$<$:_debug>${CMAKE_STATIC_LIBRARY_SUFFIX}
)
+ if((CMAKE_GENERATOR STREQUAL Xcode) OR MSVC)
+ if(MSVC)
+ set(MSVC_POSTFIX _static)
+ endif()
+ set_target_properties(Gflags::gflags PROPERTIES
+ IMPORTED_LOCATION_DEBUG ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/Debug/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}_debug${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_RELEASE ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/Release/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_RELWITHDEBINFO ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/RelWithDebInfo/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_MINSIZEREL ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/MinSizeRel/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ INTERFACE_LINK_LIBRARIES ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib/$<$:Debug/>$<$:Release/>$<$:RelWithDebInfo/>$<$:MinSizeRel/>${CMAKE_FIND_LIBRARY_PREFIXES}gflags${MSVC_POSTFIX}$<$:_debug>${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+ endif()
endif()
- endif()
- if(MSVC)
- target_link_libraries(Gflags::gflags INTERFACE shlwapi.lib)
- endif()
+ if(MSVC)
+ target_link_libraries(Gflags::gflags INTERFACE shlwapi.lib)
+ endif()
- set(LOCAL_GFLAGS TRUE CACHE STRING "GFlags downloaded, built, and statically linked automatically" FORCE)
- set_package_properties(GFLAGS PROPERTIES
- PURPOSE "Gflags v${GNSSSDR_GFLAGS_LOCAL_VERSION} and Glog v${GNSSSDR_GLOG_LOCAL_VERSION} will be downloaded, built, and statically linked when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'."
- )
- if(CMAKE_VERSION VERSION_LESS 3.2)
- set_property(TARGET Gflags::gflags APPEND PROPERTY
- INTERFACE_COMPILE_DEFINITIONS GFLAGS_OLD_NAMESPACE=1
+ set(LOCAL_GFLAGS TRUE CACHE STRING "GFlags downloaded, built, and statically linked automatically" FORCE)
+ set_package_properties(GFLAGS PROPERTIES
+ PURPOSE "Gflags v${GNSSSDR_GFLAGS_LOCAL_VERSION} and Glog v${GNSSSDR_GLOG_LOCAL_VERSION} will be downloaded, built, and statically linked when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'."
)
+ if(CMAKE_VERSION VERSION_LESS 3.2)
+ set_property(TARGET Gflags::gflags APPEND PROPERTY
+ INTERFACE_COMPILE_DEFINITIONS GFLAGS_OLD_NAMESPACE=1
+ )
+ endif()
endif()
-endif()
-################################################################################
-# glog - https://github.com/google/glog
-################################################################################
-set_package_properties(GLOG PROPERTIES
- PURPOSE "Used for runtime internal logging."
- TYPE REQUIRED
-)
-if(NOT GLOG_FOUND OR ${LOCAL_GFLAGS})
- message(STATUS " glog library has not been found")
- if(NOT GFLAGS_FOUND)
- message(STATUS " or it is likely not linked to gflags.")
- endif()
- message(STATUS " glog v${GNSSSDR_GLOG_LOCAL_VERSION} will be downloaded, built, and statically linked automatically")
- message(STATUS " when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'.")
- find_package(LIBUNWIND)
- set_package_properties(LIBUNWIND PROPERTIES
- PURPOSE "Needed by glog."
- TYPE OPTIONAL
- )
- if(NOT ${LOCAL_GFLAGS})
- if(NOT TARGET gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION})
- add_library(gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION} UNKNOWN IMPORTED)
- endif()
- set_property(TARGET gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION} PROPERTY IMPORTED_LOCATION "${GFlags_LIBS}")
- string(REPLACE /include "" GFLAGS_PREFIX_PATH ${GFlags_INCLUDE_DIRS})
- else()
- set(GFLAGS_PREFIX_PATH ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION})
- endif()
- set(TARGET_GFLAGS gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION})
- set(GLOG_MAKE_PROGRAM ${CMAKE_COMMAND}
- "--build" "${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}"
- "--config" $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
+ ################################################################################
+ # glog - https://github.com/google/glog
+ ################################################################################
+ set_package_properties(GLOG PROPERTIES
+ PURPOSE "Used for runtime internal logging."
+ TYPE REQUIRED
)
- if(CMAKE_GENERATOR STREQUAL Xcode)
- set(GLOG_MAKE_PROGRAM "xcodebuild" "-configuration"
- $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>
+ if(NOT GLOG_FOUND OR ${LOCAL_GFLAGS})
+ message(STATUS " glog library has not been found")
+ if(NOT GFLAGS_FOUND)
+ message(STATUS " or it is likely not linked to gflags.")
+ endif()
+ message(STATUS " glog v${GNSSSDR_GLOG_LOCAL_VERSION} will be downloaded, built, and statically linked automatically")
+ message(STATUS " when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'.")
+ find_package(LIBUNWIND)
+ set_package_properties(LIBUNWIND PROPERTIES
+ PURPOSE "Needed by glog."
+ TYPE OPTIONAL
)
- endif()
- if(CMAKE_TOOLCHAIN_FILE)
- set(GLOG_TOOLCHAIN_FILE -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
- endif()
-
- if(CMAKE_VERSION VERSION_LESS 3.3)
- if(CMAKE_VERSION VERSION_LESS 3.0)
- set(GLOG_MAKE_PROGRAM ${CMAKE_MAKE_PROGRAM})
- set(GFLAGS_LIBRARIES_TO_LINK ${GFlags_LIBS})
- if(${LOCAL_GFLAGS})
- set(GFLAGS_LIBRARY_DIR_TO_LINK ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib)
- else()
- set(GFLAGS_LIBRARY_DIR_TO_LINK ${GFlags_LIBRARY_DIRS})
- endif()
- if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- set(GFLAGS_LIBRARIES_TO_LINK "${GFLAGS_LIBRARIES_TO_LINK} -lc++")
- set(GLOG_EXPORT_CXX_LIBRARIES "export CXXFLAGS=\"-stdlib=libc++\"")
+ if(NOT ${LOCAL_GFLAGS})
+ if(NOT TARGET gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION})
+ add_library(gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION} UNKNOWN IMPORTED)
endif()
- if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- set(GLOG_EXPORT_C_COMPILER "export CC=clang")
- set(GLOG_EXPORT_CXX_COMPILER "export CXX=clang++")
- endif()
- if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
- set(GLOG_EXPORT_C_COMPILER "export CC=gcc")
- set(GLOG_EXPORT_CXX_COMPILER "export CXX=g++")
- endif()
- file(WRITE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/tmp/configure_with_gflags
-"#!/bin/sh
-export CPPFLAGS=-I${GFlags_INCLUDE_DIRS}
-export LDFLAGS=-L${GFLAGS_LIBRARY_DIR_TO_LINK}
-export LIBS=\"${GFLAGS_LIBRARIES_TO_LINK}\"
-${GLOG_EXPORT_CXX_LIBRARIES}
-${GLOG_EXPORT_C_COMPILER}
-${GLOG_EXPORT_CXX_COMPILER}
-cd ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/
-aclocal
-automake --add-missing
-autoreconf -vfi
-cd ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
-${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/configure --enable-shared=no"
+ set_property(TARGET gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION} PROPERTY IMPORTED_LOCATION "${GFlags_LIBS}")
+ string(REPLACE /include "" GFLAGS_PREFIX_PATH ${GFlags_INCLUDE_DIRS})
+ else()
+ set(GFLAGS_PREFIX_PATH ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION})
+ endif()
+ set(TARGET_GFLAGS gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION})
+ set(GLOG_MAKE_PROGRAM ${CMAKE_COMMAND}
+ "--build" "${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}"
+ "--config" $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
+ )
+ if(CMAKE_GENERATOR STREQUAL Xcode)
+ set(GLOG_MAKE_PROGRAM "xcodebuild" "-configuration"
+ $<$:None>$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:NoOptWithASM>$<$:Coverage>$<$:O2WithASM>$<$:O3WithASM>$<$:Debug>
)
+ endif()
+ if(CMAKE_TOOLCHAIN_FILE)
+ set(GLOG_TOOLCHAIN_FILE -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
+ endif()
- file(COPY ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/tmp/configure_with_gflags
- DESTINATION ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
- GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
- )
+ if(CMAKE_VERSION VERSION_LESS 3.3)
+ if(CMAKE_VERSION VERSION_LESS 3.0)
+ set(GLOG_MAKE_PROGRAM ${CMAKE_MAKE_PROGRAM})
+ set(GFLAGS_LIBRARIES_TO_LINK ${GFlags_LIBS})
+ if(${LOCAL_GFLAGS})
+ set(GFLAGS_LIBRARY_DIR_TO_LINK ${GNSSSDR_BINARY_DIR}/gflags-${GNSSSDR_GFLAGS_LOCAL_VERSION}/lib)
+ else()
+ set(GFLAGS_LIBRARY_DIR_TO_LINK ${GFlags_LIBRARY_DIRS})
+ endif()
+ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ set(GFLAGS_LIBRARIES_TO_LINK "${GFLAGS_LIBRARIES_TO_LINK} -lc++")
+ set(GLOG_EXPORT_CXX_LIBRARIES "export CXXFLAGS=\"-stdlib=libc++\"")
+ endif()
+ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ set(GLOG_EXPORT_C_COMPILER "export CC=clang")
+ set(GLOG_EXPORT_CXX_COMPILER "export CXX=clang++")
+ endif()
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ set(GLOG_EXPORT_C_COMPILER "export CC=gcc")
+ set(GLOG_EXPORT_CXX_COMPILER "export CXX=g++")
+ endif()
+ file(WRITE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/tmp/configure_with_gflags
+ "#!/bin/sh
+ export CPPFLAGS=-I${GFlags_INCLUDE_DIRS}
+ export LDFLAGS=-L${GFLAGS_LIBRARY_DIR_TO_LINK}
+ export LIBS=\"${GFLAGS_LIBRARIES_TO_LINK}\"
+ ${GLOG_EXPORT_CXX_LIBRARIES}
+ ${GLOG_EXPORT_C_COMPILER}
+ ${GLOG_EXPORT_CXX_COMPILER}
+ cd ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/
+ aclocal
+ automake --add-missing
+ autoreconf -vfi
+ cd ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/configure --enable-shared=no"
+ )
- set(GLOG_CONFIGURE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/configure_with_gflags)
+ file(COPY ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/tmp/configure_with_gflags
+ DESTINATION ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
+ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ )
- # Ensure that aclocal and libtool are present
- if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|kFreeBSD|GNU")
- if(EXISTS "/usr/bin/libtoolize")
- if(EXISTS "/usr/bin/aclocal" OR
- EXISTS "/usr/bin/aclocal-1.16" OR
- EXISTS "/usr/bin/aclocal-1.15" OR
- EXISTS "/usr/bin/aclocal-1.14" OR
- EXISTS "/usr/bin/aclocal-1.13" OR
- EXISTS "/usr/bin/aclocal-1.11" OR
- EXISTS "/usr/bin/aclocal-1.10")
- # Everything ok, we can move on
+ set(GLOG_CONFIGURE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/configure_with_gflags)
+
+ # Ensure that aclocal and libtool are present
+ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|kFreeBSD|GNU")
+ if(EXISTS "/usr/bin/libtoolize")
+ if(EXISTS "/usr/bin/aclocal" OR
+ EXISTS "/usr/bin/aclocal-1.16" OR
+ EXISTS "/usr/bin/aclocal-1.15" OR
+ EXISTS "/usr/bin/aclocal-1.14" OR
+ EXISTS "/usr/bin/aclocal-1.13" OR
+ EXISTS "/usr/bin/aclocal-1.11" OR
+ EXISTS "/usr/bin/aclocal-1.10")
+ # Everything ok, we can move on
+ else()
+ message(" aclocal has not been found.")
+ message(" You can try to install it by typing:")
+ if(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat")
+ message(" sudo yum groupinstall 'Development Tools'")
+ elseif(${LINUX_DISTRIBUTION} MATCHES "openSUSE")
+ message(" sudo zypper install automake")
+ else()
+ message(" sudo apt-get install automake")
+ endif()
+ message(FATAL_ERROR "aclocal is required to build glog from source")
+ endif()
else()
- message(" aclocal has not been found.")
+ message(" libtool has not been found.")
message(" You can try to install it by typing:")
if(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat")
message(" sudo yum groupinstall 'Development Tools'")
elseif(${LINUX_DISTRIBUTION} MATCHES "openSUSE")
- message(" sudo zypper install automake")
+ message(" sudo zypper install libtoool")
else()
- message(" sudo apt-get install automake")
+ message(" sudo apt-get install libtool")
endif()
- message(FATAL_ERROR "aclocal is required to build glog from source")
+ message(FATAL_ERROR "libtool is required to build glog from source")
endif()
- else()
- message(" libtool has not been found.")
- message(" You can try to install it by typing:")
- if(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat")
- message(" sudo yum groupinstall 'Development Tools'")
- elseif(${LINUX_DISTRIBUTION} MATCHES "openSUSE")
- message(" sudo zypper install libtoool")
- else()
- message(" sudo apt-get install libtool")
- endif()
- message(FATAL_ERROR "libtool is required to build glog from source")
endif()
- endif()
- if(GLOG_MAKE_PROGRAM MATCHES "ninja")
- find_program(GLOG_MAKE_EXECUTABLE make
- PATHS
- /usr/bin
- /usr/local/bin
- )
- if(NOT GLOG_MAKE_EXECUTABLE)
- message(FATAL_ERROR "make is required to build Glog from source.")
+ if(GLOG_MAKE_PROGRAM MATCHES "ninja")
+ find_program(GLOG_MAKE_EXECUTABLE make
+ PATHS
+ /usr/bin
+ /usr/local/bin
+ )
+ if(NOT GLOG_MAKE_EXECUTABLE)
+ message(FATAL_ERROR "make is required to build Glog from source.")
+ endif()
+ set(GLOG_MAKE_PROGRAM ${GLOG_MAKE_EXECUTABLE})
endif()
- set(GLOG_MAKE_PROGRAM ${GLOG_MAKE_EXECUTABLE})
+ ExternalProject_Add(glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ DEPENDS ${TARGET_GFLAGS}
+ PREFIX ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ GIT_REPOSITORY https://github.com/google/glog/
+ GIT_TAG v${GNSSSDR_GLOG_LOCAL_VERSION}
+ SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ BINARY_DIR ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ CONFIGURE_COMMAND ${GLOG_CONFIGURE} --prefix=
+ BUILD_COMMAND "${GLOG_MAKE_PROGRAM}"
+ UPDATE_COMMAND ""
+ PATCH_COMMAND ""
+ INSTALL_COMMAND ""
+ )
+ set(GLOG_LIBRARIES
+ ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/.libs/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+ set(GLOG_INCLUDE_DIRS
+ ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/src
+ ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/src
+ )
+ else() # CMake > 3.0 but < 3.3
+ ExternalProject_Add(glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ DEPENDS ${TARGET_GFLAGS}
+ PREFIX ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ GIT_REPOSITORY https://github.com/google/glog/
+ GIT_TAG v${GNSSSDR_GLOG_LOCAL_VERSION}
+ SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ BINARY_DIR ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
+ -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
+ -DCMAKE_PREFIX_PATH=${GFLAGS_PREFIX_PATH}
+ ${GLOG_TOOLCHAIN_FILE}
+ -DCMAKE_BUILD_TYPE=$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
+ BUILD_COMMAND ${GLOG_MAKE_PROGRAM}
+ UPDATE_COMMAND ""
+ PATCH_COMMAND ""
+ INSTALL_COMMAND ""
+ )
+ set(GLOG_INCLUDE_DIRS
+ ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/src
+ ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
+ ${GFlags_INCLUDE_DIRS}
+ )
endif()
- ExternalProject_Add(glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- DEPENDS ${TARGET_GFLAGS}
- PREFIX ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- GIT_REPOSITORY https://github.com/google/glog/
- GIT_TAG v${GNSSSDR_GLOG_LOCAL_VERSION}
- SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- BINARY_DIR ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- CONFIGURE_COMMAND ${GLOG_CONFIGURE} --prefix=
- BUILD_COMMAND "${GLOG_MAKE_PROGRAM}"
- UPDATE_COMMAND ""
- PATCH_COMMAND ""
- INSTALL_COMMAND ""
- )
- set(GLOG_LIBRARIES
- ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/.libs/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- )
- set(GLOG_INCLUDE_DIRS
- ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/src
- ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/src
+ else() # CMake > 3.3
+ set(GLOG_BUILD_BYPRODUCTS
+ ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
)
- else() # CMake > 3.0 but < 3.3
+ if((CMAKE_BUILD_TYPE STREQUAL Debug) OR (CMAKE_BUILD_TYPE STREQUAL NoOptWithASM) OR
+ (CMAKE_BUILD_TYPE STREQUAL Coverage) OR (CMAKE_BUILD_TYPE STREQUAL ASAN)) # Workaround for Ninja generator
+ set(GLOG_BUILD_BYPRODUCTS
+ ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glogd${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+ endif()
+ if((CMAKE_VERSION VERSION_GREATER 3.12.0) AND NOT (CMAKE_GENERATOR STREQUAL Xcode) AND NOT CMAKE_CROSSCOMPILING)
+ set(PARALLEL_BUILD "--parallel 2")
+ endif()
+ if(GNSSSDR_GLOG_LOCAL_VERSION VERSION_GREATER 0.5.0)
+ set(GLOG_GTEST -DWITH_GTEST=FALSE)
+ endif()
+ if(NOT (CMAKE_VERSION VERSION_LESS "3.22"))
+ set(GNSSSDR_GLOG_LOCAL_GFLAGS -DCMAKE_REQUIRED_INCLUDES=${GFlags_INCLUDE_DIRS})
+ endif()
ExternalProject_Add(glog-${GNSSSDR_GLOG_LOCAL_VERSION}
DEPENDS ${TARGET_GFLAGS}
PREFIX ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
@@ -1698,11 +1848,15 @@ ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/configu
SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
BINARY_DIR ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
- -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_PREFIX_PATH=${GFLAGS_PREFIX_PATH}
${GLOG_TOOLCHAIN_FILE}
-DCMAKE_BUILD_TYPE=$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
- BUILD_COMMAND ${GLOG_MAKE_PROGRAM}
+ -DBUILD_SHARED_LIBS=OFF
+ ${GLOG_GTEST}
+ -DBUILD_TESTING=OFF
+ "${GNSSSDR_GLOG_LOCAL_GFLAGS}"
+ BUILD_COMMAND "${GLOG_MAKE_PROGRAM} ${PARALLEL_BUILD}"
+ BUILD_BYPRODUCTS ${GLOG_BUILD_BYPRODUCTS}
UPDATE_COMMAND ""
PATCH_COMMAND ""
INSTALL_COMMAND ""
@@ -1713,111 +1867,64 @@ ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/configu
${GFlags_INCLUDE_DIRS}
)
endif()
- else() # CMake > 3.3
- set(GLOG_BUILD_BYPRODUCTS
- ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- )
- if((CMAKE_BUILD_TYPE STREQUAL Debug) OR (CMAKE_BUILD_TYPE STREQUAL NoOptWithASM) OR
- (CMAKE_BUILD_TYPE STREQUAL Coverage) OR (CMAKE_BUILD_TYPE STREQUAL ASAN)) # Workaround for Ninja generator
- set(GLOG_BUILD_BYPRODUCTS
- ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glogd${CMAKE_STATIC_LIBRARY_SUFFIX}
- )
- endif()
- if((CMAKE_VERSION VERSION_GREATER 3.12.0) AND NOT (CMAKE_GENERATOR STREQUAL Xcode) AND NOT CMAKE_CROSSCOMPILING)
- set(PARALLEL_BUILD "--parallel 2")
- endif()
- if(GNSSSDR_GLOG_LOCAL_VERSION VERSION_GREATER 0.5.0)
- set(GLOG_GTEST -DWITH_GTEST=FALSE)
- endif()
- ExternalProject_Add(glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- DEPENDS ${TARGET_GFLAGS}
- PREFIX ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- GIT_REPOSITORY https://github.com/google/glog/
- GIT_TAG v${GNSSSDR_GLOG_LOCAL_VERSION}
- SOURCE_DIR ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- BINARY_DIR ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
- -DCMAKE_PREFIX_PATH=${GFLAGS_PREFIX_PATH}
- ${GLOG_TOOLCHAIN_FILE}
- -DCMAKE_BUILD_TYPE=$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
- -DBUILD_SHARED_LIBS=OFF
- ${GLOG_GTEST}
- -DBUILD_TESTING=OFF
- BUILD_COMMAND "${GLOG_MAKE_PROGRAM} ${PARALLEL_BUILD}"
- BUILD_BYPRODUCTS ${GLOG_BUILD_BYPRODUCTS}
- UPDATE_COMMAND ""
- PATCH_COMMAND ""
- INSTALL_COMMAND ""
- )
- set(GLOG_INCLUDE_DIRS
- ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/src
- ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}
- ${GFlags_INCLUDE_DIRS}
- )
- endif()
- add_dependencies(glog-${GNSSSDR_GLOG_LOCAL_VERSION} Gflags::gflags)
+ add_dependencies(glog-${GNSSSDR_GLOG_LOCAL_VERSION} Gflags::gflags)
- # Create Glog::glog target
- if(NOT TARGET Glog::glog)
- file(MAKE_DIRECTORY ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/src)
- file(MAKE_DIRECTORY ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION})
- add_library(Glog::glog STATIC IMPORTED)
- add_dependencies(Glog::glog glog-${GNSSSDR_GLOG_LOCAL_VERSION})
- if(CMAKE_VERSION VERSION_LESS 3.0)
- set_target_properties(Glog::glog PROPERTIES
- IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
- IMPORTED_LOCATION "${GLOG_LIBRARIES}"
- INCLUDE_DIRECTORIES "${GLOG_INCLUDE_DIRS}"
- INTERFACE_INCLUDE_DIRECTORIES "${GLOG_INCLUDE_DIRS}"
- INTERFACE_LINK_LIBRARIES "${GLOG_LIBRARIES}"
- )
- else()
- set_target_properties(Glog::glog PROPERTIES
- IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
- IMPORTED_CONFIGURATIONS "None;Debug;Release;RelWithDebInfo;MinSizeRel"
- MAP_IMPORTED_CONFIG_NOOPTWITHASM Debug
- MAP_IMPORTED_CONFIG_COVERAGE Debug
- MAP_IMPORTED_CONFIG_O2WITHASM RelWithDebInfo
- MAP_IMPORTED_CONFIG_O3WITHASM RelWithDebInfo
- MAP_IMPORTED_CONFIG_ASAN Debug
- IMPORTED_LOCATION_NONE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_DEBUG ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glogd${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_RELEASE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_RELWITHDEBINFO ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_MINSIZEREL ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- INTERFACE_INCLUDE_DIRECTORIES "${GLOG_INCLUDE_DIRS}"
- INTERFACE_LINK_LIBRARIES ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog$<$:d>${CMAKE_STATIC_LIBRARY_SUFFIX}
- )
- if((CMAKE_GENERATOR STREQUAL Xcode) OR MSVC)
+ # Create Glog::glog target
+ if(NOT TARGET Glog::glog)
+ file(MAKE_DIRECTORY ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/src)
+ file(MAKE_DIRECTORY ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION})
+ add_library(Glog::glog STATIC IMPORTED)
+ add_dependencies(Glog::glog glog-${GNSSSDR_GLOG_LOCAL_VERSION})
+ if(CMAKE_VERSION VERSION_LESS 3.0)
set_target_properties(Glog::glog PROPERTIES
- IMPORTED_LOCATION_DEBUG ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/Debug/${CMAKE_FIND_LIBRARY_PREFIXES}glogd${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_RELEASE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/Release/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_RELWITHDEBINFO ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/RelWithDebInfo/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- IMPORTED_LOCATION_MINSIZEREL ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/MinSizeRel/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
- INTERFACE_LINK_LIBRARIES ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/$<$:Debug/>$<$:Release/>$<$:RelWithDebInfo/>$<$:MinSizeRel/>${CMAKE_FIND_LIBRARY_PREFIXES}glog$<$:d>${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
+ IMPORTED_LOCATION "${GLOG_LIBRARIES}"
+ INCLUDE_DIRECTORIES "${GLOG_INCLUDE_DIRS}"
+ INTERFACE_INCLUDE_DIRECTORIES "${GLOG_INCLUDE_DIRS}"
+ INTERFACE_LINK_LIBRARIES "${GLOG_LIBRARIES}"
)
+ else()
+ set_target_properties(Glog::glog PROPERTIES
+ IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
+ IMPORTED_CONFIGURATIONS "None;Debug;Release;RelWithDebInfo;MinSizeRel"
+ MAP_IMPORTED_CONFIG_NOOPTWITHASM Debug
+ MAP_IMPORTED_CONFIG_COVERAGE Debug
+ MAP_IMPORTED_CONFIG_O2WITHASM RelWithDebInfo
+ MAP_IMPORTED_CONFIG_O3WITHASM RelWithDebInfo
+ MAP_IMPORTED_CONFIG_ASAN Debug
+ IMPORTED_LOCATION_NONE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_DEBUG ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glogd${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_RELEASE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_RELWITHDEBINFO ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_MINSIZEREL ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
+ INTERFACE_INCLUDE_DIRECTORIES "${GLOG_INCLUDE_DIRS}"
+ INTERFACE_LINK_LIBRARIES ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/${CMAKE_FIND_LIBRARY_PREFIXES}glog$<$:d>${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+ if((CMAKE_GENERATOR STREQUAL Xcode) OR MSVC)
+ set_target_properties(Glog::glog PROPERTIES
+ IMPORTED_LOCATION_DEBUG ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/Debug/${CMAKE_FIND_LIBRARY_PREFIXES}glogd${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_RELEASE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/Release/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_RELWITHDEBINFO ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/RelWithDebInfo/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
+ IMPORTED_LOCATION_MINSIZEREL ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/MinSizeRel/${CMAKE_FIND_LIBRARY_PREFIXES}glog${CMAKE_STATIC_LIBRARY_SUFFIX}
+ INTERFACE_LINK_LIBRARIES ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/$<$:Debug/>$<$:Release/>$<$:RelWithDebInfo/>$<$:MinSizeRel/>${CMAKE_FIND_LIBRARY_PREFIXES}glog$<$:d>${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+ endif()
endif()
endif()
- endif()
-
- if(LIBUNWIND_FOUND)
- target_link_libraries(Glog::glog INTERFACE Libunwind::libunwind)
- endif()
- set(LOCAL_GLOG TRUE CACHE STRING "Glog downloaded, built, and statically linked automatically" FORCE)
+ if(NOT (CMAKE_VERSION VERSION_LESS "3.22"))
+ set_target_properties(Glog::glog PROPERTIES
+ INTERFACE_COMPILE_DEFINITIONS "GLOG_USE_GLOG_EXPORT;GLOG_USE_GFLAGS"
+ INTERFACE_COMPILE_FEATURES "cxx_std_14")
+ endif()
- set_package_properties(GLOG PROPERTIES
- PURPOSE "Glog v${GNSSSDR_GLOG_LOCAL_VERSION} will be downloaded, built, and statically linked when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'."
- )
-endif()
+ if(LIBUNWIND_FOUND)
+ target_link_libraries(Glog::glog INTERFACE Libunwind::libunwind)
+ endif()
+ set(LOCAL_GLOG TRUE CACHE STRING "Glog downloaded, built, and statically linked automatically" FORCE)
-if(NOT ENABLE_LOG)
- message(STATUS "Internal logging is not enabled")
- if(CMAKE_VERSION VERSION_GREATER 3.11.0)
- target_compile_definitions(Glog::glog INTERFACE -DGOOGLE_STRIP_LOG=1)
- else()
- set_property(TARGET Glog::glog APPEND PROPERTY
- INTERFACE_COMPILE_DEFINITIONS GOOGLE_STRIP_LOG=1
+ set_package_properties(GLOG PROPERTIES
+ PURPOSE "Glog v${GNSSSDR_GLOG_LOCAL_VERSION} will be downloaded, built, and statically linked when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'."
)
endif()
endif()
@@ -1909,7 +2016,7 @@ endif()
################################################################################
-# Armadillo - http://arma.sourceforge.net/
+# Armadillo - https://arma.sourceforge.net/
################################################################################
if(ENABLE_OWN_ARMADILLO)
unset(Armadillo::armadillo CACHE)
@@ -1921,7 +2028,7 @@ else()
endif()
set_package_properties(Armadillo PROPERTIES
- URL "http://arma.sourceforge.net/"
+ URL "https://arma.sourceforge.net/"
PURPOSE "Used for matrix computations."
TYPE REQUIRED
)
@@ -2025,7 +2132,7 @@ if(NOT ARMADILLO_FOUND OR ENABLE_OWN_ARMADILLO)
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_BUILD_TYPE=$<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug>
-DCMAKE_INSTALL_PREFIX=${GNSSSDR_BINARY_DIR}/armadillo-${armadillo_RELEASE}
- -DBUILD_SHARED_LIBS=OFF
+ -DSTATIC_LIB=ON
-DBUILD_SMOKE_TEST=OFF
-DALLOW_BLAS_LAPACK_MACOS=ON
${ARMADILLO_CXX_VERSION}
@@ -2150,6 +2257,7 @@ find_library(GNUTLS_OPENSSL_LIBRARY
/usr/lib/sparc64-linux-gnu
/usr/lib/x86_64-linux-gnux32
/usr/lib/sh4-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
@@ -2517,9 +2625,29 @@ endif()
################################################################################
# Protocol Buffers https://github.com/protocolbuffers/protobuf
################################################################################
-find_package(Protobuf)
+if(((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "8.0.0")) OR
+ ((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0")) OR
+ ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "11")))
+ if(CMAKE_VERSION VERSION_LESS 3.19)
+ find_package(Protobuf)
+ else()
+ find_package(Protobuf 3.0...21.12)
+ endif()
+else()
+ find_package(Protobuf)
+
+ if((CMAKE_BUILD_TYPE STREQUAL "Debug") AND Protobuf_FOUND AND absl_FOUND)
+ # This Regular Expression is used to convert the version string provided by `find_package(Protobuf)` into the
+ # appropriate binary version string. So, for instance, "4.25.3" becomes "25.3.0".
+ string(REGEX REPLACE "^[0-9]+\.([0-9]+\.[0-9]+)$" "\\1.0" PROTOBUF_LIBRARY_VERSION "${Protobuf_VERSION}")
+ if((PROTOBUF_LIBRARY_VERSION VERSION_GREATER_EQUAL "22") AND (PROTOBUF_LIBRARY_VERSION VERSION_LESS "26"))
+ pkg_check_modules(protobuf REQUIRED IMPORTED_TARGET protobuf=${PROTOBUF_LIBRARY_VERSION})
+ target_link_libraries(protobuf::libprotobuf INTERFACE PkgConfig::protobuf)
+ endif()
+ endif()
+endif()
set_package_properties(Protobuf PROPERTIES
- URL "https://developers.google.com/protocol-buffers/"
+ URL "https://protobuf.dev/"
PURPOSE "Used to serialize output data in a way that can be read by other applications."
TYPE REQUIRED
)
@@ -2624,12 +2752,6 @@ if((NOT Protobuf_FOUND) OR (NOT Protobuf_PROTOC_EXECUTABLE) OR (${Protobuf_VERSI
endif()
else()
if(CMAKE_VERSION VERSION_GREATER "3.13")
- find_package(absl)
- set_package_properties(absl PROPERTIES
- URL "https://github.com/abseil/abseil-cpp"
- PURPOSE "Abseil-cpp >= 20230117 required to be installed before building Protocol Buffers >22.x on the fly."
- TYPE OPTIONAL
- )
if(absl_FOUND)
if(absl_VERSION)
if(${absl_VERSION} VERSION_LESS "20230117")
@@ -2641,6 +2763,10 @@ if((NOT Protobuf_FOUND) OR (NOT Protobuf_PROTOC_EXECUTABLE) OR (${Protobuf_VERSI
set(absl_FOUND OFF)
endif()
endif()
+ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "8.0.0"))
+ unset(absl_FOUND CACHE)
+ set(absl_FOUND OFF)
+ endif()
if(absl_FOUND)
set_package_properties(absl PROPERTIES
DESCRIPTION "An open-source collection of C++ code designed to augment the C++ standard library (found: v${absl_VERSION})"
@@ -2655,7 +2781,9 @@ if((NOT Protobuf_FOUND) OR (NOT Protobuf_PROTOC_EXECUTABLE) OR (${Protobuf_VERSI
DESCRIPTION "An open-source collection of C++ code designed to augment the C++ standard library"
)
endif()
- message(STATUS "The Abseil library (https://github.com/abseil/abseil-cpp) >= v20230117 is required to be installed before building Protocol Buffers >22.x on the fly.")
+ if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "8.0.0"))
+ message(STATUS "The Abseil library (https://github.com/abseil/abseil-cpp) >= v20230117 is required to be installed before building Protocol Buffers >22.x on the fly.")
+ endif()
message(STATUS " Instead, Protocol Buffers v21.12 will be built, which does not require Abseil.")
set(GNSSSDR_PROTOCOLBUFFERS_LOCAL_VERSION "21.12")
endif()
@@ -2768,8 +2896,8 @@ if((NOT Protobuf_FOUND) OR (NOT Protobuf_PROTOC_EXECUTABLE) OR (${Protobuf_VERSI
if(NOT TARGET protobuf::protoc)
add_executable(protobuf::protoc IMPORTED)
- add_dependencies(protobuf::protoc protobuf-${GNSSSDR_PROTOCOLBUFFERS_LOCAL_VERSION})
endif()
+ add_dependencies(protobuf::protoc protobuf-${GNSSSDR_PROTOCOLBUFFERS_LOCAL_VERSION})
unset(Protobuf_PROTOC_EXECUTABLE)
set(PROTOBUF_PROTOC_EXECUTABLE "${GNSSSDR_BINARY_DIR}/protobuf-${GNSSSDR_PROTOCOLBUFFERS_LOCAL_VERSION}/bin/protoc")
set_target_properties(protobuf::protoc PROPERTIES
@@ -3443,8 +3571,10 @@ add_feature_info(ENABLE_FPGA ENABLE_FPGA "Enables building of processing blocks
add_feature_info(ENABLE_ARMA_NO_DEBUG ENABLE_ARMA_NO_DEBUG "Enables passing the ARMA_NO_DEBUG macro to Armadillo, hence disabling bound checking.")
add_feature_info(ENABLE_PACKAGING ENABLE_PACKAGING "Enables software packaging.")
add_feature_info(ENABLE_OWN_GLOG ENABLE_OWN_GLOG "Forces the downloading and building of Google glog.")
+add_feature_info(ENABLE_GLOG_AND_GFLAGS ENABLE_GLOG_AND_GFLAGS "Forces the usage of Google glog and Gflags instead of Abseil.")
+add_feature_info(ENABLE_OWN_ABSEIL ENABLE_OWN_ABSEIL "Forces downloading and building Abseil. Supersedes ENABLE_OWN_GLOG.")
add_feature_info(ENABLE_OWN_ARMADILLO ENABLE_OWN_ARMADILLO "Forces the downloading and building of Armadillo.")
-add_feature_info(ENABLE_LOG ENABLE_LOG "Enables runtime internal logging with Google glog.")
+add_feature_info(ENABLE_LOG ENABLE_LOG "Enables runtime internal logging.")
add_feature_info(ENABLE_ORC ENABLE_ORC "Use the Optimized Inner Loop Runtime Compiler (ORC) for building volk_gnsssdr.")
add_feature_info(ENABLE_STRIP ENABLE_STRIP "Enables the generation of stripped binaries (without debugging symbols).")
add_feature_info(ENABLE_UNIT_TESTING ENABLE_UNIT_TESTING "Enables building of Unit Tests.")
@@ -3466,7 +3596,7 @@ message(STATUS "* SUMMARY REPORT *")
message(STATUS "***************************************")
message(STATUS "")
if(CMAKE_CROSSCOMPILING)
- message(STATUS "Cross-compiling on ${LINUX_DISTRIBUTION} ${LINUX_VER} (${CMAKE_HOST_SYSTEM_PROCESSOR}) for ${CMAKE_SYSTEM_PROCESSOR} ${ARCHITECTURE_STRING}")
+ message(STATUS "Cross-compiling on ${LINUX_DISTRIBUTION} ${LINUX_VER} (${CMAKE_HOST_SYSTEM_PROCESSOR}) for ${CMAKE_SYSTEM_PROCESSOR}")
else()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|kFreeBSD|GNU")
message(STATUS "Building on GNU/Linux ${LINUX_DISTRIBUTION} ${LINUX_VER} ${ARCHITECTURE_STRING}")
@@ -3489,7 +3619,7 @@ file(APPEND ${GNSSSDR_BINARY_DIR}/features.log "********************************
file(APPEND ${GNSSSDR_BINARY_DIR}/features.log "GNSS-SDR version: ${VERSION}\n")
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|kFreeBSD|GNU")
if(CMAKE_CROSSCOMPILING)
- file(APPEND ${GNSSSDR_BINARY_DIR}/features.log "Cross-compiling on ${LINUX_DISTRIBUTION} ${LINUX_VER} (${CMAKE_HOST_SYSTEM_PROCESSOR}) for ${CMAKE_SYSTEM_PROCESSOR} ${ARCHITECTURE_STRING}\n")
+ file(APPEND ${GNSSSDR_BINARY_DIR}/features.log "Cross-compiling on ${LINUX_DISTRIBUTION} ${LINUX_VER} (${CMAKE_HOST_SYSTEM_PROCESSOR}) for ${CMAKE_SYSTEM_PROCESSOR}\n")
else()
file(APPEND ${GNSSSDR_BINARY_DIR}/features.log "Building on GNU/Linux ${LINUX_DISTRIBUTION} ${LINUX_VER} ${ARCHITECTURE_STRING}\n")
endif()
diff --git a/README.md b/README.md
index 7e9fd62d93..b9c64d1ff1 100644
--- a/README.md
+++ b/README.md
@@ -59,60 +59,59 @@ information about this open-source, software-defined GNSS receiver.
(click to expand)
-1. [Table of Contents](#table-of-contents)
-2. [How to build GNSS-SDR](#how-to-build-gnss-sdr)
- 1. [GNU/Linux](#gnulinux)
- 1. [Alternative 1: Install dependencies using software packages](#alternative-1-install-dependencies-using-software-packages)
- 1. [Debian / Ubuntu](#debian--ubuntu)
- 2. [AlmaLinux](#almalinux)
- 3. [Arch Linux](#arch-linux)
- 4. [CentOS](#centos)
- 5. [Fedora](#fedora)
- 6. [openSUSE](#opensuse)
- 7. [Rocky Linux](#rocky-linux)
- 2. [Alternative 2: Install dependencies using PyBOMBS](#alternative-2-install-dependencies-using-pybombs)
- 3. [Manual installation of other required dependencies](#manual-installation-of-other-required-dependencies)
- 1. [Install Armadillo, a C++ linear algebra library](#install-armadillo-a-c-linear-algebra-library)
- 2. [Install Gflags, a commandline flags processing module for C++](#install-gflags-a-commandline-flags-processing-module-for-c)
- 3. [Install Glog, a library that implements application-level logging](#install-glog-a-library-that-implements-application-level-logging)
- 4. [Install the GnuTLS or OpenSSL libraries](#install-the-gnutls-or-openssl-libraries)
- 5. [Install Matio, MATLAB MAT file I/O library](#install-matio-matlab-mat-file-io-library)
- 6. [Install Protocol Buffers, a portable mechanism for serialization of structured data](#install-protocol-buffers-a-portable-mechanism-for-serialization-of-structured-data)
- 7. [Install Pugixml, a light-weight C++ XML processing library](#install-pugixml-a-light-weight-c-xml-processing-library)
- 8. [Download GoogleTest](#download-googletest)
- 4. [Clone GNSS-SDR's Git repository](#clone-gnss-sdrs-git-repository)
- 5. [Build and install GNSS-SDR](#build-and-install-gnss-sdr)
- 1. [Build OSMOSDR support (OPTIONAL)](#build-osmosdr-support-optional)
- 2. [Build FMCOMMS2 based SDR Hardware support (OPTIONAL)](#build-fmcomms2-based-sdr-hardware-support-optional)
- 3. [Build OpenCL support (OPTIONAL)](#build-opencl-support-optional)
- 4. [Build CUDA support (OPTIONAL)](#build-cuda-support-optional)
- 2. [macOS](#macos)
- 1. [Macports](#macports)
- 2. [Homebrew](#homebrew)
- 3. [Other package managers](#other-package-managers)
- 4. [Build GNSS-SDR](#build-gnss-sdr)
- 3. [Other builds](#other-builds)
-3. [Updating GNSS-SDR](#updating-gnss-sdr)
-4. [Getting started](#getting-started)
-5. [Using GNSS-SDR](#using-gnss-sdr)
- 1. [Control plane](#control-plane)
- 1. [Configuration](#configuration)
- 2. [GNSS block factory](#gnss-block-factory)
- 2. [Signal Processing plane](#signal-processing-plane)
- 1. [Signal Source](#signal-source)
- 2. [Signal Conditioner](#signal-conditioner)
- 1. [Data type adapter](#data-type-adapter)
- 2. [Input filter](#input-filter)
- 3. [Resampler](#resampler)
- 3. [Channel](#channel)
- 1. [Acquisition](#acquisition)
- 2. [Tracking](#tracking)
- 3. [Decoding of the navigation message](#decoding-of-the-navigation-message)
- 4. [Observables](#observables)
- 5. [Computation of Position, Velocity, and Time](#computation-of-position-velocity-and-time)
-6. [About the software license](#about-the-software-license)
-7. [Publications and Credits](#publications-and-credits)
-8. [Ok, now what?](#ok-now-what)
+- [Table of Contents](#table-of-contents)
+- [How to build GNSS-SDR](#how-to-build-gnss-sdr)
+ - [GNU/Linux](#gnulinux)
+ - [Alternative 1: Install dependencies using software packages](#alternative-1-install-dependencies-using-software-packages)
+ - [Debian / Ubuntu](#debian--ubuntu)
+ - [AlmaLinux](#almalinux)
+ - [Arch Linux](#arch-linux)
+ - [Fedora](#fedora)
+ - [openSUSE](#opensuse)
+ - [Rocky Linux](#rocky-linux)
+ - [Alternative 2: Install dependencies using PyBOMBS](#alternative-2-install-dependencies-using-pybombs)
+ - [Manual installation of other required dependencies](#manual-installation-of-other-required-dependencies)
+ - [Install Armadillo, a C++ linear algebra library](#install-armadillo-a-c-linear-algebra-library)
+ - [Install Gflags, a commandline flags processing module for C++](#install-gflags-a-commandline-flags-processing-module-for-c)
+ - [Install Glog, a library that implements application-level logging](#install-glog-a-library-that-implements-application-level-logging)
+ - [Install the GnuTLS or OpenSSL libraries](#install-the-gnutls-or-openssl-libraries)
+ - [Install Matio, MATLAB MAT file I/O library](#install-matio-matlab-mat-file-io-library)
+ - [Install Protocol Buffers, a portable mechanism for serialization of structured data](#install-protocol-buffers-a-portable-mechanism-for-serialization-of-structured-data)
+ - [Install Pugixml, a light-weight C++ XML processing library](#install-pugixml-a-light-weight-c-xml-processing-library)
+ - [Download GoogleTest](#download-googletest)
+ - [Clone GNSS-SDR's Git repository](#clone-gnss-sdrs-git-repository)
+ - [Build and install GNSS-SDR](#build-and-install-gnss-sdr)
+ - [Build OSMOSDR support (OPTIONAL)](#build-osmosdr-support-optional)
+ - [Build FMCOMMS2 based SDR Hardware support (OPTIONAL)](#build-fmcomms2-based-sdr-hardware-support-optional)
+ - [Build OpenCL support (OPTIONAL)](#build-opencl-support-optional)
+ - [Build CUDA support (OPTIONAL)](#build-cuda-support-optional)
+ - [macOS](#macos)
+ - [Macports](#macports)
+ - [Homebrew](#homebrew)
+ - [Other package managers](#other-package-managers)
+ - [Build GNSS-SDR](#build-gnss-sdr)
+ - [Other builds](#other-builds)
+- [Updating GNSS-SDR](#updating-gnss-sdr)
+- [Getting started](#getting-started)
+- [Using GNSS-SDR](#using-gnss-sdr)
+ - [Control plane](#control-plane)
+ - [Configuration](#configuration)
+ - [GNSS block factory](#gnss-block-factory)
+ - [Signal Processing plane](#signal-processing-plane)
+ - [Signal Source](#signal-source)
+ - [Signal Conditioner](#signal-conditioner)
+ - [Data type adapter](#data-type-adapter)
+ - [Input filter](#input-filter)
+ - [Resampler](#resampler)
+ - [Channel](#channel)
+ - [Acquisition](#acquisition)
+ - [Tracking](#tracking)
+ - [Decoding of the navigation message](#decoding-of-the-navigation-message)
+ - [Observables](#observables)
+ - [Computation of Position, Velocity, and Time](#computation-of-position-velocity-and-time)
+- [About the software license](#about-the-software-license)
+- [Publications and Credits](#publications-and-credits)
+- [Ok, now what?](#ok-now-what)
@@ -126,7 +125,7 @@ This section describes how to set up the compilation environment in GNU/Linux or
## GNU/Linux
- Tested distributions: Ubuntu 14.04 LTS and above; Debian 9.0 "stretch" and
- above; Arch Linux; CentOS 7; Fedora 26 and above; OpenSUSE 42.3 and above.
+ above; Arch Linux; Fedora 26 and above; OpenSUSE 42.3 and above.
- Supported microprocessor architectures:
- i386: Intel x86 instruction set (32-bit microprocessors).
- amd64: also known as x86-64, the 64-bit version of the x86 instruction set,
@@ -222,28 +221,9 @@ Once you have installed these packages, you can jump directly to
If you are using Arch Linux:
```
-$ pacman -S gcc make cmake pkgconf git boost boost-libs log4cpp libvolk gnuradio \
- blas lapack gflags google-glog openssl pugixml libmatio protobuf \
- python-mako libpcap gtest
-```
-
-Once you have installed these packages, you can jump directly to
-[download the source code and build GNSS-SDR](#clone-gnss-sdrs-git-repository).
-
-#### CentOS
-
-If you are using CentOS 7, you can install the dependencies via Extra Packages
-for Enterprise Linux ([EPEL](https://fedoraproject.org/wiki/EPEL)):
-
-```
-$ sudo yum install wget
-$ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
-$ sudo rpm -Uvh epel-release-latest-7.noarch.rpm
-$ sudo yum install make automake gcc gcc-c++ kernel-devel libtool \
- hdf5-devel cmake git boost-devel boost-date-time boost-system \
- boost-filesystem boost-thread boost-chrono boost-serialization \
- log4cpp-devel gnuradio-devel gr-osmosdr-devel blas-devel lapack-devel \
- armadillo-devel openssl-devel libpcap-devel python-mako python-six pugixml-devel
+$ pacman -S gcc make cmake pkgconf git boost boost-libs libvolk gnuradio \
+ blas lapack hdf5 openssl pugixml libmatio protobuf libpcap gtest \
+ python-mako
```
Once you have installed these packages, you can jump directly to
@@ -278,7 +258,7 @@ $ zypper install cmake git gcc-c++ boost-devel libboost_atomic-devel \
libboost_system-devel libboost_filesystem-devel libboost_chrono-devel \
libboost_thread-devel libboost_serialization-devel log4cpp-devel \
gnuradio-devel pugixml-devel libpcap-devel armadillo-devel libtool \
- automake hdf5-devel openssl-devel python3-Mako protobuf-devel
+ automake hdf5-devel openssl-devel python3-Mako libmatio-devel
```
If you are using openSUSE Tumbleweed:
@@ -396,16 +376,16 @@ or manually as explained below, and then please follow instructions on how to
### Manual installation of other required dependencies
-#### Install [Armadillo](http://arma.sourceforge.net/ "Armadillo's Homepage"), a C++ linear algebra library
+#### Install [Armadillo](https://arma.sourceforge.net/ "Armadillo's Homepage"), a C++ linear algebra library
```
$ sudo apt-get install libblas-dev liblapack-dev # For Debian/Ubuntu/LinuxMint
-$ sudo yum install lapack-devel blas-devel # For Fedora/CentOS/RHEL
+$ sudo yum install lapack-devel blas-devel # For Fedora/RHEL
$ sudo zypper install lapack-devel blas-devel # For OpenSUSE
$ sudo pacman -S blas lapack # For Arch Linux
-$ wget https://sourceforge.net/projects/arma/files/armadillo-12.0.1.tar.xz
-$ tar xvfz armadillo-12.0.1.tar.xz
-$ cd armadillo-12.0.1
+$ wget https://sourceforge.net/projects/arma/files/armadillo-14.0.0.tar.xz
+$ tar xvfz armadillo-14.0.0.tar.xz
+$ cd armadillo-14.0.0
$ cmake .
$ make
$ sudo make install
@@ -430,12 +410,16 @@ $ sudo make install
$ sudo ldconfig
```
+Please note that GFlags is replaced by the
+[Abseil Flags Library](https://abseil.io/docs/cpp/guides/flags) if Abseil >=
+v20240116 is available in your system.
+
#### Install [Glog](https://github.com/google/glog "Glog's Homepage"), a library that implements application-level logging
```
-$ wget https://github.com/google/glog/archive/v0.6.0.tar.gz
-$ tar xvfz v0.6.0.tar.gz
-$ cd glog-0.6.0
+$ wget https://github.com/google/glog/archive/v0.7.1.tar.gz
+$ tar xvfz v0.7.1.tar.gz
+$ cd glog-0.7.1
$ mkdir build && cd build
$ cmake ..
$ make
@@ -443,11 +427,15 @@ $ sudo make install
$ sudo ldconfig
```
+Please note that Glog is replaced by the
+[Abseil Logging Library](https://abseil.io/docs/cpp/guides/logging) if Abseil >=
+v20240116 is available in your system.
+
#### Install the GnuTLS or OpenSSL libraries
```
$ sudo apt-get install libgnutls-openssl-dev # For Debian/Ubuntu/LinuxMint
-$ sudo yum install openssl-devel # For Fedora/CentOS/RHEL
+$ sudo yum install openssl-devel # For Fedora/RHEL
$ sudo zypper install openssl-devel # For OpenSUSE
$ sudo pacman -S openssl # For Arch Linux
```
@@ -460,16 +448,16 @@ GNSS-SDR can also work well with
#### Install [Matio](https://github.com/tbeu/matio "Matio's Homepage"), MATLAB MAT file I/O library
```
-$ wget https://github.com/tbeu/matio/releases/download/v1.5.23/matio-1.5.23.tar.gz
-$ tar xvfz matio-1.5.23.tar.gz
-$ cd matio-1.5.23
+$ wget https://github.com/tbeu/matio/releases/download/v1.5.26/matio-1.5.27.tar.gz
+$ tar xvfz matio-1.5.27.tar.gz
+$ cd matio-1.5.27
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig
```
-#### Install [Protocol Buffers](https://developers.google.com/protocol-buffers/ "Protocol Buffers' Homepage"), a portable mechanism for serialization of structured data
+#### Install [Protocol Buffers](https://protobuf.dev/ "Protocol Buffers' Homepage"), a portable mechanism for serialization of structured data
GNSS-SDR requires Protocol Buffers v3.0.0 or later. If the packages that come
with your distribution are older than that (_e.g._, Ubuntu 16.04 Xenial came
@@ -489,9 +477,9 @@ For more options, please check the
#### Install [Pugixml](https://pugixml.org/ "Pugixml's Homepage"), a light-weight C++ XML processing library
```
-$ wget https://github.com/zeux/pugixml/releases/download/v1.13/pugixml-1.13.tar.gz
-$ tar xvfz pugixml-1.13.tar.gz
-$ cd pugixml-1.13
+$ wget https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.tar.gz
+$ tar xvfz pugixml-1.14.tar.gz
+$ cd pugixml-1.14
$ mkdir build && cd build
$ cmake ..
$ make
@@ -502,8 +490,8 @@ $ sudo ldconfig
#### Download [GoogleTest](https://github.com/google/googletest "Googletest Homepage")
```
-$ wget https://github.com/google/googletest/archive/refs/tags/v1.13.0.zip
-$ unzip v1.13.0.zip
+$ wget https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
+$ unzip v1.14.0.zip
```
Please **DO NOT build or install** Google Test. Every user needs to compile
@@ -527,10 +515,10 @@ downloaded resides. Just type in your terminal (or add it to your
`$HOME/.bashrc` file for a permanent solution) the following line:
```
-export GTEST_DIR=/home/username/googletest-1.13.0
+export GTEST_DIR=/home/username/googletest-1.14.0
```
-changing `/home/username/googletest-1.13.0` by the actual path where you
+changing `/home/username/googletest-1.14.0` by the actual path where you
unpacked Google Test. If the CMake script does not find that folder, or the
environment variable is not defined, or the source code is not installed by a
package, then it will download a fresh copy of the Google Test source code and
@@ -832,7 +820,7 @@ $ sudo port selfupdate
$ sudo port upgrade outdated
$ sudo port install armadillo cmake pkgconfig protobuf3-cpp pugixml gnutls
$ sudo port install gnuradio +uhd +grc +zeromq
-$ sudo port install boost matio libad9361-iio libiio google-glog +gflags
+$ sudo port install boost matio libad9361-iio libiio
$ sudo port install py311-mako
$ sudo port install doxygen +docs
```
@@ -867,22 +855,14 @@ $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/inst
The script explains what it will do, and then it pauses before doing it. There
are more installation options [here](https://docs.brew.sh/Installation.html).
-Install pip3:
-
-```
-$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
-$ sudo python3 get-pip.py
-```
-
Install the required dependencies:
```
$ brew update && brew upgrade
-$ brew install armadillo cmake hdf5 gflags glog gnuradio libmatio log4cpp \
- openssl pkg-config protobuf pugixml
-$ pip3 install mako
+$ brew install armadillo cmake hdf5 gnuradio libmatio openssl pkg-config protobuf pugixml
$ brew install --cask mactex # when completed, restart Terminal
$ brew install graphviz doxygen
+¢ pip3 install mako
```
For macOS versions older than Sonoma, you will also need LAPACK:
@@ -894,7 +874,7 @@ $ brew install lapack
### Other package managers
GNU Radio and other dependencies can also be installed using other package
-managers than Macports, such as [Fink](http://www.finkproject.org/ "Fink").
+managers than Macports, such as [Fink](https://www.finkproject.org/ "Fink").
Since the version of Python that ships with OS X is great for learning but it is
not good for development, you could have another Python executable in a
non-standard location. If that is the case, you need to inform GNSS-SDR's
@@ -984,7 +964,7 @@ do so.
- **GNSS-SDR in embedded platforms**: we provide a Software Development Kit
- (SDK) based on [OpenEmbedded](http://www.openembedded.org/wiki/Main_Page) for
+ (SDK) based on [OpenEmbedded](https://www.openembedded.org/wiki/Main_Page) for
cross-compiling GNSS-SDR in your desktop computer and for producing
executables that can run in embedded platforms, such as Xilinx's Zynq and
ZynqMP architectures, Raspberry Pi, and many others. Please check
@@ -1999,11 +1979,11 @@ PVT.rtcm_MT1077_rate_ms=1000
Notation (JSON) supported by numerous mapping and GIS software packages,
including [OpenLayers](https://openlayers.org),
[Leaflet](https://leafletjs.com), [MapServer](https://mapserver.org/),
- [GeoServer](http://geoserver.org), [GeoDjango](https://www.djangoproject.com),
- [GDAL](https://gdal.org/), and [CartoDB](https://cartodb.com). It is also
- possible to use GeoJSON with [PostGIS](https://postgis.net/) and
- [Mapnik](https://mapnik.org/), both of which handle the format via the GDAL
- OGR conversion library. The
+ [GeoServer](https://geoserver.org/),
+ [GeoDjango](https://www.djangoproject.com), [GDAL](https://gdal.org/), and
+ [CartoDB](https://cartodb.com). It is also possible to use GeoJSON with
+ [PostGIS](https://postgis.net/) and [Mapnik](https://mapnik.org/), both of
+ which handle the format via the GDAL OGR conversion library. The
[Google Maps Javascript API](https://developers.google.com/maps/documentation/javascript/)
v3 directly supports the
[integration of GeoJSON data layers](https://developers.google.com/maps/documentation/javascript/examples/layer-data-simple),
@@ -2016,8 +1996,9 @@ PVT.rtcm_MT1077_rate_ms=1000
(OGC KML), and it is maintained by the Open Geospatial Consortium, Inc. (OGC).
KML files can be displayed in geobrowsers such as
[Google Earth](https://www.google.com/earth/),
- [Marble](https://marble.kde.org), [osgEarth](http://osgearth.org), or used
- with the [NASA World Wind SDK for Java](https://worldwind.arc.nasa.gov/java/).
+ [Marble](https://marble.kde.org),
+ [osgEarth](https://github.com/gwaldron/osgearth), or used with the
+ [NASA World Wind SDK for Java](https://worldwind.arc.nasa.gov/java/).
- **GPX** (the GPS Exchange Format) is a lightweight XML data format for the
interchange of GPS data (waypoints, routes, and tracks) between applications
@@ -2052,9 +2033,11 @@ PVT.rtcm_MT1077_rate_ms=1000
(usually with other data unknown to the original receiver, such as better
models of the atmospheric conditions at time of measurement). RINEX files can
be used by software packages such as
- [GNSSTK](https://github.com/SGL-UT/gnsstk), [RTKLIB](http://www.rtklib.com/),
- and [gLAB](https://gage.upc.edu/gLAB/). GNSS-SDR by default generates RINEX
- version [3.02](ftp://igs.org/pub/data/format/rinex302.pdf). If
+ [GNSSTK](https://github.com/SGL-UT/gnsstk), [RTKLIB](https://www.rtklib.com/),
+ and
+ [gLAB](https://gage.upc.edu/en/learning-materials/software-tools/glab-tool-suite).
+ GNSS-SDR by default generates RINEX version
+ [3.02](ftp://igs.org/pub/data/format/rinex302.pdf). If
[2.11](ftp://igs.org/pub/data/format/rinex211.txt) is needed, it can be
requested through the `rinex_version` parameter in the configuration file:
diff --git a/cmake/Modules/DetectLinuxDistro.cmake b/cmake/Modules/DetectLinuxDistro.cmake
index 3fa556ba43..014b2a8d33 100644
--- a/cmake/Modules/DetectLinuxDistro.cmake
+++ b/cmake/Modules/DetectLinuxDistro.cmake
@@ -4,10 +4,14 @@
# SPDX-FileCopyrightText: 2011-2020 C. Fernandez-Prades cfernandez(at)cttc.es
# SPDX-License-Identifier: BSD-3-Clause
-if(CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(ARCHITECTURE_STRING "(64 bits)")
+if(CMAKE_VERSION VERSION_LESS 3.19)
+ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(ARCHITECTURE_STRING "(64 bits)")
+ else()
+ set(ARCHITECTURE_STRING "(32 bits)")
+ endif()
else()
- set(ARCHITECTURE_STRING "(32 bits)")
+ set(ARCHITECTURE_STRING "(${CMAKE_HOST_SYSTEM_PROCESSOR})")
endif()
if(EXISTS "/etc/lsb-release")
diff --git a/cmake/Modules/FindCPUFEATURES.cmake b/cmake/Modules/FindCPUFEATURES.cmake
index 6f25e91d23..7c25e69c27 100644
--- a/cmake/Modules/FindCPUFEATURES.cmake
+++ b/cmake/Modules/FindCPUFEATURES.cmake
@@ -34,6 +34,7 @@ find_library(CPUFEATURES_LIBRARIES
/usr/lib/x86_64-linux-gnux32
/usr/lib/alpha-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindGFLAGS.cmake b/cmake/Modules/FindGFLAGS.cmake
index 2649380c99..08a5056b8f 100644
--- a/cmake/Modules/FindGFLAGS.cmake
+++ b/cmake/Modules/FindGFLAGS.cmake
@@ -78,6 +78,7 @@ else()
/usr/lib/x86_64-linux-gnux32
/usr/lib/alpha-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindGFORTRAN.cmake b/cmake/Modules/FindGFORTRAN.cmake
index a6eb38a536..5a698ce899 100644
--- a/cmake/Modules/FindGFORTRAN.cmake
+++ b/cmake/Modules/FindGFORTRAN.cmake
@@ -55,6 +55,7 @@ find_library(GFORTRAN NAMES gfortran
/usr/lib/gcc/sh4-linux-gnu
/usr/lib/gcc/i686-redhat-linux # Fedora
/usr/lib64/gcc/x86_64-redhat-linux
+ /usr/lib/gcc/x86_64-redhat-linux
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi
/usr/lib/gcc/aarch64-redhat-linux
/usr/lib/gcc/ppc64le-redhat-linux
@@ -89,6 +90,7 @@ find_library(GFORTRAN NAMES gfortran
/usr/lib/x86_64-linux-gnux32
/usr/lib/alpha-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/usr/local/lib/i386
diff --git a/cmake/Modules/FindGLOG.cmake b/cmake/Modules/FindGLOG.cmake
index e483dfbe9e..6c506643e0 100644
--- a/cmake/Modules/FindGLOG.cmake
+++ b/cmake/Modules/FindGLOG.cmake
@@ -71,6 +71,7 @@ macro(_FIND_GLOG_LIBRARIES _var)
/usr/lib/x86_64-linux-gnux32
/usr/lib/alpha-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
@@ -178,3 +179,8 @@ if(GLOG_FOUND AND NOT TARGET Glog::glog)
INTERFACE_LINK_LIBRARIES "${GLOG_LIBRARIES}"
)
endif()
+
+# Fix for glog 0.7.0
+if(EXISTS ${GLOG_INCLUDE_DIRS}/export.h)
+ set_target_properties(Glog::glog PROPERTIES INTERFACE_COMPILE_DEFINITIONS "GLOG_USE_GLOG_EXPORT")
+endif()
\ No newline at end of file
diff --git a/cmake/Modules/FindGNURADIO.cmake b/cmake/Modules/FindGNURADIO.cmake
index 5ce37cba69..9855ddc296 100644
--- a/cmake/Modules/FindGNURADIO.cmake
+++ b/cmake/Modules/FindGNURADIO.cmake
@@ -131,6 +131,7 @@ function(GR_MODULE EXTVAR PCNAME INCFILE LIBFILE)
/usr/lib/x86_64-linux-gnux32
/usr/lib/alpha-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindGRIIO.cmake b/cmake/Modules/FindGRIIO.cmake
index e08290252f..1abd5caf42 100644
--- a/cmake/Modules/FindGRIIO.cmake
+++ b/cmake/Modules/FindGRIIO.cmake
@@ -96,6 +96,7 @@ find_library(IIO_LIBRARIES
/usr/lib/sparc64-linux-gnu
/usr/lib/x86_64-linux-gnux32
/usr/lib/sh4-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindGRLIMESDR.cmake b/cmake/Modules/FindGRLIMESDR.cmake
index cfd546feb8..2fb60cb3fb 100644
--- a/cmake/Modules/FindGRLIMESDR.cmake
+++ b/cmake/Modules/FindGRLIMESDR.cmake
@@ -96,6 +96,7 @@ find_library(GRLIMESDR_LIBRARIES
/usr/lib/x86_64-linux-gnux32
/usr/lib/riscv64-linux-gnu
/usr/lib/alpha-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindGROSMOSDR.cmake b/cmake/Modules/FindGROSMOSDR.cmake
index cfaef14947..22ee7d51e8 100644
--- a/cmake/Modules/FindGROSMOSDR.cmake
+++ b/cmake/Modules/FindGROSMOSDR.cmake
@@ -96,6 +96,7 @@ find_library(GROSMOSDR_LIBRARIES
/usr/lib/x86_64-linux-gnux32
/usr/lib/riscv64-linux-gnu
/usr/lib/alpha-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindLIBAD9361.cmake b/cmake/Modules/FindLIBAD9361.cmake
index 80df49673c..e1ff8e4a3b 100644
--- a/cmake/Modules/FindLIBAD9361.cmake
+++ b/cmake/Modules/FindLIBAD9361.cmake
@@ -75,6 +75,7 @@ find_library(LIBAD9361_LIBRARIES
/usr/lib/x86_64-linux-gnux32
/usr/lib/sh4-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindLIBIIO.cmake b/cmake/Modules/FindLIBIIO.cmake
index 31f152b6f3..44f4d367eb 100644
--- a/cmake/Modules/FindLIBIIO.cmake
+++ b/cmake/Modules/FindLIBIIO.cmake
@@ -77,6 +77,7 @@ find_library(
/usr/lib/x86_64-linux-gnux32
/usr/lib/sh4-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindLOG4CPP.cmake b/cmake/Modules/FindLOG4CPP.cmake
index 73876d1dad..95a14cf621 100644
--- a/cmake/Modules/FindLOG4CPP.cmake
+++ b/cmake/Modules/FindLOG4CPP.cmake
@@ -121,7 +121,7 @@ include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LOG4CPP DEFAULT_MSG LOG4CPP_INCLUDE_DIRS LOG4CPP_LIBRARIES)
set_package_properties(LOG4CPP PROPERTIES
- URL "http://log4cpp.sourceforge.net/"
+ URL "https://log4cpp.sourceforge.net/"
)
if(LOG4CPP_FOUND AND PC_LOG4CPP_VERSION)
diff --git a/cmake/Modules/FindMATIO.cmake b/cmake/Modules/FindMATIO.cmake
index 49e0bf8cd1..d9a6cebd29 100644
--- a/cmake/Modules/FindMATIO.cmake
+++ b/cmake/Modules/FindMATIO.cmake
@@ -108,6 +108,7 @@ find_library(MATIO_LIBRARY
/usr/lib/x86_64-linux-gnux32
/usr/lib/x86_64-kfreebsd-gnu
/usr/lib/i386-kfreebsd-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindORC.cmake b/cmake/Modules/FindORC.cmake
index 97cd0e4a80..b6a4ba3644 100644
--- a/cmake/Modules/FindORC.cmake
+++ b/cmake/Modules/FindORC.cmake
@@ -80,6 +80,8 @@ find_path(ORC_LIBRARY_DIR
/usr/lib/powerpc64le-linux-gnu
/usr/lib/hppa-linux-gnu
/usr/lib/s390x-linux-gnu
+ /usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
@@ -106,6 +108,8 @@ find_library(ORC_LIB orc-0.4
/usr/lib/powerpc64le-linux-gnu
/usr/lib/hppa-linux-gnu
/usr/lib/s390x-linux-gnu
+ /usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
@@ -134,6 +138,8 @@ find_library(ORC_LIBRARY_STATIC ${CMAKE_STATIC_LIBRARY_PREFIX}orc-0.4${CMAKE_STA
/usr/lib/powerpc64le-linux-gnu
/usr/lib/hppa-linux-gnu
/usr/lib/s390x-linux-gnu
+ /usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindPCAP.cmake b/cmake/Modules/FindPCAP.cmake
index b72b5f5d14..39a7aff150 100644
--- a/cmake/Modules/FindPCAP.cmake
+++ b/cmake/Modules/FindPCAP.cmake
@@ -6,7 +6,7 @@
# - Find pcap
# Find the PCAP includes and library
-# http://www.tcpdump.org/
+# https://www.tcpdump.org/
#
# The environment variable PCAPDIR allows to specify where to find
# libpcap in non standard location.
@@ -105,6 +105,7 @@ else()
/usr/lib/powerpc64-linux-gnu
/usr/lib/powerpc64le-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/lib/s390x-linux-gnu
/usr/lib/sh4-linux-gnu
/usr/lib/sparc64-linux-gnu
diff --git a/cmake/Modules/FindPUGIXML.cmake b/cmake/Modules/FindPUGIXML.cmake
index c5c1ea637d..5f7f5dcb27 100644
--- a/cmake/Modules/FindPUGIXML.cmake
+++ b/cmake/Modules/FindPUGIXML.cmake
@@ -88,6 +88,7 @@ find_library(PUGIXML_LIBRARY
/usr/lib/sparc64-linux-gnu
/usr/lib/x86_64-linux-gnux32
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/lib/x86_64-kfreebsd-gnu
/usr/lib/i386-kfreebsd-gnu
/usr/local/lib
diff --git a/cmake/Modules/FindTELEORBIT.cmake b/cmake/Modules/FindTELEORBIT.cmake
index b0d5e6c208..db888984ae 100644
--- a/cmake/Modules/FindTELEORBIT.cmake
+++ b/cmake/Modules/FindTELEORBIT.cmake
@@ -38,6 +38,7 @@ set(TELEORBIT_ROOT_USER_DEFINED
find_path(TELEORBIT_INCLUDE_DIRS
NAMES teleorbit/api.h
HINTS ${PC_TELEORBIT_INCLUDEDIR}
+ PATH_SUFFIXES gnuradio
PATHS ${TELEORBIT_ROOT_USER_DEFINED}/include
/usr/include
/usr/local/include
diff --git a/cmake/Modules/FindUHD.cmake b/cmake/Modules/FindUHD.cmake
index 772cf436a7..a6ed654a31 100644
--- a/cmake/Modules/FindUHD.cmake
+++ b/cmake/Modules/FindUHD.cmake
@@ -86,6 +86,7 @@ find_library(UHD_LIBRARIES
/usr/lib/x86_64-linux-gnux32
/usr/lib/alpha-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindVOLK.cmake b/cmake/Modules/FindVOLK.cmake
index f67efdfbbf..bda6621865 100644
--- a/cmake/Modules/FindVOLK.cmake
+++ b/cmake/Modules/FindVOLK.cmake
@@ -83,6 +83,7 @@ find_library(VOLK_LIBRARIES
/usr/lib/x86_64-linux-gnux32
/usr/lib/alpha-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/local/lib
/usr/local/lib64
/opt/local/lib
diff --git a/cmake/Modules/FindZEROMQ.cmake b/cmake/Modules/FindZEROMQ.cmake
index 0ef9371393..6579d9ed70 100644
--- a/cmake/Modules/FindZEROMQ.cmake
+++ b/cmake/Modules/FindZEROMQ.cmake
@@ -46,6 +46,7 @@ find_library(ZEROMQ_LIBRARIES
/usr/lib/powerpc64-linux-gnu
/usr/lib/powerpc64le-linux-gnu
/usr/lib/riscv64-linux-gnu
+ /usr/lib/loongarch64-linux-gnu
/usr/lib/s390x-linux-gnu
/usr/lib/sh4-linux-gnu
/usr/lib/sparc64-linux-gnu
diff --git a/cmake/Modules/XcodeRemoveWarningDuplicates.cmake b/cmake/Modules/XcodeRemoveWarningDuplicates.cmake
new file mode 100644
index 0000000000..f4e150fcc9
--- /dev/null
+++ b/cmake/Modules/XcodeRemoveWarningDuplicates.cmake
@@ -0,0 +1,23 @@
+# GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
+# This file is part of GNSS-SDR.
+#
+# SPDX-FileCopyrightText: 2011-2024 C. Fernandez-Prades cfernandez(at)cttc.es
+# SPDX-License-Identifier: BSD-3-Clause
+
+if(DEFINED __INCLUDED_XCODE_REMOVE_WARNING_DUPLICATES_CMAKE)
+ return()
+endif()
+set(__INCLUDED_XCODE_REMOVE_WARNING_DUPLICATES_CMAKE TRUE)
+
+function(xcode_remove_warning_duplicates target)
+ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "15.0.0")
+ # A bug in Xcode 15 adds duplicate flags to the linker. In addition, the
+ # `-warn_duplicate_libraries` is now enabled by default which may result
+ # in several 'duplicate libraries warning'.
+ # - https://gitlab.kitware.com/cmake/cmake/-/issues/25297 and
+ # - https://indiestack.com/2023/10/xcode-15-duplicate-library-linker-warnings/
+ target_link_options(${target} PUBLIC "LINKER:-no_warn_duplicate_libraries")
+ endif()
+ endif()
+endfunction()
\ No newline at end of file
diff --git a/conf/RealTime_input/gnss-sdr_multichannel_GPS_Galileo_Beidou_Glonass_L1_USRP_realtime.conf b/conf/RealTime_input/gnss-sdr_multichannel_GPS_Galileo_Beidou_Glonass_L1_USRP_realtime.conf
new file mode 100644
index 0000000000..0c53dedb1a
--- /dev/null
+++ b/conf/RealTime_input/gnss-sdr_multichannel_GPS_Galileo_Beidou_Glonass_L1_USRP_realtime.conf
@@ -0,0 +1,281 @@
+; This is a GNSS-SDR configuration file
+; The configuration API is described at https://gnss-sdr.org/docs/sp-blocks/
+; SPDX-License-Identifier: GPL-3.0-or-later
+; SPDX-FileCopyrightText: (C) 2010-2020 (see AUTHORS file for a list of contributors)
+
+; You can define your own receiver and invoke it by doing
+; gnss-sdr --config_file=my_GNSS_SDR_configuration.conf
+;
+
+[GNSS-SDR]
+
+;######### GLOBAL OPTIONS ##################
+GNSS-SDR.internal_fs_sps=8000000
+GNSS-SDR.Beidou_banned_prns=56,57,58
+
+
+;######### SIGNAL_SOURCE CONFIG ############
+SignalSource.implementation=Osmosdr_Signal_Source
+SignalSource.item_type=gr_complex
+SignalSource.sampling_frequency=56000000
+SignalSource.freq=1584000000
+SignalSource.osmosdr_args=uhd,type=b200,num_recv_frames=256
+SignalSource.gain=50
+SignalSource.antenna=TX/RX
+SignalSource.if_bw=56000000
+SignalSource.AGC_enabled=false
+SignalSource.samples=0
+SignalSource.repeat=false
+SignalSource.RF_channels=3
+SignalSource.enable_throttle_control=false
+SignalSource.dump=false
+
+
+
+;######### SIGNAL_CONDITIONER CONFIG ############
+SignalConditioner0.implementation=Signal_Conditioner
+SignalConditioner1.implementation=Signal_Conditioner
+SignalConditioner2.implementation=Signal_Conditioner
+
+;######### DATA_TYPE_ADAPTER CONFIG ############
+DataTypeAdapter0.implementation=Pass_Through
+DataTypeAdapter1.implementation=Pass_Through
+DataTypeAdapter2.implementation=Pass_Through
+
+;######### INPUT_FILTER CONFIG ############
+InputFilter0.implementation=Freq_Xlating_Fir_Filter
+InputFilter0.decimation_factor=7
+InputFilter0.input_item_type=gr_complex
+InputFilter0.output_item_type=gr_complex
+InputFilter0.taps_item_type=float
+InputFilter0.filter_type=lowpass
+InputFilter0.bw=7000000
+InputFilter0.tw=500000
+InputFilter0.IF=-22902000
+InputFilter0.sampling_frequency=56000000
+InputFilter0.dump=false
+InputFilter0.dump_filename=../data/input_filter.dat
+
+;######### INPUT_FILTER CONFIG ############
+InputFilter1.implementation=Freq_Xlating_Fir_Filter
+InputFilter1.decimation_factor=7
+InputFilter1.input_item_type=gr_complex
+InputFilter1.output_item_type=gr_complex
+InputFilter1.taps_item_type=float
+InputFilter1.filter_type=lowpass
+InputFilter1.bw=7000000
+InputFilter1.tw=500000
+InputFilter1.IF=-8580000
+InputFilter1.sampling_frequency=56000000
+InputFilter1.dump=false
+InputFilter1.dump_filename=../data/input_filter.dat
+
+;######### INPUT_FILTER CONFIG ############
+InputFilter2.implementation=Freq_Xlating_Fir_Filter
+InputFilter2.decimation_factor=7
+InputFilter2.input_item_type=gr_complex
+InputFilter2.output_item_type=gr_complex
+InputFilter2.taps_item_type=float
+InputFilter2.filter_type=lowpass
+InputFilter2.bw=7000000
+InputFilter2.tw=500000
+InputFilter2.IF=18000000
+InputFilter2.sampling_frequency=56000000
+InputFilter2.dump=false
+InputFilter2.dump_filename=../data/input_filter.dat
+
+;######### RESAMPLER CONFIG ############
+Resampler0.implementation=Pass_Through
+Resampler1.implementation=Pass_Through
+Resampler2.implementation=Pass_Through
+
+;######### CHANNELS GLOBAL CONFIG ############
+Channels_1B.count=10
+Channels_1C.count=10
+Channels_B1.count=14
+Channels_1G.count=8
+
+Channels_1B.RF_channel_ID=1
+Channels_1C.RF_channel_ID=1
+Channels_B1.RF_channel_ID=0
+Channels_1G.RF_channel_ID=2
+
+
+Channels.in_acquisition=2
+
+;######### ACQUISITION BEIDOU CONFIG ############
+Acquisition_B1.implementation=BEIDOU_B1I_PCPS_Acquisition
+Acquisition_B1.item_type=gr_complex
+Acquisition_B1.coherent_integration_time_ms=2
+;Acquisition_B1.max_dwells=2
+;Acquisition_B1.pfa=0.02
+Acquisition_B1.pfa=0.000002
+Acquisition_B1.doppler_max=6000
+Acquisition_B1.doppler_step=100
+Acquisition_B1.dump=false
+Acquisition_B1.dump_filename=./bds_acq
+;Acquisition_B1.blocking=true
+Acquisition_B1.bit_transition_flag = false;
+
+;######### ACQUISITION GPS CONFIG ############
+Acquisition_1C.implementation=GPS_L1_CA_PCPS_Acquisition
+Acquisition_1C.item_type=gr_complex
+Acquisition_1C.coherent_integration_time_ms=1
+Acquisition_1C.pfa=0.015
+Acquisition_1C.doppler_max=6000
+Acquisition_1C.doppler_step=200
+Acquisition_1C.max_dwells=4
+;Acquisition_1C.blocking=true
+Acquisition_1C.dump=false
+Acquisition_1C.dump_filename=./acq_dump.dat
+
+;######### ACQUISITION GALILEO CONFIG ############
+Acquisition_1B.implementation=Galileo_E1_PCPS_Ambiguous_Acquisition
+Acquisition_1B.coherent_integration_time_ms=2
+;Acquisition_1B.pfa=0.000008
+Acquisition_1B.pfa=0.025
+Acquisition_1B.doppler_max=6000
+Acquisition_1B.doppler_step=200
+Acquisition_1B.max_dwells=4
+;Acquisition_1B.repeat_satellite=true
+Acquisition_1B.cboc=true
+;Acquisition_1B.blocking=true
+Acquisition_1B.dump=false
+Acquisition_1B.dump_filename=./acq_dump.dat
+
+;######### ACQUISITION GLONASS CONFIG ############
+Acquisition_1G.implementation=GLONASS_L1_CA_PCPS_Acquisition
+Acquisition_1G.item_type=gr_complex
+Acquisition_1G.coherent_integration_time_ms=1
+Acquisition_1G.max_dwells=4
+Acquisition_1G.pfa=0.02
+Acquisition_1G.doppler_max=6000
+Acquisition_1G.doppler_step=100
+Acquisition_1G.dump=false
+Acquisition_1G.dump_filename=./G1_acq
+
+
+
+;######### TRACKING BEIDOU CONFIG ############
+Tracking_B1.implementation=BEIDOU_B1I_DLL_PLL_Tracking
+Tracking_B1.item_type=gr_complex
+Tracking_B1.extend_correlation_symbols=10
+Tracking_B1.pll_bw_hz=50.0
+Tracking_B1.dll_bw_hz=2.00
+Tracking_B1.pll_bw_narrow_hz=15.0
+Tracking_B1.dll_bw_narrow_hz=1.50
+;Tracking_B1.cn0_min=20
+;Tracking_B1.fll_bw_hz=20
+;Tracking_B1.enable_fll_pull_in=true
+;Tracking_B1.enable_fll_steady_state=false
+Tracking_B1.dump=false
+Tracking_B1.dump_filename=./epl_tracking_ch_
+
+;######### TRACKING GPS CONFIG ############
+Tracking_1C.implementation=GPS_L1_CA_DLL_PLL_Tracking
+Tracking_1C.item_type=gr_complex
+Tracking_1C.extend_correlation_symbols=10
+Tracking_1C.early_late_space_chips=0.5
+Tracking_1C.early_late_space_narrow_chips=0.15
+Tracking_1C.pll_bw_hz=30.0
+Tracking_1C.dll_bw_hz=2.0
+Tracking_1C.pll_bw_narrow_hz=10.0
+Tracking_1C.dll_bw_narrow_hz=1.50
+Tracking_1C.fll_bw_hz=10
+Tracking_1C.enable_fll_pull_in=true
+Tracking_1C.enable_fll_steady_state=false
+Tracking_1C.dump=false
+Tracking_1C.dump_filename=tracking_ch_
+
+;######### TRACKING GALILEO CONFIG ############
+Tracking_1B.implementation=Galileo_E1_DLL_PLL_VEML_Tracking
+Tracking_1B.extend_correlation_symbols=4
+Tracking_1B.item_type=gr_complex
+Tracking_1B.pll_bw_hz=30.0
+Tracking_1B.dll_bw_hz=2.0
+Tracking_1B.pll_bw_narrow_hz=20.0
+Tracking_1B.dll_bw_narrow_hz=1.50
+Tracking_1B.track_pilot=true
+Tracking_1B.enable_fll_pull_in=true;
+Tracking_1B.enable_fll_steady_state=false
+Tracking_1B.fll_bw_hz=20
+
+;######### TRACKING GLONASS CONFIG ############
+Tracking_1G.implementation=GLONASS_L1_CA_DLL_PLL_C_Aid_Tracking
+Tracking_1G.item_type=gr_complex
+Tracking_1G.pll_bw_hz=40
+Tracking_1G.dll_bw_hz=2.5
+Tracking_1G.extend_correlation_ms=1
+Tracking_1G.pll_bw_narrow_hz=20
+Tracking_1G.dll_bw_narrow_hz=1.5
+Tracking_1G.dump=false
+Tracking_1G.dump_filename=./epl_tracking_ch_
+
+
+
+;######### TELEMETRY DECODER BEIDOU CONFIG ############
+TelemetryDecoder_B1.implementation=BEIDOU_B1I_Telemetry_Decoder
+TelemetryDecoder_B1.dump=false
+
+;######### TELEMETRY DECODER GPS CONFIG ############
+TelemetryDecoder_1C.implementation=GPS_L1_CA_Telemetry_Decoder
+TelemetryDecoder_1C.dump=false
+
+;######### TELEMETRY DECODER GALILEO E1B CONFIG ############
+TelemetryDecoder_1B.implementation=Galileo_E1B_Telemetry_Decoder
+TelemetryDecoder_1B.dump=false
+
+;######### TELEMETRY DECODER GLONASS CONFIG ############
+TelemetryDecoder_1G.implementation=GLONASS_L1_CA_Telemetry_Decoder
+TelemetryDecoder_1G.dump=false
+
+
+;######### OBSERVABLES CONFIG ############
+Observables.implementation=Hybrid_Observables
+Observables.dump=false
+Observables.dump_filename=./observables.dat
+
+;######### PVT CONFIG ############
+PVT.implementation=RTKLIB_PVT
+PVT.threshold_reject_GDOP=100
+PVT.elevation_mask=3
+PVT.raim_fde=1
+PVT.positioning_mode=Single ; options: Single, Static, Kinematic, PPP_Static, PPP_Kinematic
+PVT.iono_model=Broadcast ; options: OFF, Broadcast, SBAS, Iono-Free-LC, Estimate_STEC, IONEX
+PVT.trop_model=Saastamoinen ; options: OFF, Saastamoinen, SBAS, Estimate_ZTD, Estimate_ZTD_Grad
+PVT.output_rate_ms=100
+PVT.display_rate_ms=500
+PVT.enable_rx_clock_correction=true
+PVT.flag_rtcm_server=true
+PVT.flag_rtcm_tty_port=false
+PVT.rtcm_dump_devname=/dev/pts/1
+PVT.rtcm_tcp_port=2101
+PVT.rtcm_MT1019_rate_ms=5000
+PVT.rtcm_MT1077_rate_ms=1000
+PVT.rinex_version=2
+PVT.flag_nmea_tty_port=true
+PVT.nmea_dump_devname=/dev/pts/3
+
+; To use gpsd with GNSS-SDR
+; 1. run socat -d -d pty,raw,echo=0 pty,raw,echo=0
+; 2. Set PVT.nmea_dump_devname to first PTY from socat output
+; 3. run gpsd -b -n -N /dev/pts/4
+; where /dev/pts/4 is the second PTY from socat output
+; 4. run some gpsd client (xgps or other)
+
+
+
+PVT.enable_monitor=true
+PVT.monitor_client_addresses=127.0.0.1
+PVT.monitor_udp_port=1111
+
+Monitor.enable_monitor=true
+Monitor.decimation_factor=4
+Monitor.client_addresses=127.0.0.1
+Monitor.udp_port=1112
+
+;AcquisitionMonitor.enable_monitor=true
+AcquisitionMonitor.client_addresses=127.0.0.1
+AcquisitionMonitor.udp_port=1112
+
+
diff --git a/conf/RealTime_input/gnss-sdr_multichannel_GPS_Galileo_Beidou_L1_hackrf_realtime.conf b/conf/RealTime_input/gnss-sdr_multichannel_GPS_Galileo_Beidou_L1_hackrf_realtime.conf
new file mode 100644
index 0000000000..0844dd1dab
--- /dev/null
+++ b/conf/RealTime_input/gnss-sdr_multichannel_GPS_Galileo_Beidou_L1_hackrf_realtime.conf
@@ -0,0 +1,237 @@
+; This is a GNSS-SDR configuration file
+; The configuration API is described at https://gnss-sdr.org/docs/sp-blocks/
+; SPDX-License-Identifier: GPL-3.0-or-later
+; SPDX-FileCopyrightText: (C) 2010-2020 (see AUTHORS file for a list of contributors)
+
+; You can define your own receiver and invoke it by doing
+; gnss-sdr --config_file=my_GNSS_SDR_configuration.conf
+;
+
+[GNSS-SDR]
+
+;######### GLOBAL OPTIONS ##################
+GNSS-SDR.internal_fs_sps=4000000
+GNSS-SDR.Beidou_banned_prns=56,57,58
+
+
+;######### SIGNAL_SOURCE CONFIG ############
+SignalSource.implementation=Osmosdr_Signal_Source
+SignalSource.item_type=gr_complex
+SignalSource.sampling_frequency=20000000
+SignalSource.freq=1567420000
+SignalSource.if_bw=18000000
+;# Next line enables the internal HackRF One bias (3.3 VDC)
+SignalSource.osmosdr_args=hackrf=0,bias=1,buffers=256
+SignalSource.gain=0
+SignalSource.rf_gain=40
+SignalSource.if_gain=40
+SignalSource.AGC_enabled=false
+SignalSource.samples=0
+SignalSource.repeat=false
+SignalSource.RF_channels=2
+SignalSource.enable_throttle_control=false
+SignalSource.dump=false
+
+
+
+;######### SIGNAL_CONDITIONER CONFIG ############
+SignalConditioner0.implementation=Signal_Conditioner
+SignalConditioner1.implementation=Signal_Conditioner
+
+;######### DATA_TYPE_ADAPTER CONFIG ############
+DataTypeAdapter0.implementation=Pass_Through
+DataTypeAdapter1.implementation=Pass_Through
+
+;######### INPUT_FILTER CONFIG ############
+InputFilter0.implementation=Freq_Xlating_Fir_Filter
+;InputFilter0.implementation=Pass_Through
+InputFilter0.decimation_factor=5
+InputFilter0.input_item_type=gr_complex
+InputFilter0.output_item_type=gr_complex
+InputFilter0.taps_item_type=float
+InputFilter0.filter_type=lowpass
+InputFilter0.bw=3000000
+InputFilter0.tw=1000000
+InputFilter0.IF=-6322000
+InputFilter0.sampling_frequency=20000000
+InputFilter0.dump=false
+InputFilter0.dump_filename=../data/input_filter.dat
+
+;######### INPUT_FILTER CONFIG ############
+InputFilter1.implementation=Freq_Xlating_Fir_Filter
+;InputFilter1.implementation=Pass_Through
+InputFilter1.decimation_factor=5
+InputFilter1.input_item_type=gr_complex
+InputFilter1.output_item_type=gr_complex
+InputFilter1.taps_item_type=float
+InputFilter1.filter_type=lowpass
+InputFilter1.bw=3000000
+InputFilter1.tw=1000000
+InputFilter1.IF=8000000
+InputFilter1.sampling_frequency=20000000
+InputFilter1.dump=false
+InputFilter1.dump_filename=../data/input_filter.dat
+
+
+
+
+
+;######### RESAMPLER CONFIG ############
+Resampler0.implementation=Pass_Through
+Resampler1.implementation=Pass_Through
+
+;######### CHANNELS GLOBAL CONFIG ############
+Channels_1B.count=10
+Channels_1C.count=10
+Channels_B1.count=14
+
+Channels_1B.RF_channel_ID=1
+Channels_1C.RF_channel_ID=1
+Channels_B1.RF_channel_ID=0
+
+
+
+Channels.in_acquisition=10
+
+;######### ACQUISITION BEIDOU CONFIG ############
+Acquisition_B1.implementation=BEIDOU_B1I_PCPS_Acquisition
+Acquisition_B1.item_type=gr_complex
+Acquisition_B1.coherent_integration_time_ms=2
+;Acquisition_B1.max_dwells=2
+;Acquisition_B1.pfa=0.02
+Acquisition_B1.pfa=0.000002
+Acquisition_B1.doppler_max=3800
+Acquisition_B1.doppler_step=100
+Acquisition_B1.dump=false
+Acquisition_B1.dump_filename=./bds_acq
+;Acquisition_B1.blocking=true
+Acquisition_B1.bit_transition_flag = false;
+
+;######### ACQUISITION GPS CONFIG ############
+Acquisition_1C.implementation=GPS_L1_CA_PCPS_Acquisition
+Acquisition_1C.item_type=gr_complex
+Acquisition_1C.coherent_integration_time_ms=1
+Acquisition_1C.pfa=0.015
+Acquisition_1C.doppler_max=5000
+Acquisition_1C.doppler_step=200
+Acquisition_1C.max_dwells=4
+;Acquisition_1C.blocking=true
+Acquisition_1C.dump=false
+Acquisition_1C.dump_filename=./acq_dump.dat
+
+;######### ACQUISITION GALILEO CONFIG ############
+Acquisition_1B.implementation=Galileo_E1_PCPS_Ambiguous_Acquisition
+Acquisition_1B.coherent_integration_time_ms=2
+;Acquisition_1B.pfa=0.000008
+Acquisition_1B.pfa=0.025
+Acquisition_1B.doppler_max=5000
+Acquisition_1B.doppler_step=200
+Acquisition_1B.max_dwells=4
+;Acquisition_1B.repeat_satellite=true
+Acquisition_1B.cboc=true
+;Acquisition_1B.blocking=true
+Acquisition_1B.dump=false
+Acquisition_1B.dump_filename=./acq_dump.dat
+
+
+
+
+;######### TRACKING BEIDOU CONFIG ############
+Tracking_B1.implementation=BEIDOU_B1I_DLL_PLL_Tracking
+Tracking_B1.item_type=gr_complex
+Tracking_B1.extend_correlation_symbols=10
+Tracking_B1.pll_bw_hz=30.0
+Tracking_B1.dll_bw_hz=2.00
+Tracking_B1.pll_bw_narrow_hz=15.0
+Tracking_B1.dll_bw_narrow_hz=0.50
+;Tracking_B1.cn0_min=20
+Tracking_B1.fll_bw_hz=20
+Tracking_B1.enable_fll_pull_in=true
+Tracking_B1.enable_fll_steady_state=false
+Tracking_B1.dump=false
+Tracking_B1.dump_filename=./epl_tracking_ch_
+
+;######### TRACKING GPS CONFIG ############
+Tracking_1C.implementation=GPS_L1_CA_DLL_PLL_Tracking
+Tracking_1C.item_type=gr_complex
+Tracking_1C.extend_correlation_symbols=10
+Tracking_1C.early_late_space_chips=0.5
+Tracking_1C.early_late_space_narrow_chips=0.15
+Tracking_1C.pll_bw_hz=30.0
+Tracking_1C.dll_bw_hz=2.0
+Tracking_1C.pll_bw_narrow_hz=10.0
+Tracking_1C.dll_bw_narrow_hz=0.50
+Tracking_1C.fll_bw_hz=10
+Tracking_1C.enable_fll_pull_in=true
+Tracking_1C.enable_fll_steady_state=false
+Tracking_1C.dump=false
+Tracking_1C.dump_filename=tracking_ch_
+
+;######### TRACKING GALILEO CONFIG ############
+Tracking_1B.implementation=Galileo_E1_DLL_PLL_VEML_Tracking
+Tracking_1B.extend_correlation_symbols=4
+Tracking_1B.item_type=gr_complex
+Tracking_1B.pll_bw_hz=30.0
+Tracking_1B.dll_bw_hz=2.0
+Tracking_1B.pll_bw_narrow_hz=20.0
+Tracking_1B.dll_bw_narrow_hz=0.50
+Tracking_1B.track_pilot=true
+Tracking_1B.enable_fll_pull_in=true;
+Tracking_1B.enable_fll_steady_state=false
+Tracking_1B.fll_bw_hz=20
+
+
+;######### TELEMETRY DECODER BEIDOU CONFIG ############
+TelemetryDecoder_B1.implementation=BEIDOU_B1I_Telemetry_Decoder
+TelemetryDecoder_B1.dump=false
+
+;######### TELEMETRY DECODER GPS CONFIG ############
+TelemetryDecoder_1C.implementation=GPS_L1_CA_Telemetry_Decoder
+TelemetryDecoder_1C.dump=false
+
+;######### TELEMETRY DECODER GALILEO E1B CONFIG ############
+TelemetryDecoder_1B.implementation=Galileo_E1B_Telemetry_Decoder
+TelemetryDecoder_1B.dump=false
+
+
+
+;######### OBSERVABLES CONFIG ############
+Observables.implementation=Hybrid_Observables
+Observables.dump=false
+Observables.dump_filename=./observables.dat
+
+;######### PVT CONFIG ############
+PVT.implementation=RTKLIB_PVT
+PVT.threshold_reject_GDOP=100
+PVT.elevation_mask=4
+PVT.positioning_mode=Single ; options: Single, Static, Kinematic, PPP_Static, PPP_Kinematic
+PVT.iono_model=Broadcast ; options: OFF, Broadcast, SBAS, Iono-Free-LC, Estimate_STEC, IONEX
+PVT.trop_model=Saastamoinen ; options: OFF, Saastamoinen, SBAS, Estimate_ZTD, Estimate_ZTD_Grad
+PVT.output_rate_ms=100
+PVT.display_rate_ms=500
+PVT.enable_rx_clock_correction=true
+PVT.flag_rtcm_server=true
+PVT.flag_rtcm_tty_port=false
+PVT.rtcm_dump_devname=/dev/pts/1
+PVT.rtcm_tcp_port=2101
+PVT.rtcm_MT1019_rate_ms=5000
+PVT.rtcm_MT1077_rate_ms=1000
+PVT.rinex_version=2
+PVT.flag_nmea_tty_port=true
+PVT.nmea_dump_devname=/dev/pts/3
+
+
+PVT.enable_monitor=true
+PVT.monitor_client_addresses=127.0.0.1
+PVT.monitor_udp_port=1111
+
+Monitor.enable_monitor=true
+Monitor.decimation_factor=4
+Monitor.client_addresses=127.0.0.1
+Monitor.udp_port=1112
+
+AcquisitionMonitor.enable_monitor=true
+AcquisitionMonitor.client_addresses=127.0.0.1
+AcquisitionMonitor.udp_port=1112
+
+
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 0a1b7fee4d..e7e594fb97 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -14,10 +14,57 @@ All notable changes to GNSS-SDR will be documented in this file.
## [Unreleased](https://github.com/gnss-sdr/gnss-sdr/tree/next)
-### Improvements in Usability
+### Improvements in Interoperability:
+
+- Improved error handling in UDP connections.
+- Make it possible to receive multiple constellations using a single channel
+ wideband device (HackRF/LimeSDR/USRP). Demonstration:
+ https://www.youtube.com/watch?v=ZQs2sFchJ6w
+ https://www.youtube.com/watch?v=HnZkKj9a-QM
+
+### Improvements in Portability:
+
+- Fix building against google-glog 0.7.x.
+- Find dependencies in the loongarch64 architecture.
+- Soft transition from [GFlags](https://github.com/gflags/gflags) and
+ [Google Logging (glog)](https://github.com/google/glog) to Abseil
+ [Logging](https://abseil.io/docs/cpp/guides/logging) and
+ [Flags](https://abseil.io/docs/cpp/guides/flags) libraries. While gflags and
+ glog have dutifully served GNSS-SDR for over a decade, they are now showing
+ signs of aging. The latest version of gflags dates back six years now, with
+ its last commit in the master branch occurring two years ago. Glog remains
+ well maintained, with its latest version v0.7.0 released in February 2024, but
+ with no active development of new features and stuck at C++14. Abseil, on the
+ other hand, represents a contemporary evolution in software development,
+ supports C++17 and C++20, and has absorbed the functionalities of flags and
+ logging from its predecessors. Furthermore, as Abseil has become a
+ prerequisite for the latest versions of Protocol Buffers, its eventual
+ inclusion in GNSS-SDR's indirect dependencies is inevitable. Leveraging Abseil
+ allows for eliminating the need for gflags and glog, thereby reducing the
+ number of mandatory dependencies for GNSS-SDR in forthcoming GNU/Linux
+ distributions. For seamless integration, GNSS-SDR requires a quite recent
+ minimum version of Abseil, v20240116. If an older version is detected, the
+ library will not be utilized, and GNSS-SDR will fall back to using gflags and
+ glog, which still can be used and are fully supported. A new CMake
+ configuration option `-DENABLE_GLOG_AND_GFLAGS=ON` is available to force the
+ usage of glog and gflags instead of Abseil, even if a valid version of that
+ library is present. If the Abseil version installed in your system is too old
+ but you still want to try it, you can also force the downloading and building
+ of a recent version with the new CMake configuration flag
+ `-DENABLE_OWN_ABSEIL=ON` (requires CMake >= 3.24, otherwise it has no effect).
+ This change has a downside in maintainability, since the source code becomes
+ plagued with preprocessor directives required to maintain compatibility both
+ with gflags and glog, and with Abseil.
+
+### Improvements in Usability:
- Tidy up the `conf/` folder.
+See the definitions of concepts and metrics at
+https://gnss-sdr.org/design-forces/
+
+
+
## [GNSS-SDR v0.0.19.1](https://github.com/gnss-sdr/gnss-sdr/releases/tag/v0.0.19.1) - 2024-01-26
[](https://doi.org/10.5281/zenodo.10579595)
@@ -102,7 +149,7 @@ All notable changes to GNSS-SDR will be documented in this file.
overkilling nine (the ninth decimal place worths up to 110 microns).
Similarly, height in meters is now reported with two decimal places instead of
three, and velocity in m/s also with two decimal places instead of three.
-- Fixed the rate at which KLM, GPX, GeoJSON, and NMEA annotations are made. The
+- Fixed the rate at which KML, GPX, GeoJSON, and NMEA annotations are made. The
rate is now set by `PVT.output_rate_ms` (`500` ms by default), and can be
particularized by `PVT.kml_rate_ms`, `PVT.gpx_rate_ms`, `PVT.geojson_rate_ms`,
and `PVT.nmea_rate_ms`. Those values should be multiples of
@@ -318,7 +365,7 @@ https://gnss-sdr.org/design-forces/
- Fixed building against GNU Radio v3.10.X.Y, which does not support the C++20
standard.
- Fixed building against GNU Radio v3.10.X.Y, which replaced
- [log4cpp](http://log4cpp.sourceforge.net/) by the
+ [log4cpp](https://log4cpp.sourceforge.net/) by the
[spdlog](https://github.com/gabime/spdlog) and
[fmt](https://github.com/fmtlib/fmt) libraries.
- Updated `cpu_features` library for improved processor detection.
@@ -465,8 +512,7 @@ https://gnss-sdr.org/design-forces/
inconsistencies in the configuration file.
- Fix segmentation fault if the RINEX output was disabled.
- Added a feature that optionally enables the remote monitoring of GPS and
- Galileo ephemeris using UDP and
- [Protocol Buffers](https://developers.google.com/protocol-buffers).
+ Galileo ephemeris using UDP and [Protocol Buffers](https://protobuf.dev/).
- Now building the software passing the `-DENABLE_FPGA=ON` to CMake does not
make the receiver unusable when running on non-FPGA-enabled platforms. On
FPGA-enabled platforms, now it is possible to run non-FPGA-enabled
diff --git a/docs/doxygen/other/main_page.dox b/docs/doxygen/other/main_page.dox
index 0968c3eb91..5545c2baed 100644
--- a/docs/doxygen/other/main_page.dox
+++ b/docs/doxygen/other/main_page.dox
@@ -77,19 +77,19 @@ As outputs, it provides:
In principle, GNSS-SDR can be built in any Unix-like system. In practice, it depends on being able to install all the required dependencies. See the building guide page for details about the project's
dependencies and build process. Mainly, it consists on installing GNU Radio plus some few more libraries:
-\li Armadillo, a C++ linear algebra library,
+\li Armadillo, a C++ linear algebra library,
\li Boost, a set of free peer-reviewed portable C++ source libraries,
\li Gflags, a library that implements commandline flags processing,
\li Glog, a library that implements application-level logging,
\li Googletest, Google's framework for writing C++ tests,
\li Mako, a template library written in Python,
\li Matio, a MATLAB MAT File I/O Library,
-\li Protocol Buffers, a language-neutral, platform-neutral extensible mechanism for serializing structured data,
+\li Protocol Buffers, a language-neutral, platform-neutral extensible mechanism for serializing structured data,
\li PugiXML, a light-weight, simple and fast XML parser for C++ with XPath support,
\li Volk, a Vector-Optimized Library of Kernels which provides an abstraction of optimized math routines targeting several SIMD processors,
and, optionally,
-\li GNU Radio modules for hardware interface (gr-uhd, gr-osmosdr, gr-iio),
+\li GNU Radio modules for hardware interface (gr-uhd, gr-osmosdr, gr-iio),
\li Benchmark, a library to benchmark code snippets,
\li Gperftools, which provides fast, multi-threaded malloc() and performance analysis tools.
diff --git a/docs/doxygen/other/reference_docs.dox b/docs/doxygen/other/reference_docs.dox
index 00af2e1a22..5871776d5b 100644
--- a/docs/doxygen/other/reference_docs.dox
+++ b/docs/doxygen/other/reference_docs.dox
@@ -153,7 +153,7 @@ automatically selected by the CMake script):
You can get it from ISO, IEC
- or ANSI. The closest free working document available is
ISO, IEC
- or ANSI. The closest free working document available is
N4659.
C++14: A former ISO C++ standard was officially known as ISO International Standard ISO/IEC 14882:2014 – Programming languages – C++.
You can get it from ISO or ANSI. The closest free working document available is
N4296.
C++11: An older ISO C++ standard was ISO/IEC 14882:2011.
You can get it from ISO. The closest free working document available is N3337.
@@ -207,7 +207,7 @@ User plane protocols:
\li Open Mobile Alliance (OMA), Secure User Plane Location Architecture Version 2 (SUPL 2.0), April 2012.
LTE Release 9 introduced extension hooks in LPP messages, so that the bodies external to 3GPP could extend the LPP feature set. OMA LPP extensions (LPPe), supported in SUPL 3.0, build on top of the 3GPP LPP reusing its procedures and data types.
-Check the OMA Specifications webpage for updated information about LPP Extensions (LPPe) Specification.
+Check the OMA Specifications webpage for updated information about LPP Extensions (LPPe) Specification.
\li The OMA Mobile Location Protocol (MLP) V3.5
is an application-level protocol for getting the position of mobile stations
diff --git a/docs/protobuf/README.md b/docs/protobuf/README.md
index a555ae44ce..438a9d66d8 100644
--- a/docs/protobuf/README.md
+++ b/docs/protobuf/README.md
@@ -11,9 +11,8 @@ SPDX-FileCopyrightText: 2011-2020 Carles Fernandez-Prades
Files in this folder describe structured data formats that are generated by
-GNSS-SDR. They use
-[Protocol Buffers](https://developers.google.com/protocol-buffers/)'
-[proto3](https://developers.google.com/protocol-buffers/docs/proto3) syntax.
+GNSS-SDR. They use [Protocol Buffers](https://protobuf.dev/)'
+[proto3](https://protobuf.dev/programming-guides/proto3/) syntax.
From those files, the protocol buffer compiler creates classes that implement
automatic encoding and parsing of the protocol buffer data with an efficient
diff --git a/src/algorithms/PVT/adapters/CMakeLists.txt b/src/algorithms/PVT/adapters/CMakeLists.txt
index 658e493ac0..415fb13d40 100644
--- a/src/algorithms/PVT/adapters/CMakeLists.txt
+++ b/src/algorithms/PVT/adapters/CMakeLists.txt
@@ -23,10 +23,16 @@ target_link_libraries(pvt_adapters
pvt_gr_blocks
PRIVATE
gnss_sdr_flags
- Glog::glog
pvt_libs
)
+if(ENABLE_GLOG_AND_GFLAGS)
+ target_link_libraries(pvt_adapters PRIVATE Glog::glog)
+ target_compile_definitions(pvt_adapters PRIVATE -DUSE_GLOG_AND_GFLAGS=1)
+else()
+ target_link_libraries(pvt_adapters PRIVATE absl::flags absl::log)
+endif()
+
target_include_directories(pvt_adapters
PUBLIC
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
diff --git a/src/algorithms/PVT/adapters/rtklib_pvt.cc b/src/algorithms/PVT/adapters/rtklib_pvt.cc
index a81ccbdef7..140ac1203f 100644
--- a/src/algorithms/PVT/adapters/rtklib_pvt.cc
+++ b/src/algorithms/PVT/adapters/rtklib_pvt.cc
@@ -26,8 +26,12 @@
#include "gps_ephemeris.h" // for Gps_Ephemeris
#include "pvt_conf.h" // for Pvt_Conf
#include "rtklib_rtkpos.h" // for rtkfree, rtkinit
-#include // for LOG
#include // for std::cout
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
#if USE_STD_COMMON_FACTOR
#include
namespace bc = std;
@@ -88,6 +92,7 @@ Rtklib_Pvt::Rtklib_Pvt(const ConfigurationInterface* configuration,
// RINEX version
pvt_output_parameters.rinex_version = configuration->property(role + ".rinex_version", 3);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_RINEX_version == "3.01" || FLAGS_RINEX_version == "3.02" || FLAGS_RINEX_version == "3")
{
pvt_output_parameters.rinex_version = 3;
@@ -96,13 +101,29 @@ Rtklib_Pvt::Rtklib_Pvt(const ConfigurationInterface* configuration,
{
pvt_output_parameters.rinex_version = 2;
}
+#else
+ if (absl::GetFlag(FLAGS_RINEX_version) == "3.01" || absl::GetFlag(FLAGS_RINEX_version) == "3.02" || absl::GetFlag(FLAGS_RINEX_version) == "3")
+ {
+ pvt_output_parameters.rinex_version = 3;
+ }
+ else if (absl::GetFlag(FLAGS_RINEX_version) == "2.10" || absl::GetFlag(FLAGS_RINEX_version) == "2.11" || absl::GetFlag(FLAGS_RINEX_version) == "2")
+ {
+ pvt_output_parameters.rinex_version = 2;
+ }
+#endif
pvt_output_parameters.rinexobs_rate_ms = bc::lcm(configuration->property(role + ".rinexobs_rate_ms", 1000), pvt_output_parameters.output_rate_ms);
pvt_output_parameters.rinex_name = configuration->property(role + ".rinex_name", std::string("-"));
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_RINEX_name != "-")
{
pvt_output_parameters.rinex_name = FLAGS_RINEX_name;
}
-
+#else
+ if (absl::GetFlag(FLAGS_RINEX_name) != "-")
+ {
+ pvt_output_parameters.rinex_name = absl::GetFlag(FLAGS_RINEX_name);
+ }
+#endif
// RTCM Printer settings
pvt_output_parameters.flag_rtcm_tty_port = configuration->property(role + ".flag_rtcm_tty_port", false);
pvt_output_parameters.rtcm_dump_devname = configuration->property(role + ".rtcm_dump_devname", default_rtcm_dump_devname);
diff --git a/src/algorithms/PVT/gnuradio_blocks/CMakeLists.txt b/src/algorithms/PVT/gnuradio_blocks/CMakeLists.txt
index ae1b728bf7..1964d15338 100644
--- a/src/algorithms/PVT/gnuradio_blocks/CMakeLists.txt
+++ b/src/algorithms/PVT/gnuradio_blocks/CMakeLists.txt
@@ -27,11 +27,16 @@ target_link_libraries(pvt_gr_blocks
PRIVATE
algorithms_libs
pvt_libs
- Gflags::gflags
- Glog::glog
Boost::serialization
)
+if(ENABLE_GLOG_AND_GFLAGS)
+ target_link_libraries(pvt_gr_blocks PRIVATE Gflags::gflags Glog::glog)
+ target_compile_definitions(pvt_gr_blocks PRIVATE -DUSE_GLOG_AND_GFLAGS=1)
+else()
+ target_link_libraries(pvt_gr_blocks PRIVATE absl::log)
+endif()
+
if(GNURADIO_USES_STD_POINTERS)
target_compile_definitions(pvt_gr_blocks
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc
index 927c0aebb3..5ff357ff30 100644
--- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc
+++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_gs.cc
@@ -64,7 +64,6 @@
#include
#include
#include // for nvp, make_nvp
-#include // for LOG
#include // for io_signature
#include // for mp
#include // for sort, unique
@@ -82,6 +81,12 @@
#include // for std::type_info, typeid
#include // for pair
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_GENERIC_LAMBDA
#else
#include
diff --git a/src/algorithms/PVT/libs/CMakeLists.txt b/src/algorithms/PVT/libs/CMakeLists.txt
index 543cdc97c4..af888293e1 100644
--- a/src/algorithms/PVT/libs/CMakeLists.txt
+++ b/src/algorithms/PVT/libs/CMakeLists.txt
@@ -98,11 +98,18 @@ target_link_libraries(pvt_libs
algorithms_libs_rtklib
PRIVATE
algorithms_libs
- Gflags::gflags
- Glog::glog
+ gnss_sdr_flags
Matio::matio
)
+if(ENABLE_GLOG_AND_GFLAGS)
+ target_link_libraries(pvt_libs PUBLIC Glog::glog)
+
+ target_compile_definitions(pvt_libs PUBLIC -DUSE_GLOG_AND_GFLAGS=1)
+else()
+ target_link_libraries(pvt_libs PUBLIC absl::log)
+endif()
+
get_filename_component(PROTO_INCLUDE_HEADERS_DIR ${PROTO_HDRS} DIRECTORY)
# for concurrent_queue.h
diff --git a/src/algorithms/PVT/libs/an_packet_printer.cc b/src/algorithms/PVT/libs/an_packet_printer.cc
index 6618d6982c..22d31371bc 100644
--- a/src/algorithms/PVT/libs/an_packet_printer.cc
+++ b/src/algorithms/PVT/libs/an_packet_printer.cc
@@ -20,7 +20,6 @@
#include "an_packet_printer.h"
#include "rtklib_solver.h" // for Rtklib_Solver
-#include // for DLOG
#include // for M_PI
#include // for memcpy
#include // for fcntl
@@ -29,6 +28,12 @@
#include // values for termios
#include // for write(), read(), close()
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
An_Packet_Printer::An_Packet_Printer(const std::string& an_dump_devname)
: d_start(std::chrono::system_clock::now()),
diff --git a/src/algorithms/PVT/libs/geohash.cc b/src/algorithms/PVT/libs/geohash.cc
index ecc1f6f3ad..44a06adda2 100644
--- a/src/algorithms/PVT/libs/geohash.cc
+++ b/src/algorithms/PVT/libs/geohash.cc
@@ -135,7 +135,7 @@ std::array Geohash::decode(std::string geohash) const
std::array Geohash::bounds(std::string geohash) const
{
- if (geohash.length() == 0)
+ if (geohash.empty())
{
throw std::runtime_error("Invalid geohash");
}
diff --git a/src/algorithms/PVT/libs/geojson_printer.cc b/src/algorithms/PVT/libs/geojson_printer.cc
index f57e9d5821..62c53e82ce 100644
--- a/src/algorithms/PVT/libs/geojson_printer.cc
+++ b/src/algorithms/PVT/libs/geojson_printer.cc
@@ -20,13 +20,18 @@
#include "gnss_sdr_filesystem.h"
#include "pvt_solution.h"
#include
-#include
#include // for tm
#include // for exception
#include // for operator<<
#include // for cout, cerr
#include // for stringstream
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
GeoJSON_Printer::GeoJSON_Printer(const std::string& base_path) : geojson_base_path(base_path),
first_pos(true)
diff --git a/src/algorithms/PVT/libs/gpx_printer.cc b/src/algorithms/PVT/libs/gpx_printer.cc
index 699f92db51..c2a16bee4d 100644
--- a/src/algorithms/PVT/libs/gpx_printer.cc
+++ b/src/algorithms/PVT/libs/gpx_printer.cc
@@ -20,13 +20,17 @@
#include "gnss_sdr_filesystem.h"
#include "pvt_solution.h"
#include
-#include
#include // for tm
#include // for exception
#include // for operator<<
#include // for cout, cerr
#include // for stringstream
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
Gpx_Printer::Gpx_Printer(const std::string& base_path) : indent(" "),
gpx_base_path(base_path),
diff --git a/src/algorithms/PVT/libs/has_simple_printer.cc b/src/algorithms/PVT/libs/has_simple_printer.cc
index e29df9809e..e05c55f1ff 100644
--- a/src/algorithms/PVT/libs/has_simple_printer.cc
+++ b/src/algorithms/PVT/libs/has_simple_printer.cc
@@ -21,7 +21,6 @@
#include "galileo_has_data.h"
#include "gnss_sdr_filesystem.h"
#include
-#include
#include // for std::find, std::count
#include // for std::bitset
#include // for uint8_t, ...
@@ -32,6 +31,12 @@
#include // for std::cout, std::cerr
#include // for std::stringstream
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
Has_Simple_Printer::Has_Simple_Printer(const std::string& base_path,
const std::string& filename,
diff --git a/src/algorithms/PVT/libs/kml_printer.cc b/src/algorithms/PVT/libs/kml_printer.cc
index 72ea272d9c..8a520aec3f 100644
--- a/src/algorithms/PVT/libs/kml_printer.cc
+++ b/src/algorithms/PVT/libs/kml_printer.cc
@@ -20,7 +20,6 @@
#include "gnss_sdr_filesystem.h"
#include "pvt_solution.h"
#include
-#include
#include // for mkstemp
#include // for tm
#include // for exception
@@ -30,6 +29,11 @@
#include // for S_IXUSR | S_IRWXG | S_IRWXO
#include // for mode_t
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
Kml_Printer::Kml_Printer(const std::string& base_path) : kml_base_path(base_path),
indent(" "),
diff --git a/src/algorithms/PVT/libs/monitor_ephemeris_udp_sink.cc b/src/algorithms/PVT/libs/monitor_ephemeris_udp_sink.cc
index ca4ac6fbd4..f9f48f0bbd 100644
--- a/src/algorithms/PVT/libs/monitor_ephemeris_udp_sink.cc
+++ b/src/algorithms/PVT/libs/monitor_ephemeris_udp_sink.cc
@@ -55,22 +55,24 @@ bool Monitor_Ephemeris_Udp_Sink::write_galileo_ephemeris(const std::shared_ptr
#include
#include
#include
@@ -32,6 +31,12 @@
#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
Nmea_Printer::Nmea_Printer(const std::string& filename,
bool flag_nmea_output_file,
diff --git a/src/algorithms/PVT/libs/pvt_kf.cc b/src/algorithms/PVT/libs/pvt_kf.cc
index 805a53a577..b75e5e17ff 100644
--- a/src/algorithms/PVT/libs/pvt_kf.cc
+++ b/src/algorithms/PVT/libs/pvt_kf.cc
@@ -16,8 +16,12 @@
*/
#include "pvt_kf.h"
-#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
void Pvt_Kf::init_Kf(const arma::vec& p,
const arma::vec& v,
diff --git a/src/algorithms/PVT/libs/pvt_solution.cc b/src/algorithms/PVT/libs/pvt_solution.cc
index c97a12d702..da14f8be4f 100644
--- a/src/algorithms/PVT/libs/pvt_solution.cc
+++ b/src/algorithms/PVT/libs/pvt_solution.cc
@@ -17,10 +17,14 @@
#include "pvt_solution.h"
#include "MATH_CONSTANTS.h"
-#include
#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
int Pvt_Solution::cart2geo(double X, double Y, double Z, int elipsoid_selection)
{
diff --git a/src/algorithms/PVT/libs/rinex_printer.cc b/src/algorithms/PVT/libs/rinex_printer.cc
index 6c2d322d58..0e4367ea2e 100644
--- a/src/algorithms/PVT/libs/rinex_printer.cc
+++ b/src/algorithms/PVT/libs/rinex_printer.cc
@@ -42,7 +42,6 @@
#include
#include
#include
-#include
#include // for min and max
#include
#include // for floor
@@ -55,6 +54,11 @@
#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
Rinex_Printer::Rinex_Printer(int32_t conf_version,
const std::string& base_path,
diff --git a/src/algorithms/PVT/libs/rtcm.h b/src/algorithms/PVT/libs/rtcm.h
index c7011eec39..1ce2bbd1a4 100644
--- a/src/algorithms/PVT/libs/rtcm.h
+++ b/src/algorithms/PVT/libs/rtcm.h
@@ -29,7 +29,6 @@
#include "gps_ephemeris.h"
#include
#include
-#include
#include // for std::max, std::min, std::copy_n
#include
#include
@@ -47,6 +46,12 @@
#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
/** \addtogroup PVT
* \{ */
/** \addtogroup PVT_libs
@@ -723,10 +728,10 @@ class Rtcm
{
if (first == true)
{
- LOG(INFO) << "Client says:";
+ DLOG(INFO) << "Client says:";
first = false;
}
- LOG(INFO) << client_says;
+ DLOG(INFO) << client_says;
client_says = client_says.substr(80, client_says.length() - 80);
}
do_read_message_header();
diff --git a/src/algorithms/PVT/libs/rtcm_printer.cc b/src/algorithms/PVT/libs/rtcm_printer.cc
index cb07b9eea9..f6e3822594 100644
--- a/src/algorithms/PVT/libs/rtcm_printer.cc
+++ b/src/algorithms/PVT/libs/rtcm_printer.cc
@@ -30,7 +30,6 @@
#include "rtcm.h"
#include "rtklib_solver.h"
#include
-#include
#include // for tm
#include // for exception
#include // for O_RDWR
@@ -39,6 +38,11 @@
#include // for close, write
#include // for std::vector
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
Rtcm_Printer::Rtcm_Printer(const std::string& filename,
bool flag_rtcm_file_dump,
diff --git a/src/algorithms/PVT/libs/rtklib_solver.cc b/src/algorithms/PVT/libs/rtklib_solver.cc
index d9c90050b2..7dde00c89e 100644
--- a/src/algorithms/PVT/libs/rtklib_solver.cc
+++ b/src/algorithms/PVT/libs/rtklib_solver.cc
@@ -37,7 +37,6 @@
#include "rtklib_ephemeris.h"
#include "rtklib_rtkpos.h"
#include "rtklib_solution.h"
-#include
#include
#include "iostream"
#include
@@ -47,6 +46,11 @@
#include
using namespace std;
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
Rtklib_Solver::Rtklib_Solver(const rtk_t &rtk,
const Pvt_Conf &conf,
diff --git a/src/algorithms/acquisition/adapters/CMakeLists.txt b/src/algorithms/acquisition/adapters/CMakeLists.txt
index 41cfe8a8aa..85eb8672e8 100644
--- a/src/algorithms/acquisition/adapters/CMakeLists.txt
+++ b/src/algorithms/acquisition/adapters/CMakeLists.txt
@@ -104,9 +104,15 @@ target_link_libraries(acquisition_adapters
PRIVATE
gnss_sdr_flags
Boost::headers
- Glog::glog
)
+if(ENABLE_GLOG_AND_GFLAGS)
+ target_link_libraries(acquisition_adapters PRIVATE Glog::glog)
+ target_compile_definitions(acquisition_adapters PRIVATE -DUSE_GLOG_AND_GFLAGS=1)
+else()
+ target_link_libraries(acquisition_adapters PRIVATE absl::flags absl::log)
+endif()
+
if(GNURADIO_USES_STD_POINTERS)
target_compile_definitions(acquisition_adapters
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
diff --git a/src/algorithms/acquisition/adapters/beidou_b1i_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/beidou_b1i_pcps_acquisition.cc
index 180a95795f..2e293af435 100644
--- a/src/algorithms/acquisition/adapters/beidou_b1i_pcps_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/beidou_b1i_pcps_acquisition.cc
@@ -23,10 +23,15 @@
#include "beidou_b1i_signal_replica.h"
#include "configuration_interface.h"
#include "gnss_sdr_flags.h"
-#include
#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -52,10 +57,17 @@ BeidouB1iPcpsAcquisition::BeidouB1iPcpsAcquisition(
LOG(INFO) << "role " << role;
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
fs_in_ = acq_parameters_.fs_in;
diff --git a/src/algorithms/acquisition/adapters/beidou_b3i_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/beidou_b3i_pcps_acquisition.cc
index a8204a24e9..a5e41a125b 100644
--- a/src/algorithms/acquisition/adapters/beidou_b3i_pcps_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/beidou_b3i_pcps_acquisition.cc
@@ -21,9 +21,14 @@
#include "beidou_b3i_signal_replica.h"
#include "configuration_interface.h"
#include "gnss_sdr_flags.h"
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -48,10 +53,17 @@ BeidouB3iPcpsAcquisition::BeidouB3iPcpsAcquisition(
LOG(INFO) << "role " << role;
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
item_type_ = acq_parameters_.item_type;
diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_8ms_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_8ms_ambiguous_acquisition.cc
index 4ba572b173..903a3748c3 100644
--- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_8ms_ambiguous_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_8ms_ambiguous_acquisition.cc
@@ -21,9 +21,14 @@
#include "galileo_e1_signal_replica.h"
#include "gnss_sdr_flags.h"
#include
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -58,10 +63,17 @@ GalileoE1Pcps8msAmbiguousAcquisition::GalileoE1Pcps8msAmbiguousAcquisition(
fs_in_ = configuration_->property("GNSS-SDR.internal_fs_sps", fs_in_deprecated);
dump_filename_ = configuration_->property(role_ + ".dump_filename", default_dump_filename);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
doppler_max_ = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ doppler_max_ = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
if (sampled_ms_ % 4 != 0)
{
diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition.cc
index f4097b6008..cace01b94c 100644
--- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition.cc
@@ -22,9 +22,14 @@
#include "galileo_e1_signal_replica.h"
#include "gnss_sdr_flags.h"
#include
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -51,10 +56,17 @@ GalileoE1PcpsAmbiguousAcquisition::GalileoE1PcpsAmbiguousAcquisition(
acq_parameters_.ms_per_code = 4;
acq_parameters_.SetFromConfiguration(configuration_, role_, GALILEO_E1_CODE_CHIP_RATE_CPS, GALILEO_E1_OPT_ACQ_FS_SPS);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
item_type_ = acq_parameters_.item_type;
diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.cc
index 87e4c2d06a..900e7ac914 100644
--- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition_fpga.cc
@@ -21,7 +21,6 @@
#include "galileo_e1_signal_replica.h"
#include "gnss_sdr_fft.h"
#include "gnss_sdr_flags.h"
-#include
#include // for fft_complex
#include // for gr_complex
#include // for volk_32fc_conjugate_32fc
@@ -30,6 +29,12 @@
#include // for abs, pow, floor
#include // for complex
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
GalileoE1PcpsAmbiguousAcquisitionFpga::GalileoE1PcpsAmbiguousAcquisitionFpga(
const ConfigurationInterface* configuration,
const std::string& role,
@@ -46,10 +51,17 @@ GalileoE1PcpsAmbiguousAcquisitionFpga::GalileoE1PcpsAmbiguousAcquisitionFpga(
{
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_buff_num, fpga_blk_exp, downsampling_factor_default, GALILEO_E1_CODE_CHIP_RATE_CPS, GALILEO_E1_B_CODE_LENGTH_CHIPS);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
fs_in_ = acq_parameters_.fs_in;
diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc
index c7af648aa9..7006442277 100644
--- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc
@@ -21,8 +21,12 @@
#include "galileo_e1_signal_replica.h"
#include "gnss_sdr_flags.h"
#include
-#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
GalileoE1PcpsCccwsrAmbiguousAcquisition::GalileoE1PcpsCccwsrAmbiguousAcquisition(
const ConfigurationInterface* configuration,
@@ -50,10 +54,17 @@ GalileoE1PcpsCccwsrAmbiguousAcquisition::GalileoE1PcpsCccwsrAmbiguousAcquisition
fs_in_ = configuration_->property("GNSS-SDR.internal_fs_sps", fs_in_deprecated);
dump_filename_ = configuration_->property(role_ + ".dump_filename", default_dump_filename);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
doppler_max_ = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ doppler_max_ = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
if (sampled_ms_ % 4 != 0)
{
diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_quicksync_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_quicksync_ambiguous_acquisition.cc
index 2632418a7e..cafbcf33b9 100644
--- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_quicksync_ambiguous_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_quicksync_ambiguous_acquisition.cc
@@ -21,9 +21,14 @@
#include "galileo_e1_signal_replica.h"
#include "gnss_sdr_flags.h"
#include
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -58,10 +63,17 @@ GalileoE1PcpsQuickSyncAmbiguousAcquisition::GalileoE1PcpsQuickSyncAmbiguousAcqui
fs_in_ = configuration_->property("GNSS-SDR.internal_fs_sps", fs_in_deprecated);
dump_filename_ = configuration_->property(role + ".dump_filename", default_dump_filename);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
doppler_max_ = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ doppler_max_ = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
/* --- Find number of samples per spreading code (4 ms) -----------------*/
code_length_ = static_cast(round(
diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_tong_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_tong_ambiguous_acquisition.cc
index 59bd0e2a01..fca12dbfef 100644
--- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_tong_ambiguous_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_tong_ambiguous_acquisition.cc
@@ -21,9 +21,14 @@
#include "galileo_e1_signal_replica.h"
#include "gnss_sdr_flags.h"
#include
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -71,10 +76,17 @@ GalileoE1PcpsTongAmbiguousAcquisition::GalileoE1PcpsTongAmbiguousAcquisition(
<< sampled_ms_ << " ms will be used.";
}
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
doppler_max_ = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ doppler_max_ = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
bool enable_monitor_output = configuration_->property("AcquisitionMonitor.enable_monitor", false);
diff --git a/src/algorithms/acquisition/adapters/galileo_e5a_noncoherent_iq_acquisition_caf.cc b/src/algorithms/acquisition/adapters/galileo_e5a_noncoherent_iq_acquisition_caf.cc
index b51d12a73b..5fcb2658cd 100644
--- a/src/algorithms/acquisition/adapters/galileo_e5a_noncoherent_iq_acquisition_caf.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e5a_noncoherent_iq_acquisition_caf.cc
@@ -27,9 +27,14 @@
#include "galileo_e5_signal_replica.h"
#include "gnss_sdr_flags.h"
#include
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -67,10 +72,17 @@ GalileoE5aNoncoherentIQAcquisitionCaf::GalileoE5aNoncoherentIQAcquisitionCaf(
int64_t fs_in_deprecated = configuration_->property("GNSS-SDR.internal_fs_hz", 32000000);
fs_in_ = configuration_->property("GNSS-SDR.internal_fs_sps", fs_in_deprecated);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
doppler_max_ = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ doppler_max_ = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
DLOG(INFO) << "role " << role_;
if (sampled_ms_ > 3)
diff --git a/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition.cc
index 3d9eee1fad..c18aa48c20 100644
--- a/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition.cc
@@ -21,10 +21,15 @@
#include "configuration_interface.h"
#include "galileo_e5_signal_replica.h"
#include "gnss_sdr_flags.h"
-#include
#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -51,10 +56,17 @@ GalileoE5aPcpsAcquisition::GalileoE5aPcpsAcquisition(
acq_parameters_.ms_per_code = 1;
acq_parameters_.SetFromConfiguration(configuration, role_, GALILEO_E5A_CODE_CHIP_RATE_CPS, GALILEO_E5A_OPT_ACQ_FS_SPS);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
item_type_ = acq_parameters_.item_type;
diff --git a/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.cc
index f3c0419529..98e8bcf3cb 100644
--- a/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e5a_pcps_acquisition_fpga.cc
@@ -21,7 +21,6 @@
#include "galileo_e5_signal_replica.h"
#include "gnss_sdr_fft.h"
#include "gnss_sdr_flags.h"
-#include
#include // for gr_complex
#include // for volk_32fc_conjugate_32fc
#include
@@ -29,6 +28,12 @@
#include // for abs, pow, floor
#include // for complex
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
GalileoE5aPcpsAcquisitionFpga::GalileoE5aPcpsAcquisitionFpga(
const ConfigurationInterface* configuration,
const std::string& role,
@@ -45,10 +50,17 @@ GalileoE5aPcpsAcquisitionFpga::GalileoE5aPcpsAcquisitionFpga(
{
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_buff_num, fpga_blk_exp, downsampling_factor_default, GALILEO_E5A_CODE_CHIP_RATE_CPS, GALILEO_E5A_CODE_LENGTH_CHIPS);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
fs_in_ = acq_parameters_.fs_in;
diff --git a/src/algorithms/acquisition/adapters/galileo_e5b_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e5b_pcps_acquisition.cc
index 5f8af8bafe..11ecebcdd1 100644
--- a/src/algorithms/acquisition/adapters/galileo_e5b_pcps_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e5b_pcps_acquisition.cc
@@ -22,10 +22,15 @@
#include "configuration_interface.h"
#include "galileo_e5_signal_replica.h"
#include "gnss_sdr_flags.h"
-#include
#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -51,10 +56,17 @@ GalileoE5bPcpsAcquisition::GalileoE5bPcpsAcquisition(const ConfigurationInterfac
acq_parameters_.ms_per_code = 1;
acq_parameters_.SetFromConfiguration(configuration, role_, GALILEO_E5B_CODE_CHIP_RATE_CPS, GALILEO_E5B_OPT_ACQ_FS_SPS);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
item_type_ = acq_parameters_.item_type;
diff --git a/src/algorithms/acquisition/adapters/galileo_e5b_pcps_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/galileo_e5b_pcps_acquisition_fpga.cc
index 83996b5c88..f7a303f2d0 100644
--- a/src/algorithms/acquisition/adapters/galileo_e5b_pcps_acquisition_fpga.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e5b_pcps_acquisition_fpga.cc
@@ -22,13 +22,18 @@
#include "galileo_e5_signal_replica.h"
#include "gnss_sdr_fft.h"
#include "gnss_sdr_flags.h"
-#include
#include // for gr_complex
#include // for volk_32fc_conjugate_32fc
#include // for copy_n
#include // for abs, pow, floor
#include // for complex
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
GalileoE5bPcpsAcquisitionFpga::GalileoE5bPcpsAcquisitionFpga(const ConfigurationInterface* configuration,
const std::string& role,
unsigned int in_streams,
@@ -44,10 +49,17 @@ GalileoE5bPcpsAcquisitionFpga::GalileoE5bPcpsAcquisitionFpga(const Configuration
acq_iq_(configuration->property(role + ".acquire_iq", false))
{
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_buff_num, fpga_blk_exp, downsampling_factor_default, GALILEO_E5B_CODE_CHIP_RATE_CPS, GALILEO_E5B_CODE_LENGTH_CHIPS);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
fs_in_ = acq_parameters_.fs_in;
diff --git a/src/algorithms/acquisition/adapters/galileo_e6_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e6_pcps_acquisition.cc
index eda68fb668..dd76d0d986 100644
--- a/src/algorithms/acquisition/adapters/galileo_e6_pcps_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/galileo_e6_pcps_acquisition.cc
@@ -21,9 +21,14 @@
#include "configuration_interface.h"
#include "galileo_e6_signal_replica.h"
#include "gnss_sdr_flags.h"
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -51,10 +56,17 @@ GalileoE6PcpsAcquisition::GalileoE6PcpsAcquisition(
DLOG(INFO) << "role " << role;
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
item_type_ = acq_parameters_.item_type;
diff --git a/src/algorithms/acquisition/adapters/glonass_l1_ca_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/glonass_l1_ca_pcps_acquisition.cc
index c63eb5ec72..628c96d256 100644
--- a/src/algorithms/acquisition/adapters/glonass_l1_ca_pcps_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/glonass_l1_ca_pcps_acquisition.cc
@@ -23,9 +23,14 @@
#include "configuration_interface.h"
#include "glonass_l1_signal_replica.h"
#include "gnss_sdr_flags.h"
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -51,10 +56,17 @@ GlonassL1CaPcpsAcquisition::GlonassL1CaPcpsAcquisition(
DLOG(INFO) << "role " << role;
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
item_type_ = acq_parameters_.item_type;
diff --git a/src/algorithms/acquisition/adapters/glonass_l2_ca_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/glonass_l2_ca_pcps_acquisition.cc
index 180f50747f..46b6790a45 100644
--- a/src/algorithms/acquisition/adapters/glonass_l2_ca_pcps_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/glonass_l2_ca_pcps_acquisition.cc
@@ -22,9 +22,14 @@
#include "configuration_interface.h"
#include "glonass_l2_signal_replica.h"
#include "gnss_sdr_flags.h"
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -50,10 +55,17 @@ GlonassL2CaPcpsAcquisition::GlonassL2CaPcpsAcquisition(
DLOG(INFO) << "role " << role;
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
item_type_ = acq_parameters_.item_type;
diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc
index 72994eebca..6992b72600 100644
--- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc
@@ -25,9 +25,14 @@
#include "configuration_interface.h"
#include "gnss_sdr_flags.h"
#include "gps_sdr_signal_replica.h"
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -54,10 +59,17 @@ GpsL1CaPcpsAcquisition::GpsL1CaPcpsAcquisition(
DLOG(INFO) << "role " << role;
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fine_doppler.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fine_doppler.cc
index ffe4ca5d2f..f119a60c4a 100644
--- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fine_doppler.cc
+++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fine_doppler.cc
@@ -24,8 +24,12 @@
#include "configuration_interface.h"
#include "gnss_sdr_flags.h"
#include "gps_sdr_signal_replica.h"
-#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
GpsL1CaPcpsAcquisitionFineDoppler::GpsL1CaPcpsAcquisitionFineDoppler(
const ConfigurationInterface* configuration,
@@ -57,10 +61,17 @@ GpsL1CaPcpsAcquisitionFineDoppler::GpsL1CaPcpsAcquisitionFineDoppler(
acq_parameters.dump = dump_;
dump_filename_ = configuration->property(role_ + ".dump_filename", std::move(default_dump_filename));
acq_parameters.dump_filename = dump_filename_;
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
doppler_max_ = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ doppler_max_ = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
acq_parameters.doppler_max = doppler_max_;
acq_parameters.sampled_ms = sampled_ms_;
acq_parameters.max_dwells = max_dwells_;
diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.cc
index cc2713d24a..0242062b08 100644
--- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.cc
+++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fpga.cc
@@ -24,13 +24,18 @@
#include "gnss_sdr_fft.h"
#include "gnss_sdr_flags.h"
#include "gps_sdr_signal_replica.h"
-#include
#include // for gr_complex
#include // for volk_32fc_conjugate_32fc
#include // for copy_n
#include // for abs, pow, floor
#include // for complex
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
GpsL1CaPcpsAcquisitionFpga::GpsL1CaPcpsAcquisitionFpga(
const ConfigurationInterface* configuration,
const std::string& role,
@@ -47,10 +52,17 @@ GpsL1CaPcpsAcquisitionFpga::GpsL1CaPcpsAcquisitionFpga(
DLOG(INFO) << "role " << role;
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
acq_parameters_.doppler_max = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ acq_parameters_.doppler_max = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_max_ = acq_parameters_.doppler_max;
doppler_step_ = static_cast(acq_parameters_.doppler_step);
fs_in_ = acq_parameters_.fs_in;
diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_assisted_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_assisted_acquisition.cc
index 98fb0b9c69..0bd82c2dcd 100644
--- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_assisted_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_assisted_acquisition.cc
@@ -23,8 +23,12 @@
#include "configuration_interface.h"
#include "gnss_sdr_flags.h"
#include "gps_sdr_signal_replica.h"
-#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
GpsL1CaPcpsAssistedAcquisition::GpsL1CaPcpsAssistedAcquisition(
const ConfigurationInterface* configuration,
@@ -51,10 +55,17 @@ GpsL1CaPcpsAssistedAcquisition::GpsL1CaPcpsAssistedAcquisition(
int64_t fs_in_deprecated = configuration->property("GNSS-SDR.internal_fs_hz", 2048000);
fs_in_ = configuration->property("GNSS-SDR.internal_fs_sps", fs_in_deprecated);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
doppler_max_ = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ doppler_max_ = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
doppler_min_ = configuration->property(role_ + ".doppler_min", -doppler_max_);
bool enable_monitor_output = configuration->property("AcquisitionMonitor.enable_monitor", false);
diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_opencl_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_opencl_acquisition.cc
index 05d26212c2..e0352f9b28 100644
--- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_opencl_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_opencl_acquisition.cc
@@ -21,9 +21,14 @@
#include "gnss_sdr_flags.h"
#include "gps_sdr_signal_replica.h"
#include
-#include
#include
+#if USE_GLOG_AND_GFLAGS
+#include
+#else
+#include
+#endif
+
#if HAS_STD_SPAN
#include
namespace own = std;
@@ -58,10 +63,17 @@ GpsL1CaPcpsOpenClAcquisition::GpsL1CaPcpsOpenClAcquisition(
fs_in_ = configuration->property("GNSS-SDR.internal_fs_sps", fs_in_deprecated);
dump_ = configuration->property(role + ".dump", false);
doppler_max_ = configuration->property(role + ".doppler_max", 5000);
+#if USE_GLOG_AND_GFLAGS
if (FLAGS_doppler_max != 0)
{
doppler_max_ = FLAGS_doppler_max;
}
+#else
+ if (absl::GetFlag(FLAGS_doppler_max) != 0)
+ {
+ doppler_max_ = absl::GetFlag(FLAGS_doppler_max);
+ }
+#endif
sampled_ms_ = configuration->property(role + ".coherent_integration_time_ms", 1);
bit_transition_flag_ = configuration->property("Acquisition.bit_transition_flag", false);
diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_quicksync_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_quicksync_acquisition.cc
index db64515418..9fd146be29 100644
--- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_quicksync_acquisition.cc
+++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_quicksync_acquisition.cc
@@ -22,9 +22,14 @@
#include "gnss_sdr_flags.h"
#include "gps_sdr_signal_replica.h"
#include
-#include
#include