New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile issue on Jetson TX2 #55
Comments
Hi Dybedal, we managed to compile GPU-Voxels on the TX1 once but did not follow that path any longer. But as your error log says something about GLM: Did you patch your GLM version? Perhaps you ran into this problem? Compiling GPU Voxels on a recent linux is on our agenda currently. So if you fix this problem, please share your findings with us. Good luck, |
Hi and thanks for your quick reply. I had already patched the GLM file, so that was not an issue. I managed to compile gpu-voxels without the visualization package, which is a bummer, but at least I can use your library in my project now. But in my project I am also using other libraries which require C++11 support (i.e. Stereolabs ZED SDK). When I include <gpu_voxels/GpuVoxels.h> I cannot compile due to the missing implementation of the << operator for However if I just add this declaration to icl_core_logging/ThreadStream.h: I hope adding this will also make it possible to compile everything (including visualization) with C++11 support from the start, but I haven't tested that yet. BR, |
Hi Joacim, sorry for this: we already fixed this bug internally. Patch
|
Thanks, that worked like a charm! Not sure how useful this is to you, but this is what I had to do to be able to compile the visualization package with C++11 support: Patch:File: gpu_voxels/packages/gpu_voxels/src/gpu_voxels/helpers/cuda_handling.hpp ln 126: Enable C++11 support:File: gpu-voxels/CMakeLists.txt (top):
Enable C++11 support for nvcc:Workaround for GLM error "...this file requires C+11..." (using latest GLM from github): isnan must be ::isnan:Reference static const float --> static constexpr float:Reference error "GLM: GLM_GTX_transform is an experimental extension and may change in the future. Use
|
Update: Installed ROS Kinetic and was able to build with ROS and URDF support, but had to apply your fix in another file as well:
|
Hi dybedal, |
All the mentioned fixes should be included in the new 1.1 Release: d9914ac The one exception is "GLM_ENABLE_EXPERIMENTAL". I did not yet encounter the corresponding GLM is myself. Which GLM version is this related to? |
I am able to compile it in tx2 with the latest commit in https://github.com/g-truc/glm.git, be53cebcd3ec3366e30f520bfaa35991274fc390 with GLM_ENABLE_EXPERIMENTAL set, with ros and urdf |
Thanks for the feedback! The GLM_ENABLE_EXPERIMENTAL define will be added to Primitive.h for release 1.1.2. Strange though, that it is not treated as a compile error on Ubuntu 14.04 and 16.04 GLM. |
Fix Cuda 9.1 linking problem that broke voxellist code using Thrust CUB: always use shared cudart library Known issues: - Octrees are broken on Pascal GPUs - confirmed on Titan Xp and GTX 1080 Ti - the GLM in Ubuntu 16.04 has to be patched to allow usage of the visualizer. - see g-truc/glm#530 - patch for /usr/include/glm/detail/func_common.inl in packages/gpu_voxels/doc/glm_fix_issu530.patch Minor changes: - added synchronization points after some voxellist Thrust calls - removed obsolete explicit Kinect.cpp references in src/examples - define GLM_ENABLE_EXPERIMENTAL in Primitive.h to fix issue #55
I'm trying to compile gpu-voxels on an NVIDIA Jetson TX2, but I run into the following error:
I tried adding -std=c++11 to the nvcc flags in packages/gpu-voxels/CMakeLists.txt (ln 139), but that did not work and introduced other errors:
Do you have any suggestions?
The text was updated successfully, but these errors were encountered: