Giter VIP home page Giter VIP logo

Comments (8)

cvuchener avatar cvuchener commented on August 27, 2024

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.

hanetzer avatar hanetzer commented on August 27, 2024

@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.

hanetzer avatar hanetzer commented on August 27, 2024

@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.

cvuchener avatar cvuchener commented on August 27, 2024

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.

hanetzer avatar hanetzer commented on August 27, 2024

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.

cvuchener avatar cvuchener commented on August 27, 2024

Latest version is 5.0.1, and the online documentation is very old (2.0.2). I will make the change.

from hidpp.

hanetzer avatar hanetzer commented on August 27, 2024

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.

cvuchener avatar cvuchener commented on August 27, 2024

Not right now sorry, maybe in the late afternoon or tonight (UTC+2).

from hidpp.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.