Post
Topic
Board Mining software (miners)
Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx
by
error
on 20/07/2011, 23:38:47 UTC
You have a conflict between jansson-1.2 which is included with Fedora and jansson-2.0 which comes with cgminer. Remove the jansson-devel packages and you'll be able to finish the build.
but will get this upon running cgminer:

[2011-07-20 12:41:07] Error: Getting Device IDs (num)


I am running an nVidia card at the moment, but poclbm and phoenix can each access it.
How did you install the NVIDIA drivers and CUDA toolkit?
Will removing the jansson-devel packages be beneficial at all compared to the workaround I described (editing the makefile)?  Regarding the NVIDIA drivers, I remember doing something with akmod-nvidia, but that may have been prior to mining, I downloaded the propietary binary package at some point as well, but I may have only installed it on an older version.  I think I installed the CUDA toolkit by extracting it per NVIDIA's instructions, but I don't think it is used.  I had trouble with it throwing an error about gcc 4.5 and greater not being supported trying to compile something a while back and couldn't figure out how to get it to recognize that I was using gcc34 as a compiler.  Also, I think the gpu mining compiled fine in this case because I also installed the ATI SDK, so I think it used the OpenCL drivers from the ATI SDK and not the CUDA toolkit.  Come to think of it, the working phoenix and poclbm came from git and weren't compiled by me, but I'd still expect them to use the same OpenCL driver.

If you installed the NVIDIA drivers from RPM Fusion (including xorg-x11-drv-nvidia-devel package) and the CUDA toolkit from NVIDIA in the default /usr/local/cuda, then this should get you going:

Code:
CFLAGS=-I/usr/local/cuda/include LDFLAGS=-L/usr/lib64/nvidia ./configure
make clean
make