I am triying to compile Tango Starter (TANGO STARTER url link) but it is impossible. I get this error:
tests@ESHEPLAB2:~/adri_tests/starter-Starter-8.3/build$ cmake ../
– The CXX compiler identification is GNU 11.4.0
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– No build type specified - default is DEBUG
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.2”)
– Checking for one of the modules ‘tango’
– Tango not found via pkg-config, falling back to cmake find
– Found ZeroMQ: /usr/lib/x86_64-linux-gnu/libzmq.so
– Found cppzmq: /usr/include/zmq.hpp
– Found omniORB4: /usr/lib/x86_64-linux-gnu/libomniORB4.so found components: COS4 Dynamic4 thread
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Tango (missing: Tango_LIBRARY Tango_INCLUDE_DIR) (found
version “Tango_VERSION-NOTFOUND”)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
TangoCMakeModules/FindTango.cmake:222 (find_package_handle_standard_args)
CMakeLists.txt:25 (find_package)
Even if, I modify the CMakeLists.txt file, I am not able to generate the Makefile.
Does the folder TangoCMakeModules in the starter repo contain something? If not, you are missing the submodules. Try git submodule update --init to fetch it.
I copied the files by hand, because I downloaded Tango Starter repository as a compressed file (.zip), and it was impossible to run “git submodule init” command.
Do you have cppTango already installed? You can pass in a custom location with Tango_ROOT so the commandline looks like cmake -B build -S . -DTango_ROOT=/usr/local. You don’t need that for /usr/local though.
Do you have cppTango already installed? You can pass in a custom location with Tango_ROOT so the commandline looks like cmake -B build -S . -DTango_ROOT=/usr/local. You don’t need that for /usr/local though.[/quote]
It works!! Thank you!!
Now, I have to cross-compile the same project for ARM, using Buildroot. For that, I have this tangostarter.mk file, which must use CMake to generate the Makefile, and then compile the application, but the part of CMake does not work.