Go to advanced search

by clicky
Sun Nov 04, 2018 10:09 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

I've done the same as original - I think it was maven...
by clicky
Sun Nov 04, 2018 8:34 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

The easiest is to clone repo (https://github.com/natdan/libgdx) and go from there... Branch 'rpi' has the latest in that repo.

There's a script `build-jni-for-rpi.sh` that builds RPi specific stuff...

Rest is linked at the top of this thread...
by clicky
Sun Nov 04, 2018 7:51 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

Honestly - no idea. Maybe what you suggested would help - adding JOGL to the list of enums. Do let me know if you need help with recompiling all on RPi after those changes... You can always manually move changed jar to your app and see if it works...
by clicky
Sun Oct 07, 2018 8:09 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

Apologies for the late response - I've just tested it and it seems to be working. I've picked my 'test' project: https://github.com/natdan/rpi-libgdx-example Updated versions (of almost everything that has something to do with gradle - eh) - including LibGDX to be 1.9.8.rpi and - it fetched all and ...
by clicky
Fri Mar 09, 2018 4:48 pm
Forum: Java
Topic: Omicron, a Java game engine/fantasy console (running on PI)
Replies: 2
Views: 1385

Re: Omicron, a Java game engine/fantasy console (running on PI)

Next is to use 3d! Raspberry Pi's GPU is quite good! :D
by clicky
Mon Feb 12, 2018 10:24 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

Good to hear you've sorted it. :) You've intrigued me and I'll check what I've done + update example to work with the latest + move version to stable 1.9.8 and 1.9.9 snapshot. Ah, only question when! LOL To answer your questions: 1. I am not C/C++ expert by any means. Not even apprentice or enthusia...
by clicky
Mon Feb 12, 2018 9:37 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

Hi, I have encountered same problem as you are right now and I've done something to overcome it. I just cannot remember what was it. I suspect I just upgraded distro at the end as that seemed the simplest. Box that might have all of it is due to circumstances not on the net at the moment - I'll atta...
by clicky
Wed Jan 31, 2018 12:25 pm
Forum: Java
Topic: Java on RPi
Replies: 5
Views: 1526

Re: Java on RPi

You can write Java for RPi within comfort of normal desktop/laptop machine and execute it on RPi same as you would execute it on local machine through something like this: http://remotevm.abstracthorizon.org/ You start agent jar on the RPi, add a jar to the classpath and configure run profile to pic...
by clicky
Mon Jan 22, 2018 9:52 pm
Forum: Troubleshooting
Topic: i2c can read byte but not block (smbus read_i2c_block_data not working)
Replies: 2
Views: 3458

Re: i2c can read byte but not block (smbus read_i2c_block_data not working)

I am curious how to do the same. What I see is that you don't have onReceive as bus.write_i2c_block_data(address, [b]1[/b], [0]) you are sending local address (1) as well (also known as register address) Communication really goes like this: master sends address of i2c device (your case SLAVE_ADDRESS...
by clicky
Tue Jan 09, 2018 8:59 am
Forum: Java
Topic: Which Java server is the best for raspberry Pi 3
Replies: 4
Views: 2531

Re: Which Java server is the best for raspberry Pi 3

If your question is regarding '3.' - then you can use built in HTTP server in Oracle's JDK: https://docs.oracle.com/javase/8/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html If you want something more powerful/closer to industrial standards then go with Spring Bootstrap ....
by clicky
Mon Jan 08, 2018 3:53 pm
Forum: Java
Topic: java getting real ip addres
Replies: 4
Views: 4033

Re: java getting real ip addres

Example given by @DougieLawson is the right way of fetching (all) IP addresses of the RPi. It can be improved a bit by filtering out loopbak and link local addresses: if (!address.isLoopbackAddress() && !address.isLinkLocalAddress()) { ... Whenever you need to 'return' your IP address - consider ret...
by clicky
Fri Dec 01, 2017 8:14 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

You're welcome. If you want to contribute anything to RPi 'fork' - just create an issue on github and I'll add you as an collaborator. I am yet to post instructions how to build everything on RPi itself. This time I did take notes so I (or anyone else) can recreate my builds more easily.
by clicky
Wed Nov 29, 2017 2:08 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

And 1.9.8.rpi-SNAPSHOT as well! ... which is current state of libgdx/libgdx master branch.
by clicky
Wed Nov 29, 2017 12:37 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

Good news: stable version of libgdx 1.9.7.rpi is in new maven repo: https://raw.githubusercontent.com/natdan/libgdx/mvn-repo/ If you just add: maven { url "https://raw.githubusercontent.com/natdan/libgdx/mvn-repo/" } to allproject/repositories block (instead of "http://repository.abstracthorizon.org...
by clicky
Tue Nov 28, 2017 8:14 pm
Forum: Java
Topic: i wanna use nrf24
Replies: 8
Views: 1418

Re: i wanna use nrf24

by clicky
Thu Nov 23, 2017 9:36 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

I did run first build (1.9.5.rpi) and put it in github as a repo (mvn-repo branch) but it didn't work. :( Not 100% sure what I did wrong but ran out of time to fix it. At least the process is documented (in my notepad) and I'll look more into it (I have a few ideas what might have gone wrong). When ...
by clicky
Wed Nov 22, 2017 3:54 pm
Forum: Java
Topic: i wanna use nrf24
Replies: 8
Views: 1418

Re: i wanna use nrf24

Try with what is in here:

https://github.com/Pi4J/pi4j/pull/285/files

It should really go in pi4j and I hoped to get enough time to clean it up and make really nice interface but something happened and I was left with virtually no spare time for it.
by clicky
Tue Nov 21, 2017 10:28 am
Forum: Java
Topic: i wanna use nrf24
Replies: 8
Views: 1418

Re: i wanna use nrf24

hi everyone i wanna do like this project https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=183893&p=1163861&hilit=nrf24#p1163861 in java how can i ? what is the pipes=[[0xe7, 0xe7, 0xe7, 0xe7, 0xe7],[0xc2, 0xc2, 0xc2, 0xc2, 0xc2]] ? Thanks a lot. It is not simple and straightforward interface...
by clicky
Sun Nov 19, 2017 1:04 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

OK. It is back in now. At least some of my work is. Repo is: https://github.com/natdan/libgdx and it should follow (at master branch level) original repo https://github.com/libgdx/libgdx I've created branch called rpi which should be where something like master-rpi should grow from. It contains some...
by clicky
Fri Nov 17, 2017 11:47 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

Just a short progress report (if not for you but for me): I spend couple of hours yesterday *searching* for the code I built and uploaded to repo. Fortunately just before giving up I found it on RPi I used to build everything (RPi that at that time wasn't connected to the network). It is safe on my ...
by clicky
Tue Nov 14, 2017 8:36 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

Oh, and it would be nice to set up deploying to some more global Maven repo - if nothing else setup one on github itself...
by clicky
Tue Nov 14, 2017 8:35 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20002

Re: LibGDX on RPi

Sorry for late reply: "1 You mentioned setting up a github repo - any hope of that appearing? :) Would love to help out with what I can, getting this to a more stable state." Yes. I'll take you post as reminder and try to do it as soon as I get couple of hours of free time! My apologies for not doin...
by clicky
Wed Nov 08, 2017 9:57 am
Forum: Java
Topic: About How to Create Executable file in Raspberry Pi
Replies: 3
Views: 1228

Re: About How to Create Executable file in Raspberry Pi

Brilliant! Do you have any references *why* it works?

Also - maybe calling "java_args" as "JAVA_ARGS" would make more sense but otherwise it is just brilliant!
by clicky
Thu Nov 02, 2017 8:44 am
Forum: Java
Topic: About How to Create Executable file in Raspberry Pi
Replies: 3
Views: 1228

Re: About How to Create Executable file in Raspberry Pi

Try searching for creation of 'executable' jar. Depending what build mechanism you are using there are different ways to do so. In Eclipse, for instance, you can select 'Export' -> 'Executable Jar' and select main class. If you are doing things 'properly' and have build set up (maven for instance) t...
by clicky
Thu Sep 07, 2017 3:41 pm
Forum: Java
Topic: problem with the I2C multiplexer PCA9544D and Pi4J
Replies: 1
Views: 1181

Re: problem with the I2C multiplexer PCA9544D and Pi4J

It seems that it is not implemented.

Go to advanced search