Index: src/slic3r/GUI/Mouse3DController.cpp
--- src/slic3r/GUI/Mouse3DController.cpp.orig
+++ src/slic3r/GUI/Mouse3DController.cpp
@@ -151,7 +151,7 @@ static std::string detect_attached_device()
     std::string ret;
 
     // Initialize the hidapi library
-    int res = hid_init();
+    int res = hidapi_hid_init();
     if (res != 0)
         BOOST_LOG_TRIVIAL(error) << "Unable to initialize hidapi library";
     else {
@@ -708,7 +708,7 @@ void Mouse3DController::shutdown()
 void Mouse3DController::run()
 {
     // Initialize the hidapi library
-    int res = hid_init();
+    int res = hidapi_hid_init();
     if (res != 0) {
     	// Give up.
 #if defined(__unix__) || defined(__unix) || defined(unix)    	
