Skip to content

Instantly share code, notes, and snippets.

@EricCousineau-TRI
Last active June 21, 2018 03:50
Show Gist options
  • Select an option

  • Save EricCousineau-TRI/a9517021eba7f51a30d0fa8c1d3c9f11 to your computer and use it in GitHub Desktop.

Select an option

Save EricCousineau-TRI/a9517021eba7f51a30d0fa8c1d3c9f11 to your computer and use it in GitHub Desktop.
drake_8964
INFO: Analysed target //tools:drake_visualizer (8 packages loaded).
INFO: Found 1 target...
Target //tools:drake_visualizer up-to-date:
bazel-bin/tools/drake_visualizer
INFO: Elapsed time: 6.040s, Critical Path: 0.02s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
/lib64/ld-linux-x86-64.so.2 (0x00007f98e0a3a000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f98dfec9000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f98d68d1000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f98d3284000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f98de1b3000)
libGL.so.1 => /usr/lib/nvidia-384/libGL.so.1 (0x00007f98d905c000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f98d34ad000)
libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f98d6000000)
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f98d9f08000)
libjsoncpp.so.1 => /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1 (0x00007f98dd6f2000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f98d306c000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f98d620e000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f98ddeaa000)
libnvidia-glcore.so.384.130 => /usr/lib/nvidia-384/libnvidia-glcore.so.384.130 (0x00007f98d3d03000)
libnvidia-tls.so.384.130 => /usr/lib/nvidia-384/tls/libnvidia-tls.so.384.130 (0x00007f98d5bbf000)
libospray_common.so.0 => {runfiles}/drake/external/vtk/lib/libospray_common.so.0 (0x00007f98d9622000)
libospray.so.0 => {runfiles}/drake/external/vtk/lib/libospray.so.0 (0x00007f98dd4bb000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f98d9ce3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f98da832000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f98d36c7000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f98e0293000)
libtbb.so.2 => /usr/lib/x86_64-linux-gnu/libtbb.so.2 (0x00007f98d5dc3000)
libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f98d9855000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f98d2a5d000)
libvtkCommonColor-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonColor-8.1.so.1 (0x00007f98d81f7000)
libvtkCommonComputationalGeometry-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonComputationalGeometry-8.1.so.1 (0x00007f98d6f57000)
libvtkCommonCore-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonCore-8.1.so.1 (0x00007f98de3c9000)
libvtkCommonCorePython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonCorePython27D-8.1.so.1 (0x00007f98dec07000)
libvtkCommonDataModel-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonDataModel-8.1.so.1 (0x00007f98dba1c000)
libvtkCommonDataModelPython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonDataModelPython27D-8.1.so.1 (0x00007f98daa4f000)
libvtkCommonExecutionModel-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonExecutionModel-8.1.so.1 (0x00007f98dbff9000)
libvtkCommonExecutionModelPython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonExecutionModelPython27D-8.1.so.1 (0x00007f98db0d4000)
libvtkCommonMath-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonMath-8.1.so.1 (0x00007f98db5c9000)
libvtkCommonMathPython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonMathPython27D-8.1.so.1 (0x00007f98d6430000)
libvtkCommonMisc-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonMisc-8.1.so.1 (0x00007f98d8414000)
libvtkCommonSystem-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonSystem-8.1.so.1 (0x00007f98da61c000)
libvtkCommonTransforms-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonTransforms-8.1.so.1 (0x00007f98db7eb000)
libvtkCommonTransformsPython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkCommonTransformsPython27D-8.1.so.1 (0x00007f98d668e000)
libvtkDICOMParser-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkDICOMParser-8.1.so.1 (0x00007f98da401000)
libvtkFiltersCore-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkFiltersCore-8.1.so.1 (0x00007f98d718c000)
libvtkFiltersGeneral-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkFiltersGeneral-8.1.so.1 (0x00007f98d7837000)
libvtkFiltersGeometry-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkFiltersGeometry-8.1.so.1 (0x00007f98d7f6f000)
libvtkFiltersSources-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkFiltersSources-8.1.so.1 (0x00007f98d7cc9000)
libvtkglew-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkglew-8.1.so.1 (0x00007f98d939e000)
libvtkImagingCore-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkImagingCore-8.1.so.1 (0x00007f98d862e000)
libvtkIOCore-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkIOCore-8.1.so.1 (0x00007f98d6ad5000)
libvtkIOImage-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkIOImage-8.1.so.1 (0x00007f98dd923000)
libvtkIOXML-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkIOXML-8.1.so.1 (0x00007f98dc2a8000)
libvtkIOXMLParser-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkIOXMLParser-8.1.so.1 (0x00007f98d6d40000)
libvtkmetaio-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkmetaio-8.1.so.1 (0x00007f98da161000)
libvtkRenderingCore-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingCore-8.1.so.1 (0x00007f98dc588000)
libvtkRenderingCorePython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingCorePython27D-8.1.so.1 (0x00007f98df2b0000)
libvtkRenderingOpenGL2-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingOpenGL2-8.1.so.1 (0x00007f98dd0b2000)
libvtkRenderingOSPRay-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingOSPRay-8.1.so.1 (0x00007f98dfa68000)
libvtkRenderingOSPRayPython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingOSPRayPython27D-8.1.so.1 (0x00007f98e0615000)
libvtkRenderingSceneGraph-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingSceneGraph-8.1.so.1 (0x00007f98ddc96000)
libvtkRenderingSceneGraphPython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingSceneGraphPython27D-8.1.so.1 (0x00007f98dfcb5000)
libvtkRenderingVolume-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingVolume-8.1.so.1 (0x00007f98dc999000)
libvtkRenderingVolumePython27D-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkRenderingVolumePython27D-8.1.so.1 (0x00007f98df7c7000)
libvtksys-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtksys-8.1.so.1 (0x00007f98db37b000)
libvtkWrappingPython27Core-8.1.so.1 => {runfiles}/drake/external/vtk/lib/libvtkWrappingPython27Core-8.1.so.1 (0x00007f98de9ca000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f98d8d22000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f98d2e68000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f98d38cf000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f98d2c62000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f98d3af1000)
libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f98d8ab9000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f98d9ac9000)
linux-vdso.so.1 => (0x00007ffc6ddf3000)
From 3ea25453174441cf30098a2f07ee393dc82ae925 Mon Sep 17 00:00:00 2001
From: Eric Cousineau <[email protected]>
Date: Wed, 20 Jun 2018 23:49:43 -0400
Subject: [PATCH] vtk: Add workaround if OSPRay cannot be imported
---
tools/workspace/vtk/repository.bzl | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/tools/workspace/vtk/repository.bzl b/tools/workspace/vtk/repository.bzl
index 7f20d32..06eb566 100644
--- a/tools/workspace/vtk/repository.bzl
+++ b/tools/workspace/vtk/repository.bzl
@@ -127,6 +127,25 @@ def _impl(repository_ctx):
repository_ctx.download_and_extract(urls, root_path, sha256 = sha256)
+ py_file = "lib/python2.7/site-packages/vtk/vtkRenderingOSPRay.py"
+ repository_ctx.execute(["/bin/rm", py_file])
+ repository_ctx.file(
+ py_file,
+ content = """
+from __future__ import absolute_import
+
+try:
+ # use relative import for installed modules
+ from .vtkRenderingOSPRayPython import *
+except ImportError:
+ # during build and testing, the modules will be elsewhere,
+ # e.g. in lib directory or Release/Debug config directories
+ # from vtkRenderingOSPRayPython import *
+ print("Unable to import `vtkRenderingOSPRayPython`!")
+""",
+ executable = False,
+ )
+
else:
fail("Operating system is NOT supported", attr = os_result)
--
2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment