Comments (5)
Oh, I should probably make that more clear in the readme:
ctroller should compile fine on all Linux-distros, I just happen to have made an package for Arch ready to be installed.
Running make
in the repo should already give you a working executable.
I will update the readme in this regard.
If you have further questions just go ahead and ask me.
On 08 Jul 2016, at 19:30, Harry [email protected] wrote:
I'm not running Arch and was hoping to get this running on my Raspberry Pi Retropie setup, however, that runs on Debian. I'm not sure if its even possible for me to run an Arch thing on Debian (probably not though), so would you consider making it for other linux versions?
Thanks—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from ctroller.
running make
sort of works, but its giving me errors and such. I'll just c/p what it gives me and I hope you can help me out here.
pi@retropie:~/RetroPie/ctroller-master/linux $ make
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) {
^
Makefile:194: recipe for target 'build/release/main.o' failed
make[1]: *** [build/release/main.o] Error 1
Makefile:124: recipe for target 'release' failed
make: *** [release] Error 2
knowing myself, I probably somehow managed to break something :P
from ctroller.
I figured out what your issue is. Did you download the repository as a zip file? If so, ctroller does not know what version it is building. The build process tries to figure out the version from the git-repository itself, which is missing from the zip file.
To be able to compile ctroller, you need to install git with your package manager and clone the repository:
$ git clone https://github.com/phijor/ctroller.git
Does that help you?
from ctroller.
yes it does, thanks so much for the help!
from ctroller.
Glad I could help you :) I hope ctroller is useful to you.
If you have any suggestions/feature requests/questions/... just go ahead and post an issue.
from ctroller.
Related Issues (14)
- AUR package bannertool-git does not build HOT 2
- Crash at startup HOT 3
- WiFi error
- [Feature Request] Touchpad as Button zones? HOT 3
- Netwotk interface is not configured
- 3ds/types.h no such directory while building 3ds section HOT 2
- An Exception Occurred HOT 1
- Issue when creating CIA HOT 7
- Building outside of a git repository fails because of undefined macros HOT 1
- Screen rotation changes constantly HOT 4
- CIA file gives a "An exception occured" HOT 10
- Mouse is absolute, and therefore pretty useless, maybe use EV_REL instead?
- When built using the latest version of devkitarm and ctrulib, opening the app with no wifi connection will cause a data abort. 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 ctroller.