Comments (4)
Are you using gcc 5? There is an issue withh gcc 5 that does not happen with later versions. You can try this patch or just skip the compilation of this tool if you don't need it.
diff --git a/src/tools/hidpp20-raw-touchpad-driver.cpp b/src/tools/hidpp20-raw-touchpad-driver.cpp
index bf59e40..fbb0845 100644
--- a/src/tools/hidpp20-raw-touchpad-driver.cpp
+++ b/src/tools/hidpp20-raw-touchpad-driver.cpp
@@ -343,7 +343,7 @@ public:
{
std::map<std::string, node>::iterator it;
try {
- it = _nodes.emplace (path, path).first;
+ it = _nodes.emplace (std::piecewise_construct, std::forward_as_tuple(path), std::forward_as_tuple(path)).first;
}
catch (std::exception &e) {
Log::debug () << "Ignored device " << path << ": " << e.what () << std::endl;
from hidpp.
That got it to build, but now make install
tells me "-- Set runtime path of "/usr/local/bin/hidpp-list-devices" to "" ", and when I try to run it I get "hidpp-list-devices: error while loading shared libraries: libhidpp.so: cannot open shared object file: No such file or directory", which I suspect is related, but I don't know how to fix it.
from hidpp.
Success! I found https://stackoverflow.com/questions/32469953/why-is-cmake-designed-so-that-it-removes-runtime-path-when-installing and added
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
to CMakeLists.txt right after project(hidpp)
and rebuilt everything and the code can now run! As soon as my device comes in I'll be able to test if it works...
from hidpp.
On some distributions, ld.so may not look into /usr/local/lib by default, you can change that in /etc/ld.so.conf or /etc/ld.so.conf.d/ (and then update the cache with ldconfig).
If you are installing in a non-standard prefix, you can set LD_LIBRARY_PATH to include the location of libhidpp.so.
from hidpp.
Related Issues (17)
- Hidpp list features explanation HOT 16
- Some HID++ devices not recognized HOT 24
- How to specify the hid device index? HOT 4
- Error while asking receiver for infos: Unknown device HOT 7
- macOS support HOT 71
- hidpp-list-features crashes with g700s HOT 8
- compile errors with gcc 11.2.1 HOT 2
- non-connected devices give error HOT 5
- turning on debug logging HOT 1
- Minor compiler warnings under Linux HOT 1
- How can I get the device_path on Windows HOT 1
- Issue compiling on gentoo HOT 8
- Compiling on Windows HOT 7
- Unifying receiver stops working after a short while with Thunderbolt dock HOT 4
- Device fails when writing a profile with <=2 dpi modes and DPI index <=2 HOT 4
- Duplicated buttons info with hidpp-persistent-profiles HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hidpp.