V2X Hub is a message handler that acts as a translator and data aggregator/disseminator for infrastructure components of a connected vehicle deployment.
118
stars
67
forks
source link
Cannot successfully run cmake . in src/tmx due to CMake not finding carma-clock #577
While in the src/tmx directory, CMake cannot find carma-clock in my /opt/ directory which is where the scripts/install_dependencies.sh installed the carma-clock dependency by default, hence leading to build failure in the src/tmx directory.
Commit
136439ae2d87bf0b587fd015af4392a6392433d6
Expected Behavior
CMake finds carma-clock, and running cmake . in src/tmx should work and compile successfully.
Actual Behavior
Upon running cmake . in the src/tmx directory, I get the following errors and warnings below:
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Building SAE J2735 r41 specification to libasn_j2735_r41
-- Building SAE J2735 r63 specification to libasn_j2735_r63
-- Found MySQL C++ Connector: /usr/lib/x86_64-linux-gnu/libmysqlcppconn.so
CMake Warning at TmxUtils/CMakeLists.txt:8 (FIND_PACKAGE):
By not providing "Findcarma-clock.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"carma-clock", but CMake did not find one.
Could not find a package configuration file provided by "carma-clock" with
any of the following names:
carma-clockConfig.cmake
carma-clock-config.cmake
Add the installation prefix of "carma-clock" to CMAKE_PREFIX_PATH or set
"carma-clock_DIR" to a directory containing one of the above files. If
"carma-clock" provides a separate development package or SDK, be sure it
has been installed.
-- Configuring done
CMake Error at TmxUtils/CMakeLists.txt:11 (ADD_LIBRARY):
Target "tmxutils" links to target "::carma-clock" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at TmxUtils/CMakeLists.txt:61 (add_executable):
Target "tmxutils_test" links to target "::carma-clock" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at TmxCtl/CMakeLists.txt:9 (ADD_LIBRARY):
Target "tmxctlStatic" links to target "::carma-clock" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at TmxCtl/CMakeLists.txt:18 (ADD_EXECUTABLE):
Target "tmxctl" links to target "::carma-clock" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at TmxTools/CMakeLists.txt:12 (ADD_EXECUTABLE):
Target "j2735dump" links to target "::carma-clock" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
I successfully ran scripts/install_dependencies.sh and scripts/deployment_dependencies.sh without issues.
I am using an Ubuntu 22.04 machine on an AWS EC2 instance.
I have confirmed that carma and carma-clock exist on our machine under the /opt/ directory.
Is there anything I have to configure or fix to get CMake to find carma-clock?
Thank you in advance.
Steps to Reproduce the Actual Behavior
Run scripts/install_dependencies.sh and scripts/deployment_dependencies.sh.
Summary
While in the
src/tmx
directory, CMake cannot find carma-clock in my /opt/ directory which is where thescripts/install_dependencies.sh
installed the carma-clock dependency by default, hence leading to build failure in thesrc/tmx
directory.Commit
136439ae2d87bf0b587fd015af4392a6392433d6
Expected Behavior
CMake finds carma-clock, and running
cmake .
insrc/tmx
should work and compile successfully.Actual Behavior
Upon running
cmake .
in the src/tmx directory, I get the following errors and warnings below:I successfully ran
scripts/install_dependencies.sh
andscripts/deployment_dependencies.sh
without issues.I am using an Ubuntu 22.04 machine on an AWS EC2 instance.
I have confirmed that carma and carma-clock exist on our machine under the /opt/ directory.
Is there anything I have to configure or fix to get CMake to find carma-clock? Thank you in advance.
Steps to Reproduce the Actual Behavior
Run
scripts/install_dependencies.sh
andscripts/deployment_dependencies.sh
.Go to /src/tmx:
cd src/tmx
Run
cmake .
to compile the tmx directory.