The OSX package of blender require a specific path to be launch. If the path is modified 'dyld: Library not loaded: @loader_path' error or static python appear on blender 2.72

This commit is contained in:
Laurent Clouet
2014-11-30 23:42:57 +00:00
parent 4e660988e4
commit 51752b0e49
5 changed files with 21 additions and 1 deletions

View File

@@ -41,6 +41,11 @@ public class Linux extends OS {
return "linux";
}
@Override
public String getRenderBinaryPath() {
return "rend.exe";
}
@Override
public CPU getCPU() {
CPU ret = new CPU();

View File

@@ -19,6 +19,7 @@
package com.sheepit.client.os;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
@@ -39,6 +40,11 @@ public class Mac extends OS {
return "mac";
}
@Override
public String getRenderBinaryPath() {
return "Blender" + File.separator + "blender.app" + File.separator + "Contents" + File.separator + "MacOS" + File.separator + "blender";
}
@Override
public CPU getCPU() {
CPU ret = new CPU();

View File

@@ -31,6 +31,8 @@ public abstract class OS {
public abstract int getMemory();
public abstract String getRenderBinaryPath();
public String getCUDALib() {
return null;
}

View File

@@ -35,6 +35,11 @@ public class Windows extends OS {
return "windows";
}
@Override
public String getRenderBinaryPath() {
return "rend.exe";
}
@Override
public CPU getCPU() {
CPU ret = new CPU();