New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rxtx dead? #13
Comments
Do you know of an alternative? |
Interesting, thanks. What is the origin of your library, and are you still maintaining it? How does one migrate from rxtx? |
I am not founder of this lib but just user. |
After rxtx.org seems gone, some history and archives can still be found |
I've been very happy with http://fazecast.github.io/jSerialComm recently. One of the very useful features is that all of the different native libraries are bundled in the jar artifact and are loaded automatically. Basically, you only need to add the jar file as a dependency in your project. |
@hurynovich Also the code into the repo is not from the original package. Can you please create a master branch with the original code so people can start contributing on it to fix bugs /issues? the rxtx is still a widely used library everywhere. Also I think you should contact the original author Trent Jarvi tjarvi@qbang.org Cheers |
Hi @nicola-lunghi,
I had to laugh about this one. Please take a look how many patches and bugfixes were provided. Then take a look when this repository was created. It would be more accurate to say, that nobody cared about anything here. Sadyl, I did not have time in the past to maintain the requested changes. If somebody wants to take over maintenance, please perform a review of the pull requests received so far, add tests, etc. Your work is welcome. Regards Alex |
Hi Alex (we had some E-mail exchange on January 1, 2018), I cannot build RXTX with the current JDKs anymore because the maven-native plugin relies on the javah command, which has been removed from the JDK (>8). Is there anything that can be done about that in the Maven files of RXTX, or do we depend on the authors of the maven-native plugin? Greetings, |
Is "javac -h" equivalent to "javah"? |
@mizapf Forgive me for not being able to help in more detail. Greetings, |
@stroucki @alibabashack |
I just spent a couple minutes hacking on it and I couldn't get the correct maven incantation; I'd assume this is an issue that should be handled by the native-maven-plugin. Perhaps you can create a wrapper shell script to javac -h, call it javah, and make it available in the PATH. |
If javah is not needed but javac -h, could we use another maven plugin (the one for javac) to do the job of maven-native? I already thought about writing a wrapper script, but some seconds later that idea did not look that good any more. I mean, I can do it, but who else? We surely don't want to write such a recipe into the INSTALL file. Right now, people will only be able to build RXTX if they find an old JDK 7 in some archive. So if there is no way around maven-native, I'll file a report at mojohaus and hope they fix their plugin. |
Hi everyone, hi @mizapf , I am also motivated to finally get a binary delivery process running. Help is much appreciated. Anyone with knowledge of Github Actions CI? The confusion of people coming to this repository is unfortunate but understandable. I did not do a good job in communicating the state of the project and the motivation to create this repository. tl;dr; A few years back the original rxtx.qbang.org was slowly dying. The things that annoyed me the most, were the old CVS and the complicated and mostly manual build process to create a release. So I migrated the sources of the original rxtx.qbang.org repository to mercurial and later git and with the help of @tuxedo0801 created a one stop maven build. This was a process communicated with the rxtx mailing list. It was not intended as a fork, but as a new edition of rxtx. Sadly the whole mission fell asleep after a while, because nobody seemed to be particularly interested in rxtx as a project. Everybody seemed to be using some ancient binary version downloaded somewhere, without caring to much how these binaries were built. But, yes, this repository is the successor of rxtx.qbang.org. And if you care about rxtx, please help. It is much appreciated. There is a clear mission here:
Best regards, |
Seems to build now, using openjdk 11.0.10. |
@mizapf The idea is that rxtxSerial contains the service provider implementation and all binaries. rxtx-api is a separate artifact which provides the public API. This forces user to code against the API only, whereas the implementation is a runtime dependency only. All other artifacts are intermediate build products. |
This means at runtime you have to include both API JAR and the serial JAR in the classpath, right? |
As of https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html the API would be in compile scope and the implementation in runtime scope. Both will be at the classpath at runtime, but only the API is in the compile time transitive classpath. With rxtxSerial-test there is an example how to use it. Relevant POM section:
|
Nice to see that this makes some progress. Just for recerence as @alibabashack mentioned me... there was or is still the rxtx rebundled package around: https://gitlab.com/alexanderchristian/rxtx-rebundled Did not use it for years, might still work. Serial communicarion is heavily used for those wh use the Arduino IDE... I wonder what they use to do the RS232 communication... |
Thank you @tuxedo0801 for reminding, but I hope with the upcomming CI/CD workflow we can finally switch to up to date binaries. CI/CD is already working and currently available for review in pull request #32. Feedback welcome! This means we have new up to date binaries built via github actions which should run on the following platforms:
With very little work also linux arm (armel, armhf) might work. Since I only have access to linux/x86_64 machines I am looking for volunteers who could run a simple loopback test on other platforms. Also feedback is welcome regarding platform requirements. Where else do you need to run rxtx? ppc mac, 64bit arm, etc.? |
Hi @alibabashack I am very happy to see that rxtx is not dead after all. We were still using a very old version, but since there were no binaries available for Centos 8, we started to switch to another library (which was not very successful so far). Is there already a binary for linux X86_64 that we can test? |
We were now able to create the binary ourselves using the instructions with maven, which worked fine so far. Next step is to test if the communication works... |
Hi @EliasIEE, yes, there is a github action CI, now. Its build includes the binaries for linux (x86, x86_64), windows (x86, x86_64), osx: The artifact rxtx-distribution includes both relevant jars. For details see #24 (comment) |
That's great thanks a lot! |
No se si estoy loco pero lei toda la historia apasionante de como este tipo cambio la historia.. y el mundo aun no lo conoce.. I don't know if I'm crazy but I read the whole exciting story of how this guy changed history... and the world still doesn't know him... |
Is RxTx Dead?
The text was updated successfully, but these errors were encountered: