Default template for armarx-package add application not working
The following command log shows how a working project fails to build after running armarx-package add application
.
[▽ code] tobiasjacob@i61spc018:~/code/tutorials/robothandmove/build$ cmake ..
-- Using ArmarXCore @ v0.10.0 Source SDK from: /home/tobiasjacob/code/armarx/ArmarXCore/build
-- ArmarXCore_DEPENDENCIES:
-- ArmarXCore_DISABLED_TARGETS:
-- INTERFACE_DEPENDENCIES:
-- Ice version: 3.7.6
-- Found the following Ice libraries:
-- Ice (required)
-- CMAKE_BUILD_TYPE = Release
-- Using Simox Source-Build from: /home/tobiasjacob/code/simox/build
-- * Including /home/tobiasjacob/code/simox/CMakeModules/SimoxMacros.cmake
CMake Warning at /home/tobiasjacob/code/armarx/ArmarXCore/etc/cmake/ArmarXProject.cmake:74 (message):
Enabling modern CMake project. Please be aware that the macro
'armarx_enable_modern_cmake_project' will be removed once modern CMake
projects will become default in ArmarX.
Call Stack (most recent call first):
CMakeLists.txt:11 (armarx_enable_modern_cmake_project)
--
== Setting up ArmarX project ...
-- ArmarX next generation package.
-- Configuring ArmarX project `robothandmove`.
-- Linux x86_64 target detected
--
== Loading addon `anaconda` ...
--
== Loading addon `astyle_deprecation` ...
--
== Loading addon `boost_test` ...
-- Could NOT find Lcov (missing: Lcov_EXECUTABLE Lcov_GenHtml_EXECUTABLE)
--
== Loading addon `cpack` ...
--
== Loading addon `doxygen` ...
--
== Loading addon `feature_summary` ...
--
== Loading addon `force_colored_output` ...
-- force_colored_output is disabled per user choice.
--
== Loading addon `header_check` ...
--
== Loading addon `remove_obsolete_generated_files` ...
-- Checking generated files and removing them if necessary ...
-- It seems like there are no generated ice header files.
-- ICE summary: No mismatches found.
-- ARON summary: No mismatches found.
--
== Loading addon `target_info` ...
--
-- Finding package `ArmarXGui`.
-- Using ArmarXGui @ v0.10.0 Source SDK from: /home/tobiasjacob/code/armarx/ArmarXGui/build
-- ArmarXGui_DEPENDENCIES: ArmarXCore
-- ArmarXGui_DISABLED_TARGETS:
-- INTERFACE_DEPENDENCIES: ArmarXCore
CMake Warning at /home/tobiasjacob/code/armarx/ArmarXCore/etc/cmake/latest/find_package.cmake:29 (message):
Legacy mode: Including Use-file for ArmarXGui.
Call Stack (most recent call first):
CMakeLists.txt:24 (armarx_find_package)
-- Using ArmarXGui scripts in next-gen mode.
--
== Configuring library `robothandmove::testlib` ...
-- Release mode, stripping binaries.
--
== Configuring executable `robothandmove::testlibTest` ...
-- Release mode, stripping binaries
--
== Configuring library `robothandmove::testcomp_cmp` ...
--
== Configuring library `robothandmove::testcomp_ice` ...
-- Release mode, stripping binaries.
--
== Configuring executable `robothandmove::testcomp_run` ...
-- Release mode, stripping binaries
-- adding test testcomp_run__register_component_executable__test
--
== Installing project `robothandmove` ...
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tobiasjacob/code/tutorials/robothandmove/build
[▽ code] tobiasjacob@i61spc018:~/code/tutorials/robothandmove/build$ make
[ 10%] Building CXX object source/robothandmove/testlib/CMakeFiles/testlib.dir/testlib.cpp.o
[ 20%] Linking CXX shared library ../../../lib/librobothandmove_testlib.so
[ 20%] Built target testlib
[ 30%] Building CXX object source/robothandmove/testlib/CMakeFiles/testlibTest.dir/test/testlibTest.cpp.o
[ 40%] Linking CXX executable ../../../bin/testlibTest
[ 40%] Built target testlibTest
[ 50%] Generating `/home/tobiasjacob/code/tutorials/robothandmove/build/source/robothandmove/components/testcomp/ComponentInterface.{h|cpp}` from `/home/tobiasjacob/code/tutorials/robothandmove/source/robothandmove/components/testcomp/ComponentInterface.ice`.
[ 60%] Building CXX object source/robothandmove/components/testcomp/CMakeFiles/testcomp_ice.dir/ComponentInterface.cpp.o
[ 70%] Linking CXX shared library ../../../../lib/librobothandmove_testcomp_ice.so
[ 70%] Built target testcomp_ice
[ 80%] Building CXX object source/robothandmove/components/testcomp/CMakeFiles/testcomp_cmp.dir/Component.cpp.o
[ 80%] Built target testcomp_cmp
[ 90%] Building CXX object source/robothandmove/components/testcomp/CMakeFiles/testcomp_run.dir/home/tobiasjacob/code/armarx/ArmarXCore/etc/templates/decoupled_main.cpp.o
[100%] Linking CXX executable ../../../../bin/testcomp_run
[100%] Built target testcomp_run
[▽ code] tobiasjacob@i61spc018:~/code/tutorials/robothandmove/build$ cd ..
[▽ code] tobiasjacob@i61spc018:~/code/tutorials/robothandmove$ arm^C
[▽ code] tobiasjacob@i61spc018:~/code/tutorials/robothandmove$ armarx-package add application testapp
> Creating directory ...... /home/tobiasjacob/code/tutorials/robothandmove/source/robothandmove/applications ...
> Generating .............. /home/tobiasjacob/code/tutorials/robothandmove/source/robothandmove/applications/CMakeLists.txt ...
> Creating directory ...... /home/tobiasjacob/code/tutorials/robothandmove/source/robothandmove/applications/testapp ...
> Generating .............. /home/tobiasjacob/code/tutorials/robothandmove/source/robothandmove/applications/testapp/CMakeLists.txt ...
> Generating .............. /home/tobiasjacob/code/tutorials/robothandmove/source/robothandmove/applications/testapp/main.cpp ...
> Updating cmake .......... /home/tobiasjacob/code/tutorials/robothandmove/source/robothandmove/applications/CMakeLists.txt ...
> Updating cmake .......... /home/tobiasjacob/code/tutorials/robothandmove/source/robothandmove/CMakeLists.txt ...
> testapp application element created.
[▽ code] tobiasjacob@i61spc018:~/code/tutorials/robothandmove$ cd build/
[▽ code] tobiasjacob@i61spc018:~/code/tutorials/robothandmove/build$ cmake ..
-- Using ArmarXCore @ v0.10.0 Source SDK from: /home/tobiasjacob/code/armarx/ArmarXCore/build
-- ArmarXCore_DEPENDENCIES:
-- ArmarXCore_DISABLED_TARGETS:
-- INTERFACE_DEPENDENCIES:
-- Ice version: 3.7.6
-- Found the following Ice libraries:
-- Ice (required)
-- CMAKE_BUILD_TYPE = Release
-- Using Simox Source-Build from: /home/tobiasjacob/code/simox/build
-- * Including /home/tobiasjacob/code/simox/CMakeModules/SimoxMacros.cmake
CMake Warning at /home/tobiasjacob/code/armarx/ArmarXCore/etc/cmake/ArmarXProject.cmake:74 (message):
Enabling modern CMake project. Please be aware that the macro
'armarx_enable_modern_cmake_project' will be removed once modern CMake
projects will become default in ArmarX.
Call Stack (most recent call first):
CMakeLists.txt:11 (armarx_enable_modern_cmake_project)
--
== Setting up ArmarX project ...
-- ArmarX next generation package.
-- Configuring ArmarX project `robothandmove`.
-- Linux x86_64 target detected
--
== Loading addon `anaconda` ...
--
== Loading addon `astyle_deprecation` ...
--
== Loading addon `boost_test` ...
-- Could NOT find Lcov (missing: Lcov_EXECUTABLE Lcov_GenHtml_EXECUTABLE)
--
== Loading addon `cpack` ...
--
== Loading addon `doxygen` ...
--
== Loading addon `feature_summary` ...
--
== Loading addon `force_colored_output` ...
-- force_colored_output is disabled per user choice.
--
== Loading addon `header_check` ...
--
== Loading addon `remove_obsolete_generated_files` ...
-- Checking generated files and removing them if necessary ...
-- ICE summary: No mismatches found.
-- ARON summary: No mismatches found.
--
== Loading addon `target_info` ...
--
-- Finding package `ArmarXGui`.
-- Using ArmarXGui @ v0.10.0 Source SDK from: /home/tobiasjacob/code/armarx/ArmarXGui/build
-- ArmarXGui_DEPENDENCIES: ArmarXCore
-- ArmarXGui_DISABLED_TARGETS:
-- INTERFACE_DEPENDENCIES: ArmarXCore
CMake Warning at /home/tobiasjacob/code/armarx/ArmarXCore/etc/cmake/latest/find_package.cmake:29 (message):
Legacy mode: Including Use-file for ArmarXGui.
Call Stack (most recent call first):
CMakeLists.txt:24 (armarx_find_package)
-- Using ArmarXGui scripts in next-gen mode.
--
== Configuring library `robothandmove::testlib` ...
-- Release mode, stripping binaries.
--
== Configuring executable `robothandmove::testlibTest` ...
-- Release mode, stripping binaries
--
== Configuring library `robothandmove::testcomp_cmp` ...
--
== Configuring library `robothandmove::testcomp_ice` ...
-- Release mode, stripping binaries.
--
== Configuring executable `robothandmove::testcomp_run` ...
-- Release mode, stripping binaries
-- adding test testcomp_run__register_component_executable__test
CMake Error at source/robothandmove/applications/testapp/CMakeLists.txt:1 (armarx_component_set_name):
Unknown CMake command "armarx_component_set_name".
-- Configuring incomplete, errors occurred!
See also "/home/tobiasjacob/code/tutorials/robothandmove/build/CMakeFiles/CMakeOutput.log".
See also "/home/tobiasjacob/code/tutorials/robothandmove/build/CMakeFiles/CMakeError.log".
[▽ code] tobiasjacob@i61spc018:~/code/tutorials/robothandmove/build$