cbuchner1 / CudaMiner

a CUDA accelerated litecoin mining application based on pooler's CPU miner
Other
692 stars 304 forks source link

Dificulty with compiling on Ubuntu 13.10 - CUDA 5.5 installed. #78

Closed pschlump closed 10 years ago

pschlump commented 10 years ago

I have installed CUDA 5.5 on Ubuntu When I compile I get an error

g++ -g -O2 -pthread -L/usr/local/cuda/lib64 -o cudaminer cudaminer-cpu-miner.o cudaminer-util.o cudaminer-sha2.o cudaminer-scrypt.o cudaminer-scrypt-jane.o salsa_kernel.o spinlock_kernel.o legacy_kernel.o fermi_kernel.o kepler_kernel.o test_kernel.o titan_kernel.o -L/usr/lib/x86_64-linux-gnu -lcurl compat/jansson/libjansson.a -lpthread -lcudart -fopenmp
cudaminer-scrypt.o: In function scanhash_scrypt': /home/chantelle/CudaMiner/scrypt.cpp:730: undefined reference toprepare_sha256' /home/chantelle/CudaMiner/scrypt.cpp:761: undefined reference to pre_sha256' /home/chantelle/CudaMiner/scrypt.cpp:771: undefined reference topost_sha256' /home/chantelle/CudaMiner/scrypt.cpp:834: undefined reference to pre_sha256' /home/chantelle/CudaMiner/scrypt.cpp:843: undefined reference topost_sha256' salsa_kernel.o: In function validate_config(char*, int&, int&, KernelInterface**, cudaDeviceProp*)': /home/chantelle/CudaMiner/salsa_kernel.cu:165: undefined reference toNV2Kernel::NV2Kernel()' /home/chantelle/CudaMiner/salsa_kernel.cu:164: undefined reference to NVKernel::NVKernel()' salsa_kernel.o: In functionfind_optimal_blockcount(int, KernelInterface*&, bool&, int&)': /home/chantelle/CudaMiner/salsa_kernel.cu:392: undefined reference to NV2Kernel::NV2Kernel()' /home/chantelle/CudaMiner/salsa_kernel.cu:390: undefined reference toNVKernel::NVKernel()' cudaminer-scrypt-jane.o: In function scanhash_scrypt_jane': /home/chantelle/CudaMiner/scrypt-jane.cpp:502: undefined reference topre_keccak512' /home/chantelle/CudaMiner/scrypt-jane.cpp:531: undefined reference to pre_keccak512' /home/chantelle/CudaMiner/scrypt-jane.cpp:583: undefined reference topost_keccak512' /home/chantelle/CudaMiner/scrypt-jane.cpp:475: undefined reference to `prepare_keccak512' collect2: error: ld returned 1 exit status

I feel really silly - since usually I can figure these things out.