From 9f97cd61bfa100aaf061f0e21d644b2db529ffae Mon Sep 17 00:00:00 2001 From: Joseph Jackson Date: Sun, 30 Apr 2017 10:47:02 -0500 Subject: [PATCH] Correct platform path for 32-bit Linux (#179) Gradle needs to produce a platform path of "Linux/i386" when targeting a Linux 32-bit Intel platform. Otherwise, it doesn't match Java's os.name/os.arch when loading the ntcore library in NetworkTablesJNI.java. Windows uses "x86" but Linux uses "i386". (http://lopica.sourceforge.net/os.html) --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 065deae..1d179b2 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ ext.getPlatformPath = { binary -> if (binary.targetPlatform.architecture.amd64) { return 'Linux/amd64' } else { - return 'Linux/' + binary.targetPlatform.architecture.name + return 'Linux/i386' } } else if (binary.targetPlatform.operatingSystem.windows) { if (binary.targetPlatform.architecture.amd64) {