JaciBrunning / Pathfinder

Cross-Platform, Multi-Use Motion Profiling and Trajectory Generation
MIT License
255 stars 78 forks source link

2018 Issues #22

Closed xortive closed 6 years ago

xortive commented 6 years ago

Can't get build working on my windows 10 machine to test recent commits (probably my fault), fails when compiling the JNI pathfinder lib.

I've tried the 2017 1.5 and 1.4 builds, which deploy fine but fail with a UnsatisfiedLinkError for the pathfinder JNI lib.

Is there a way to get Pathfinder running on a 2018 bot yet?

JaciBrunning commented 6 years ago

See the README here: https://github.com/JacisNonsense/Pathfinder#part-of-the-first-robotics-competition

xortive commented 6 years ago

I'm not using gradleRIO, is it necessary?

I put the 1.5 jar into the wpilib userLibs directory. It's being included in the FRCUserProgram jar, but the robot program quits when it can't find the compiled JNI library.

ankithu commented 6 years ago

Hi, we're having the same issue. We put pathfinder jar file in the wpilib/user directory. It compiles fine, but during execution, it throws an UnsatisfiedLinkError when PathFinderJNI tries to load the library. We are compiling on Windows 10 with the 2018 development environment. We don't currently use GradleRIO; is there a way to solve this without adding any plugins? Thanks for the help.

JaciBrunning commented 6 years ago

If you're not using GradleRIO, you must download this manually and copy into ~/wpilib/user/java/lib.

You also have to download this, extract it, and place libpathfinder.so into ~/wpilib/user/java/lib

ankithu commented 6 years ago

Thank you, this fixed our problem!