Replies: 2 comments 2 replies
-
With which archetype did you generate your project? I haven't found out how you generated your project, and using https://github.com/Pi4J/pi4j-example-minimal i was able run the application on a latest Raspberry Pi OS image using the following documentation: https://pi4j.com/getting-started/minimal-example-application/ |
Beta Was this translation helpful? Give feedback.
2 replies
-
Solved it the following way:
One thing still puzzles me: I still see the following debug output lines:
However, there's not any file located in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Used to use Pi4J 1.2, I'm trying to make the switch to Pi4J 2.0. First attempts don't look promising, though...
Steps followed:
mvn archetype:generate -DarchetypeCatalog=local
as installation command. Nothing more, nothing less.raspberry.properties
file (IP, private key, installation path, location of JDK11 on the RPi,,...).mvn clean
=> OKmvn install
=> OK, app is correctly installed on the RPimvn antrun:run@exec
=> fails when trying to run this line of code in the Main.java file:var led = pi4j.create(ledConfig);
This is the full output:
The code is trying to load a library through
System.loadLibrary()
(called inNativeLibraryLoader.java
of thepigpio
library) but it can't find/lib/armhf/libpigpio.so
file. And indeed, there's no such directory created/generated in the/lib
directory on the RPi.I'm not a maven expert by any means (although I'm able to read an understand more or less what's going on...), but nowhere can I see in any of the
pom.xml
files an action that should copy the.so
file(s) ofpigpio
(and maybe others too?) to that particular library location in the RPi root file system (/lib/....
).Is this a mistake or am I missing something?
Best rgds,
--Geert
Beta Was this translation helpful? Give feedback.
All reactions