tum-avs / ros2_latency_analysis Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Env
I have successfully built Autoware Universe from source code. Then, I cloned a new repository to test your work.
I have executed
sudo apt-get install clang-13 libclang1-13 libclang-13-dev libclang-cpp13-dev libclang-cpp13 CC=/usr/bin/clang CXX=/usr/bin/clang++ colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
P.S.: When I first ran it, there was an error as follows. So, I installed Clang. I checked its version, which showed Clang 14
CMake Error at /usr/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake:49 (message): Could not find compiler set in environment variable CC: /usr/bin/clang. Call Stack (most recent call first): CMakeLists.txt:2 (project)
then I built it again
CC=/usr/bin/clang CXX=/usr/bin/clang++ colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
it showed an error as
CMake Error at /home/zyn/Desktop/autoware/install/ament_cmake_gtest/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable): Target "route-test" links to target "OpenMP::OpenMP_CXX" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): /home/zyn/Desktop/autoware/install/ament_cmake_gtest/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable) /home/zyn/Desktop/autoware/install/ament_cmake_gtest/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable) /opt/ros/humble/share/ament_cmake_ros/cmake/ament_add_ros_isolated_gtest.cmake:33 (ament_add_gtest) CMakeLists.txt:98 (ament_add_ros_isolated_gtest)
The question is, I don't know how to fix this error. Is it related to the version of Clang, or is it just as you have announced?
Some ROS 2 projects might need small compatibility adjustments of their CMake files and possibly of their source code
What adjustments should I make to my CMake files?
Hello,thank you for your excllent work ,bug i got a problem when i try to test your work.problem its here:
$ ./build.sh
In file included from ASTUtils.cpp:5:
In file included from ./ASTUtils.h:8:
In file included from /usr/lib/llvm-13/include/clang/ASTMatchers/ASTMatchers.h:47:
In file included from /usr/lib/llvm-13/include/clang/AST/ASTContext.h:17:
/usr/lib/llvm-13/include/clang/AST/ASTContextAllocate.h:17:10: fatal error: 'cstddef' file not found
#include
^~~~~~~~~
1 error generated.
In file included from CallbackRegHandler.cpp:5:
./CallbackRegHandler.h:8:10: fatal error: 'algorithm' file not found
#include
^~~~~~~~~~~
1 error generated.
In file included from DataWriter.cpp:5:
./DataWriter.h:8:10: fatal error: 'iostream' file not found
#include
^~~~~~~~~~
1 error generated.
In file included from Matchers.cpp:4:
In file included from ./Matchers.h:10:
In file included from /usr/lib/llvm-13/include/clang/ASTMatchers/ASTMatchFinder.h:43:
In file included from /usr/lib/llvm-13/include/clang/ASTMatchers/ASTMatchers.h:47:
In file included from /usr/lib/llvm-13/include/clang/AST/ASTContext.h:17:
/usr/lib/llvm-13/include/clang/AST/ASTContextAllocate.h:17:10: fatal error: 'cstddef' file not found
#include
^~~~~~~~~
1 error generated.
In file included from MemberExprHandler.cpp:5:
./MemberExprHandler.h:8:10: fatal error: 'algorithm' file not found
#include
^~~~~~~~~~~
1 error generated.
In file included from NodeDeclHandler.cpp:5:
./NodeDeclHandler.h:8:10: fatal error: 'algorithm' file not found
#include
^~~~~~~~~~~
1 error generated.
In file included from NodeNameHandler.cpp:5:
In file included from ./NodeNameHandler.h:8:
In file included from ./ASTUtils.h:8:
In file included from /usr/lib/llvm-13/include/clang/ASTMatchers/ASTMatchers.h:47:
In file included from /usr/lib/llvm-13/include/clang/AST/ASTContext.h:17:
/usr/lib/llvm-13/include/clang/AST/ASTContextAllocate.h:17:10: fatal error: 'cstddef' file not found
#include
^~~~~~~~~
1 error generated.
In file included from ROS2InternalDependencyChecker.cpp:5:
In file included from /usr/lib/llvm-13/include/llvm/Support/CommandLine.h:22:
In file included from /usr/lib/llvm-13/include/llvm/ADT/ArrayRef.h:12:
In file included from /usr/lib/llvm-13/include/llvm/ADT/Hashing.h:48:
In file included from /usr/lib/llvm-13/include/llvm/Support/ErrorHandling.h:17:
/usr/lib/llvm-13/include/llvm/Support/Compiler.h:21:10: fatal error: 'new' file not found
#include
^~~~~
1 error generated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.