Skip to:
When trying to build the 'agl-service-gps' from https://gerrit.automotivelinux.org/gerrit/p/apps/agl-service-gps.git, the cmake fails to find the 'libgps' in the SDK environment for aarch64-agl-linux
[18:40:45] devel@agl-devkit:~/projects/agl-service-gps(master)$ source /xdt/sdk/environment-setup-aarch64-agl-linux
[18:41:04] devel@agl-devkit:~/projects/agl-service-gps/build(master)$ cmake ..– Include: /home/devel/projects/agl-service-gps/conf.d/app-templates/cmake/cmake.d/01-variables.cmake– OSRELEASE = debian
– Include: /home/devel/projects/agl-service-gps/conf.d/app-templates/cmake/cmake.d/02-macros.cmake– Include: /home/devel/projects/agl-service-gps/conf.d/app-templates/cmake/cmake.d/03-extra_targets.cmake– Include: /home/devel/projects/agl-service-gps/conf.d/app-templates/cmake/cmake.d/04-build_options.cmake– – Check gcc_minimal_version (found gcc version 6.2.0) (found g++ version 6.2.0)– – Check kernel_minimal_version (found kernel version 4.9.0)– Checking for module 'libgps'-- No package 'libgps' foundCMake Error at /xdt/sdk/sysroots/x86_64-aglsdk-linux/usr/share/cmake-3.6/Modules/FindPkgConfig.cmake:424 (message): A required package was not foundCall Stack (most recent call first): /xdt/sdk/sysroots/x86_64-aglsdk-linux/usr/share/cmake-3.6/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal) conf.d/app-templates/cmake/cmake.d/04-build_options.cmake:112 (PKG_CHECK_MODULES) conf.d/app-templates/cmake/common.cmake:36 (include) conf.d/cmake/config.cmake:150 (include) CMakeLists.txt:21 (include)
– Configuring incomplete, errors occurred!See also "/home/devel/projects/agl-service-gps/build/CMakeFiles/CMakeOutput.log".
Updating the toolchain fixed the issue for me. thanks!
It is in the SDK for me.. Do note this isn't in the dab toolchain because it is an eel feature.
@Hitendra Nishar : do you try to build with dab or master ?
@Matt Ranostay are the dependencies in the SDK now or do we need to add them ?
When trying to build the 'agl-service-gps' from https://gerrit.automotivelinux.org/gerrit/p/apps/agl-service-gps.git, the cmake fails to find the 'libgps' in the SDK environment for aarch64-agl-linux
[18:40:45] devel@agl-devkit:~/projects/agl-service-gps(master)$ source /xdt/sdk/environment-setup-aarch64-agl-linux
[18:41:04] devel@agl-devkit:~/projects/agl-service-gps/build(master)$ cmake ..
– Include: /home/devel/projects/agl-service-gps/conf.d/app-templates/cmake/cmake.d/01-variables.cmake
– OSRELEASE = debian
– Include: /home/devel/projects/agl-service-gps/conf.d/app-templates/cmake/cmake.d/02-macros.cmake
– Include: /home/devel/projects/agl-service-gps/conf.d/app-templates/cmake/cmake.d/03-extra_targets.cmake
– Include: /home/devel/projects/agl-service-gps/conf.d/app-templates/cmake/cmake.d/04-build_options.cmake
– – Check gcc_minimal_version (found gcc version 6.2.0) (found g++ version 6.2.0)
– – Check kernel_minimal_version (found kernel version 4.9.0)
– Checking for module 'libgps'
-- No package 'libgps' found
CMake Error at /xdt/sdk/sysroots/x86_64-aglsdk-linux/usr/share/cmake-3.6/Modules/FindPkgConfig.cmake:424 (message):
A required package was not found
Call Stack (most recent call first):
/xdt/sdk/sysroots/x86_64-aglsdk-linux/usr/share/cmake-3.6/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal)
conf.d/app-templates/cmake/cmake.d/04-build_options.cmake:112 (PKG_CHECK_MODULES)
conf.d/app-templates/cmake/common.cmake:36 (include)
conf.d/cmake/config.cmake:150 (include)
CMakeLists.txt:21 (include)
– Configuring incomplete, errors occurred!
See also "/home/devel/projects/agl-service-gps/build/CMakeFiles/CMakeOutput.log".