phijor / ctroller

Use your 3DS as a gamepad on linux
GNU General Public License v3.0
39 stars 12 forks source link

Issue when creating CIA #3

Closed martinnnnnnnnnnnnnnnnnnn closed 7 years ago

martinnnnnnnnnnnnnnnnnnn commented 7 years ago

I have bannertool in the /3DS/ folder, yet when I attempt "make" I get

Makefile:195: recipe for target '/home/ben/Documents/3ds/ctroller-master/linux/ctroller/3DS/ctroller.cia' failed
make: *** [/home/ben/Documents/3ds/ctroller-master/linux/ctroller/3DS/ctroller.cia] Error 127
martinnnnnnnnnnnnnnnnnnn commented 7 years ago

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

phijor commented 7 years ago

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

yellomonkey commented 7 years ago
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
yellomonkey commented 7 years ago

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

yellomonkey commented 7 years ago

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

phijor commented 7 years ago

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.

yellomonkey commented 7 years ago

thanks dude i'll try my best to organize things awesome app and it works like a charm

On Thu, Apr 6, 2017 at 8:46 PM, phijor notifications@github.com wrote:

Hi @yellomonkey https://github.com/yellomonkey, you probably did not build ctroller from a git-repository. See issue #2 https://github.com/phijor/ctroller/issues/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 https://github.com/phijor/ctroller/releases/latest, you'll find a .cia file there.

Thank you for reporting, but the next time I'd urge you to open a new issue https://github.com/phijor/ctroller/issues/new on the tracker, that makes things easier to organize.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phijor/ctroller/issues/3#issuecomment-292206795, or mute the thread https://github.com/notifications/unsubscribe-auth/AZl7TkG-qY-bK78XpXGtwPHSVOcZeI02ks5rtQGygaJpZM4LdkGL .