danomatika / joyosc Goto Github PK
View Code? Open in Web Editor NEW(maintained) hid device to osc event daemon used in the robotcowboy project
Home Page: http://robotcowboy.com
License: GNU General Public License v3.0
(maintained) hid device to osc event daemon used in the robotcowboy project
Home Page: http://robotcowboy.com
License: GNU General Public License v3.0
there is the following code in GameController.cpp
:
if(axis == "lefttrigger" || axis == "righttrigger") {
return buttonPressed(axis, (event->caxis.value > 0 ? 1 : 0));
}
with a comment that for some devices the triggers are recognised as axis.. I don't think this is a bug and i find it very useful to have the full range of sensitivity on the triggers. Removing the above lines results in a working solution.
Maybe you could add an option where one can choose how triggers should be interpreted?
Good Day everyone
Im currently trying to compile joyosc for windows.
ive gotten to the make part.
the build process does suddenly stop though at this step.
I have sdl2 and tinyxml2 installed with MSYS, configure does run cleanly.
Am i missing libaries, have i installed to much things?
[CONSOLE OUTPUT: (cut down to the none working part]
Making all in joyosc
make[3]: Entering directory '/c/Users/pepper/joyosc/src/joyosc'
g++ -DHAVE_CONFIG_H -I. -I../../src -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main -I../../lib/cpphelpers -g -O2 -MT Config.o -MD -MP -MF .deps/Config.Tpo -c -o Config.o Config.cpp
Config.cpp: In member function 'bool Config::loadXMLFile(const std::string&)':
Config.cpp:183:9: error: reference to 'XMLDocument' is ambiguous
183 | XMLDocument *doc = new XMLDocument;
| ^~~~~~~~~~~
In file included from Config.h:33,
from Config.cpp:23:
C:/msys64/mingw64/include/tinyxml2.h:1720:20: note: candidates are: 'class tinyxml2::XMLDocument'
1720 | class TINYXML2_LIB XMLDocument : public XMLNode
| ^~~~~~~~~~~
In file included from C:/msys64/mingw64/include/urlmon.h:458,
from C:/msys64/mingw64/include/objbase.h:163,
from C:/msys64/mingw64/include/ole2.h:17,
from C:/msys64/mingw64/include/wtypes.h:13,
from C:/msys64/mingw64/include/winscard.h:10,
from C:/msys64/mingw64/include/windows.h:97,
from C:/msys64/mingw64/include/winsock2.h:23,
from C:/msys64/mingw64/include/lo/lo_endian.h:24,
from C:/msys64/mingw64/include/lo/lo.h:28,
from Config.h:31:
C:/msys64/mingw64/include/msxml.h:300:27: note: 'typedef class XMLDocument XMLDocument'
300 | typedef class XMLDocument XMLDocument;
| ^~~~~~~~~~~
Config.cpp:183:22: error: 'doc' was not declared in this scope
183 | XMLDocument *doc = new XMLDocument;
| ^~~
Config.cpp:183:32: error: reference to 'XMLDocument' is ambiguous
183 | XMLDocument *doc = new XMLDocument;
| ^~~~~~~~~~~
C:/msys64/mingw64/include/tinyxml2.h:1720:20: note: candidates are: 'class tinyxml2::XMLDocument'
1720 | class TINYXML2_LIB XMLDocument : public XMLNode
| ^~~~~~~~~~~
C:/msys64/mingw64/include/msxml.h:300:27: note: 'typedef class XMLDocument XMLDocument'
300 | typedef class XMLDocument XMLDocument;
| ^~~~~~~~~~~
Config.cpp:240:18: error: type '' argument given to 'delete', expected pointer
240 | if(doc) {delete doc;}
| ^~~~~~~~~~
Config.cpp:244:18: error: type '' argument given to 'delete', expected pointer
244 | if(doc) {delete doc;}
| ^~~~~~~~~~
make[3]: *** [Makefile:476: Config.o] Error 1
make[3]: Leaving directory '/c/Users/pepper/joyosc/src/joyosc'
make[2]: *** [Makefile:385: all-recursive] Error 1
make[2]: Leaving directory '/c/Users/pepper/joyosc/src'
make[1]: *** [Makefile:324: all] Error 2
make[1]: Leaving directory '/c/Users/pepper/joyosc/src'
make: *** [Makefile:460: all-recursive] Error 1
Hi Dan,
I am trying to compile for Windows.
I managed to get all 3 libs (SDL2, tinyxml2, and liblo) but I am now stuck on undefined references. I attach the config and console log.
Best,
f
Hi,
I'd really like to download the release build from your website but Firefox tells me there's a security risk.
docs.danomatika.com uses an invalid security certificate.
The certificate is not trusted because it is self-signed.
Error code: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT
This also happens on your robotcowboy.com site.
Not being sure if there's a bad actor involved or if it's just a technical problem I don't trust to visit the site.
Thanks for looking into this if you do.
Hey danomatika,
Thanks for your software and your electronic art stuff!
For a project I currently need "gamepad to OSC" functionality and came across joyosc.
It looks promising, so i wanted to give it a try.
Unfortunately joysoc did not even compile.
The reason is config/config.sub and other automake resources being symbolic links into your local filesystem.
$ ./configure
...
configure: error: cannot run /bin/bash ./config/config.sub
$ ls -al ./config/config.sub
./config/config.sub -> /usr/local/Cellar/automake/1.15/share/automake-1.15/config.sub
IIRC you should only distribute the configure script and a Makefile.in generated from the autotools package.
Details the-magic-behind-configure-make-make-install
If joysoc is obsolete and you are aware of a good replacement I would be happy to hear about it.
The code needs to compile and run on Linux.
Thanks + cheers,
Edgar
Device: Raspberry Pi 4 w/ 5.4.79-v7l+ (desktop)
With a fresh install - when I try to run joyosc, I get a shared libraries error for liblopack.so.0
. However, if I run it from the binary in joyosc/src/joyosc
it works.
liblopack.so.0
exists at /usr/local/lib/
Is this a build error somewhere?
pi@raspberrypi:~/joyosc $ joyosc -e
joyosc: error while loading shared libraries: liblopack.so.0: cannot open shared object file: No such file or directory
pi@raspberrypi:~/joyosc/src/joyosc $ ./joyosc -e
listening port: 7770
listening multicast group: none
listening addr: /joyosc
sending ip: 127.0.0.1
sending port: 8880
sending address for notifications: /joyosc/notifications
sending address for devices: /joyosc/devices
print events?: yes
joysticks only?: no
sleep us: 10000
device addresses: 0
pi@raspberrypi:~/joyosc/src/joyosc $ ls -la /usr/local/lib/
total 7840
drwxr-xr-x 5 root root 4096 Aug 18 12:16 .
drwxr-xr-x 12 root root 4096 Aug 16 19:21 ..
-rw-r--r-- 1 root root 1629348 Aug 18 12:16 liblopack.a
-rwxr-xr-x 1 root root 960 Aug 18 12:16 liblopack.la
lrwxrwxrwx 1 root root 18 Aug 18 12:16 liblopack.so -> liblopack.so.0.0.0
lrwxrwxrwx 1 root root 18 Aug 18 12:16 liblopack.so.0 -> liblopack.so.0.0.0
-rwxr-xr-x 1 root root 935184 Aug 18 12:16 liblopack.so.0.0.0
-rw-r--r-- 1 root root 3411184 Aug 18 12:16 libtinyobject.a
-rwxr-xr-x 1 root root 984 Aug 18 12:16 libtinyobject.la
lrwxrwxrwx 1 root root 22 Aug 18 12:16 libtinyobject.so -> libtinyobject.so.0.0.0
lrwxrwxrwx 1 root root 22 Aug 18 12:16 libtinyobject.so.0 -> libtinyobject.so.0.0.0
-rwxr-xr-x 1 root root 2017632 Aug 18 12:16 libtinyobject.so.0.0.0
Hi, how are you?
When i run the ./autogen.sh the console say this
configure.ac:30: error: possibly undefined macro: AC_CHECK_INCLUDES_DEFAULT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
what i miss?
Ok, so I realized I could add the DESTDIR
flag to make install
and did that.
However, it created a lib
subdirectory without the three dependencies that I manually added (liblo-7.dll, SDL2.dll, and libtinyxml2.dll). You can have a look here
Trying to run from the bin, or from the root dir gave me an error for not finding the shared libs. So, I moved all libs and .exe
s to the same dir and got this:
$ ./joyosc.exe
.../Downloads/joyosc-installed/mingw64/joyosc.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
I am afraid I have no more info on this and wont be able to work on this until later this week. Hope any of this is helpful. Please, let me know if it isn't!
Config.cpp includes GameControllerignore.h
, which should be GameControllerIgnore.h
(i -> I) since Linux is case-sensitive.
Hi Dan,
So, I tried packaging the binary+libs to run from another machine and it appears that I must have admin privileges to bypass the antivirus. It was the only Windows computer I had access to, so I could not test the build.
I will see from the students' computers and see if everything worked out correctly.
I just don't know how to compile and have a binary that is not from an unidentified dev so that it does not raise that kind of warning that prevents me from running joyosc.
Compiled joyosc as in issue #13 , joyosc doesn't close anymore by sending it /joyosc/quit
via OSC. (port is default 7770)
V0.4.5 does work.
-e shows
joyosc: unknown message received: /joyosc/quit
joyosc: unknown message received: /joyosc/quit
joyosc: unknown message received: /joyosc/quit
joyosc: unknown message received: /joyosc/quit
when the message is sent a couple times
I tried making this package for joyosc to use on another mac, and I got the following error:
dyld: Library not loaded: /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib
Referenced from: /Users/camarahalac.1/Downloads/package/./joyosc
Reason: image not found
Abort trap: 6
Which makes me think that the executable is trying to load its dependencies from their original location obtained from pkg-config, and not from the current directory. I suspect the same thing is happening on Windows (#5), since it's the same type of build.
In any case, this makes me think that the package won't run easily on other people's computers...
Good morning,
I saw this beautiful project, and I fully agree that joysticks and buttons are the most practical and economical thing for small projects.
I work with raspberry and arduino.
But I would like to make a project with windows 10, but unfortunately I can't install.
Is there an exe in the future?
Thank you
Tried with 0.4.5 from the link in Quickstart
Tried with the current dev build for windows fix, doesnt work either.
joyosc.exe does start, behaves like normal for OSC messages being sent in default config.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.