Closed norberttak closed 5 months ago
With this modification the built plugin doesn't have dependecy for the hidapi library:
$ ldd /tmp/xpanel-install/XPanel/64/lin.xpl
linux-vdso.so.1 (0x00007fffb8504000)
liblua5.4.so.0 => /lib/x86_64-linux-gnu/liblua5.4.so.0 (0x00007fd55c886000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd55c65a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd55c573000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd55c553000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd55c32a000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd55c9e4000)
@MrAnno may I ask you to do a quick review of the CMAKE files? I'm not sure if I modified it in a proper way.
The aim of this PR is to compile the enclosed hid.c from source instead of using the system installed hidapi package. As the #90 issue stated, the hid_send_feature_report() doesn't work on Linux systems with the system packages. With this modification we can use the v0.14 version of hidapi and we won't have the runtme dependency on Linux systems. On Windows I still kept the original model: use the precompiled .dll