Hi,

Today I tried the current paraview git master with the VRPlugin&VRPN enabled. 
A smaller annoyance is that the build system refuses to build when libusb.h is 
not installed (Even though libusb is not required by paraview or vrpn).

Explicitly setting VRPN_LIBUSB_INCLUDE_DIR to be empty instead of "-notfound" 
fixes the issue for me (see patch).

Cheers,
  Johannes
From 1966e7578f101d5cee158df55994d80c4b34f4cc Mon Sep 17 00:00:00 2001
From: VRC Admin User <[email protected]>
Date: Tue, 29 Jan 2013 17:59:05 +0100
Subject: [PATCH] Don't make a fuss when libusb is not installed.

Libusb is only an optional dependency of VRPN.
---
 Plugins/VR/CMakeLists.txt |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Plugins/VR/CMakeLists.txt b/Plugins/VR/CMakeLists.txt
index c89867e..6022cb2 100644
--- a/Plugins/VR/CMakeLists.txt
+++ b/Plugins/VR/CMakeLists.txt
@@ -31,6 +31,7 @@ if(PARAVIEW_USE_VRPN)
     find_path(VRPN_LIBUSB_INCLUDE_DIR libusb.h PATHS /usr/include /usr/local/include)
     if(NOT EXISTS VRPN_LIBUSB_INCLUDE_DIR)
       mark_as_advanced(CLEAR VRPN_LIBUSB_INCLUDE_DIR)
+	  set(VRPN_LIBUSB_INCLUDE_DIR "" CACHE PATH "Include directory for libusb." FORCE)
     endif()
   endif()
   find_library(VRPN_LIBRARY vrpn)
-- 
1.6.0.2

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to