Hi,
I am currently working on "asset_tracker" application.
Actually, I need RSSI values to be captured in "asset_tracker", application.
So I am trying to migrate "lte_ble_gateway" (path: nrf/samples/nrf9160/lte_ble_gateway) into asset_tracker application (path: nrf/applications/asset_tracker) and generate the single output binary (.hex).
But I am getting the following build ERRORS from CMake build system.
Could you please help me or give me a reference, how can I successfully migrate/merge 2 different applications into a single.
The following ERRORS logs in CMake build system as follows:
warning: GPS_SIM_THREAD_STACK_SIZE (defined at
ncs/nrf/drivers/gps_sim/Kconfig:150) was assigned the value '2048' but got the
value ''. You can check symbol information (including dependencies) in the 'menuconfig' interface
(see the Application Development Primer section of the manual), or in the Kconfig reference at
docs.zephyrproject.org/.../CONFIG_GPS_SIM_THREAD_STACK_SIZE.html (which
is updated regularly from the master branch). See the 'Setting configuration values' section of the
Board Porting Guide as well.
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/gnuarmemb/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc
-- Using application from ncs/zephyr/subsys/bluetooth/services'
CMake Error at ncs/zephyr/cmake/app/boilerplate.cmake:96 (add_custom_target):
add_custom_target cannot create target "code_data_relocation_target"
because another target with the same name already exists. The existing
target is a custom target created in source directory
"ncs/nrf/applications/asset_tracker". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
ncs/zephyr/subsys/bluetooth/services/CMakeLists.txt:12 (include)
Zephyr version: 2.0.99
-- git describe failed: fatal: No tags can describe 'b41b797295af21173a5e0bde8faa5b0243cb88f4'.
Try --always, or create some tags.;
BUILD_VERSION is left undefined
CMake Error at ncs/zephyr/cmake/app/boilerplate.cmake:145 (add_custom_target):
add_custom_target cannot create target "pristine" because another target
with the same name already exists. The existing target is a custom target
created in source directory
"ncs/nrf/applications/asset_tracker". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/home/nrfsdk/ncs/zephyr/subsys/bluetooth/services/CMakeLists.txt:12 (include)
-- Selected BOARD nrf9160_pca10090ns
-- Found west: local/bin/west (found suitable version "0.6.3", minimum required is "0.6.0")
CMake Error at nrfsdk/ncs/zephyr/cmake/app/boilerplate.cmake:243 (add_custom_target):
add_custom_target cannot create target "usage" because another target with
the same name already exists. The existing target is a custom target
created in source directory
" nrfsdk/ncs/nrf/applications/asset_tracker". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
nrfsdk/ncs/zephyr/subsys/bluetooth/services/CMakeLists.txt:12 (include)
-- Cache files will be written to: .cache/zephyr
USING OUT OF TREE BOARD
-- Loading nrfsdk/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
-- Overlaying nrfsdk/ncs/zephyr/dts/common/common.dts
-- Overlaying nrfsdk/ncs/nrf/applications/asset_tracker/nrf9160_pca10090ns.overlay
Devicetree configuration written to nrfsdk/ncs/nrf/applications/asset_tracker/build/zephyr/subsys/bluetooth/services/zephyr/include/generated/generated_dts_board.conf
CMake Error at nrfsdk/ncs/zephyr/cmake/kconfig.cmake:73 (add_custom_target):
add_custom_target cannot create target "menuconfig" because another target
with the same name already exists. The existing target is a custom target
created in source directory
" nrfsdk/ncs/nrf/applications/asset_tracker". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
nrfsdk/ncs/zephyr/cmake/app/boilerplate.cmake:567 (include)
nrfsdk/ncs/zephyr/subsys/bluetooth/services/CMakeLists.txt:12 (include)
CMake Error at /home/spanidea/nrfsdk/ncs/zephyr/cmake/extensions.cmake:411 (add_library):
add_library cannot create target "app" because another target with the same
name already exists. The existing target is a static library created in
source directory.
CMake Error at /home/spanidea/nrfsdk/ncs/zephyr/CMakeLists.txt:74 (add_library):
add_library cannot create target "zephyr_interface" because another target
with the same name already exists.