error: open("glog/glog-0.3.3/google-glog.opensdf"): Permission denied
时间: 2024-04-25 12:21:50 浏览: 146
这个错误是由于权限不足导致的。您可以尝试以管理员身份运行该命令或更改文件的权限,以便您可以访问该文件。您可以使用 chmod 命令来修改文件的权限,例如:chmod +rwx glog/glog-0.3.3/google-glog.opensdf。请确保您具有足够的权限来执行这些操作。如果问题仍然存在,请检查您的系统设置和文件权限。
相关问题
Parsing recipes...ERROR: /home/wu/3568/yocto/meta-niic/niic/recipes-support/glog/glog_0.5.0.bb: Variable PACKAGECONFIG_remove_riscv64 file: /home/wu/3568/yocto/meta-niic/niic/recipes-support/glog/glog_0.5.0.bb line: 21 contains an operation using the old override syntax. Please convert this layer/metadata before attempting to use with a newer bitbake.如何解决
这个错误是由于使用了旧的override语法导致的。要解决这个问题,您需要更新您的layer/metadata以使用新的override语法。这可以通过使用bitbake-layers update命令来完成。在您的yocto工程的根目录下运行以下命令:
```
bitbake-layers update <layer-name>
```
其中`<layer-name>`是包含`glog`的层的名称。这将更新该层的元数据并将其转换为新的override语法,以解决该错误。
In file included from /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/include/apollo_common/apollo_app.h:46:0, from /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/src/apollo_app.cc:33: /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/include/apollo_common/log.h:40:10: fatal error: glog/logging.h: No such file or directory #include <glog/logging.h> ^~~~~~~~~~~~~~~~ compilation terminated. apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/build.make:62: recipe for target 'apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/src/apollo_app.cc.o' failed make[2]: *** [apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/src/apollo_app.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/include/apollo_common/adapters/adapter_manager.h:48:0, from /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/src/adapters/adapter_manager.cc:33: /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/include/apollo_common/adapters/adapter.h:49:10: fatal error: glog/logging.h: No such file or directory #include <glog/logging.h> ^~~~~~~~~~~~~~~~ compilation terminated. apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/build.make:110: recipe for target 'apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/src/adapters/adapter_manager.cc.o' failed make[2]: *** [apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/src/adapters/adapter_manager.cc.o] Error 1 CMakeFiles/Makefile2:3894: recipe for target 'apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/all' failed make[1]: *** [apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 54%] Linking CXX executable /home/acceler/code/apollo_ros/apollo_ros/devel/lib/IntegratedNavigation/IntegratedNavigation_node [ 54%] Built target IntegratedNavigation_node [ 55%] Linking CXX executable /home/acceler/code/apollo_ros/apollo_ros/devel/lib/TimeSynchronierProcess/timeSynchronierProcess_node [ 55%] Built target timeSynchronierProcess_node Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed
It seems like there is a compilation error in your code. The error message indicates that the file "glog/logging.h" is not found. This file is part of the Google Logging Library (glog) and needs to be installed in order to compile your code successfully.
To resolve this issue, you can follow these steps:
1. Make sure that the glog library is installed on your system. You can check this by running the following command in your terminal:
```
dpkg -l libgoogle-glog-dev
```
If it is not installed, you can install it using the package manager specific to your system (e.g., apt for Ubuntu):
```
sudo apt-get install libgoogle-glog-dev
```
2. After installing the glog library, try compiling your code again. If the error persists, make sure that the glog library directory is included in the compilation flags. You can add the following line to your CMakeLists.txt file:
```
include_directories(/path/to/glog/include)
```
Replace "/path/to/glog/include" with the actual path to the glog library include directory on your system.
3. Save the changes to your CMakeLists.txt file and try compiling your code again.
If you continue to encounter issues, please provide more details about your development environment and the steps you have already taken to troubleshoot the problem.
阅读全文