Comments (8)
Try adding #include <sys/select.h>
in the extern "C"
section at the beginning of the file.
I will make a patch when you confirm it compiles for you. There may be similar errors in other files. I prefer to make a single patch for all missing include errors.
from hidpp.
@cvuchener got it to compile on my glibc chroot, but another thing is XML_NO_ERROR is apparently now XML_SUCCESS on newer tinyxml2, will try your fix.
from hidpp.
@cvuchener worked. I'm going to need some help though, as the binaries can't interact with my g602 in a meaningful way (prolly uses a differing protocol/profile stuff).
from hidpp.
I pushed the include fix (and a few other commits that I forgot to push).
XML_NO_ERROR is apparently now XML_SUCCESS on newer tinyxml2, will try your fix.
Do you get a deprecation warning? I don't get anything. Fedora 26 has tinyxml2-3.0.0, is it outdated?
The doc tells about XML_NO_ERROR. Both value are present in my header, but no comment tell to use one or the other.
from hidpp.
no, I just got a failure in compilation. I would say its outdated, but I tend to live on the edge. It apparently just no longer exists on my version.
[1/3] Building CXX object src/tools/CMakeFiles/profile.dir/profile/ProfileXML.cpp.o
FAILED: src/tools/CMakeFiles/profile.dir/profile/ProfileXML.cpp.o
/usr/bin/c++ -I../src/tools/../libhidpp -Wall -std=gnu++14 -MD -MT src/tools/CMakeFiles/profile.dir/profile/ProfileXML.cpp.o -MF src/tools/CMakeFiles/profile.dir/profile/ProfileXML.cpp.o.d -o src/tools/CMakeFiles/profile.dir/profile/ProfileXML.cpp.o -c ../src/tools/profile/ProfileXML.cpp
../src/tools/profile/ProfileXML.cpp: In function ‘void readButton(const tinyxml2::XMLElement*, HIDPP::Profile::Button&, HIDPP::Macro&, const HIDPP::EnumDesc&)’:
../src/tools/profile/ProfileXML.cpp:193:9: error: ‘XML_NO_ERROR’ was not declared in this scope
case XML_NO_ERROR:
^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
from hidpp.
Latest version is 5.0.1, and the online documentation is very old (2.0.2). I will make the change.
from hidpp.
Nice, glad to have been of assistance there. Do you think we could live chat in some manner to see about getting this particular mouse supported?
from hidpp.
Not right now sorry, maybe in the late afternoon or tonight (UTC+2).
from hidpp.
Related Issues (19)
- 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
- Request for help implementing HID protocol in BrailleTouch project
- Report's answer comes as INTERRUPT, not as SET_REPORT response HOT 1
- Compiling on Windows HOT 7
- Can't get it to build HOT 4
- 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.