Git Product home page Git Product logo

Comments (7)

yellomonkey avatar yellomonkey commented on June 13, 2024 1

from ctroller.

phoen1x74 avatar phoen1x74 commented on June 13, 2024

Nevermind. I fixed it by adding ./ to the makefile.

from ctroller.

phijor avatar phijor commented on June 13, 2024

For future reference:

Unixes don't run executables in the current directories unless you explicitly tell them to. See here why that is.

You either tell them run the bannertool that you provided by saying ./bannertool (what you did), or you place bannertool in a directory that is in your $PATH (what I'd recommend).

from ctroller.

yellomonkey avatar yellomonkey commented on June 13, 2024
Building linux executable...
make[1]: Entering directory `/home/maya/Desktop/ctroller-master/linux'
Creating directories
Beginning release build
Compiling: src/main.c -> build/release/main.o
src/main.c: In function ‘main’:
src/main.c:134:12: warning: missing initializer for field ‘version’ of ‘struct hidinfo’ [-Wmissing-field-initializers]
     struct hidinfo hid = {};
            ^
In file included from include/ctroller.h:6:0,
                 from src/main.c:31:
include/hid.h:69:14: note: ‘version’ declared here
     uint16_t version;
              ^
In file included from src/main.c:31:0:
include/ctroller.h:18:37: error: ‘VERSION_MAJOR’ undeclared (first use in this function)
 #define CTROLLER_VERSION MAKEBCDVER(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
                                     ^
include/ctroller.h:12:7: note: in definition of macro ‘MAKEBCDVER’
     ((major & 0xf) << 8 | (minor & 0xf) << 4 | (patch & 0xf))
       ^
src/main.c:152:36: note: in expansion of macro ‘CTROLLER_VERSION’
                 if (hid.version != CTROLLER_VERSION) {
                                    ^
include/ctroller.h:18:37: note: each undeclared identifier is reported only once for each function it appears in
 #define CTROLLER_VERSION MAKEBCDVER(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
                                     ^
include/ctroller.h:12:7: note: in definition of macro ‘MAKEBCDVER’
     ((major & 0xf) << 8 | (minor & 0xf) << 4 | (patch & 0xf))
       ^
src/main.c:152:36: note: in expansion of macro ‘CTROLLER_VERSION’
                 if (hid.version != CTROLLER_VERSION) {
                                    ^
include/ctroller.h:18:52: error: ‘VERSION_MINOR’ undeclared (first use in this function)
 #define CTROLLER_VERSION MAKEBCDVER(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
                                                    ^
include/ctroller.h:12:28: note: in definition of macro ‘MAKEBCDVER’
     ((major & 0xf) << 8 | (minor & 0xf) << 4 | (patch & 0xf))
                            ^
src/main.c:152:36: note: in expansion of macro ‘CTROLLER_VERSION’
                 if (hid.version != CTROLLER_VERSION) {
                                    ^
include/ctroller.h:18:67: error: ‘VERSION_PATCH’ undeclared (first use in this function)
 #define CTROLLER_VERSION MAKEBCDVER(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
                                                                   ^
include/ctroller.h:12:49: note: in definition of macro ‘MAKEBCDVER’
     ((major & 0xf) << 8 | (minor & 0xf) << 4 | (patch & 0xf))
                                                 ^
src/main.c:152:36: note: in expansion of macro ‘CTROLLER_VERSION’
                 if (hid.version != CTROLLER_VERSION) {
                                    ^
make[2]: *** [build/release/main.o] Error 1
make[1]: *** [release] Error 2
make[1]: Leaving directory `/home/maya/Desktop/ctroller-master/linux'
make: *** [linux] Error 2

from ctroller.

yellomonkey avatar yellomonkey commented on June 13, 2024

i did all the steps but i'm getting an error
i hope you would kindly help me

from ctroller.

yellomonkey avatar yellomonkey commented on June 13, 2024

could ya please give the .cia file please???

from ctroller.

phijor avatar phijor commented on June 13, 2024

Hi @yellomonkey, you probably did not build ctroller from a git-repository. See issue #2 why you get that error. To build ctroller, you either clone the repository and let it build from there or wait for the next commit that should fix out-of-git building/versioning.

If you want to download the latest release of ctroller, just got to the release tab, you'll find a .cia file there.

Thank you for reporting, but the next time I'd urge you to open a new issue on the tracker, that makes things easier to organize.

from ctroller.

Related Issues (14)

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.