GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Teach JNA to look for custom library paths · processing/processing-video@038d80f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • library
    • jna.jar
  • src/processing/video
    • Video.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎library/jna.jar‎

Copy file name to clipboard
182 KB
Binary file not shown.
Collapse file

‎src/processing/video/Video.java‎

Copy file name to clipboardExpand all lines: src/processing/video/Video.java
+5-14Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -155,20 +155,11 @@ static protected void removePlugins() {
155155

156156

157157
static protected void buildLinuxPaths() {
158-
// looking pretty dire, make sure at least LD_LIBRARY_PATH is set
159-
// see https://github.com/twall/jna/issues/477
160-
String ldPath = System.getenv("LD_LIBRARY_PATH");
161-
if (ldPath == null || ldPath.length() == 0) {
162-
System.out.println("Your system's LD_LIBRARY_PATH environment variable " +
163-
"is not set, limiting the search for the video libraries to /usr/lib " +
164-
"and /lib.");
165-
// temporary hack for testing on Raspbian
166-
if (System.getProperty("os.arch").equals("arm")) {
167-
gstreamerLibPath = "/opt/vc/lib:/usr/local/lib:/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf";
168-
}
169-
} else {
170-
gstreamerLibPath = ldPath;
171-
}
158+
// the version of the JNA library bundled automatically tries
159+
// all library paths known to the host system's ldconfig
160+
// so we'd even catch locations like /usr/local/lib etc
161+
// PL for upstream: https://github.com/twall/jna/pull/478
162+
gstreamerLibPath = "";
172163
gstreamerPluginPath = "";
173164
}
174165

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.