Diablo-D3 / DiabloMiner

OpenCL miner for Bitcoin
https://bitcointalk.org/index.php?topic=1721.0
GNU General Public License v3.0
538 stars 217 forks source link

Unknown platform: "Darwin" #9

Closed atamis closed 13 years ago

atamis commented 13 years ago

Running on an intel iMac, 10.5.8. Running DiabloMiner under the provided Java 1.5 produces the following error:

 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException

Running it under Soylatte (port of Java 1.6 to Darwin) produces the following:


[5/1/11 3:40:10 PM] Started

[5/1/11 3:40:10 PM] Connecting to: http://http://mining.bitcion.cz:8332:8332/
Exception in thread "main" java.lang.LinkageError: Unknown platform: Darwin
    at org.lwjgl.LWJGLUtil.<clinit>(LWJGLUtil.java:285)
    at org.lwjgl.Sys.createImplementation(Sys.java:111)
    at org.lwjgl.Sys.<clinit>(Sys.java:98)
    at org.lwjgl.opencl.CL.<clinit>(CL.java:51)
    at com.diablominer.DiabloMiner.DiabloMiner.execute(DiabloMiner.java:242)
    at com.diablominer.DiabloMiner.DiabloMiner.main(DiabloMiner.java:107)

How can I solve either problem?

Diablo-D3 commented 13 years ago

You have three problems:

OSX 10.5 does not do OpenCL. You need at least 10.6. Apple refuses to backport OpenCL support to 10.5.

The Java 5 issue probably can't be fixed. DiabloMiner is compiled on Java 6, and as such will not work on 5, and I believe I'm using 6-only features as well. It is not worth the trouble as every platform that does OpenCL has 6.

Finally, LWJGL does not recognize Darwin as a platform name, Soylatte should probably emit the OSX platform name instead.