Author

Topic: [SOLVED] Compile minerd for OSX 10.4? (Read 2821 times)

newbie
Activity: 21
Merit: 0
November 04, 2011, 04:59:21 PM
#3
I finally got this figured out, with help from a couple people and some dumb luck. Smiley

http://liteco.in/threads/osx-miners.23/
newbie
Activity: 21
Merit: 0
November 01, 2011, 03:08:25 PM
#2
Quote
but you need to follow this thread here to get it to see your curl install so it works on Intel.

Yep, you are correct.

Quote from: SAC
BTW now I notice why are you compiling software as root user?

I've been working on this so long, I got tired of typing sudo.  Grin  (This is just a test machine anyway, I've installed so many dependencies over top of system dependencies, I'd never use it for anything important without formatting it!)
newbie
Activity: 21
Merit: 0
November 01, 2011, 02:39:54 PM
#1
Getting minerd compiled on a recent mac isn't too painful.  (The info is in this forum, if I ever get everything working, I'll post instructions)  My problem is with getting it to compile for OSX 10.4, and ideally in a universal binary.  After updating many libraries (m4, automake, autoconf, libtools), I can *almost* get minerd to compile, but it fails during the "make" with the following errors:

Code:
config.status: creating cpuminer-config.h
config.status: cpuminer-config.h is unchanged
config.status: executing depfiles commands
hostname-1:~/Desktop/cpuminer root# make
make  all-recursive
Making all in compat
make[3]: Nothing to be done for `all-am'.
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing     -g -O2 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
cpu-miner.c: In function 'parse_arg':
cpu-miner.c:797: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
cpu-miner.c:797: error: (Each undeclared identifier is reported only once
cpu-miner.c:797: error: for each function it appears in.)
make[2]: *** [minerd-cpu-miner.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Getting this far has been beyond my ken, so I'm pretty stumped here. Is this because I'm trying to compile on a PPC processor? Should I install the dev tools on an intel box running 10.4?  Should I just give up?  Smiley
Jump to: