Skip to content

Instantly share code, notes, and snippets.

@Chuck-Yu
Chuck-Yu / comment out the code in common_function.h
Created December 26, 2019 09:52
error: token ""__CUDACC_VER__
https://github.com/autowarefoundation/autoware/issues/2094
sorry, I solved this issue for myself. For me, I just comments /usr/local/cuda/include/crt/common_functions.h line 64:
#define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported. Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
and recompile.
@Chuck-Yu
Chuck-Yu / comment out the code in point_cloud.h
Created December 26, 2019 09:51
error: template-id ‘getMapping<PointT>’ used as a declarator
https://github.com/autowarefoundation/autoware/issues/2094
I also encountered this bug in melodic with PCL 1.8 and CUDA 10.1. It's not ideal,
but I found that as a temporary workaround you can simply comment out / remove the
```c++
friend boost::shared_ptr& detail::getMapping(pcl::PointCloud &p);
```
line and make _mapping public in pcl/point_cloud.h.
@Chuck-Yu
Chuck-Yu / opencv2 xfeatures2d cuda.hpp
Created April 2, 2019 03:02
fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
cmake -DBUILD_opencv_xfeatures2d=OFF ..
@Chuck-Yu
Chuck-Yu / Ubuntu: unknown 'exfat'.
Created February 19, 2019 04:18
mount: unknown filesystem type 'exfat'
sudo apt-get install exfat-fuse exfat-utils
@Chuck-Yu
Chuck-Yu / install python-igraph
Created February 19, 2019 03:11
[Kalibr] ImportError: No module named igraph
sudo add-apt-repository ppa:igraph/ppa
sudo apt-get update
sudo apt-get install python-igraph
@Chuck-Yu
Chuck-Yu / rosdep init ERROR
Created February 18, 2019 10:47
sudo rosdep init ERROR: cannot download default sources list from:https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website may be down.
sudo rosdep fix-permissions