gadgetinventor / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

Build script can't find CUDA library directory on OS X. #248

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Check out code
2.  Compile
3.

What is the expected output? What do you see instead?
An executable.
This error:
ld: library not found for -lcuda
collect2: ld returned 1 exit status

What version of the product are you using? On what operating system?
Lastest SVN code, OS X 10.6.

Please provide any additional information below.
Attached is a patch to fix the problem.

Original issue reported on code.google.com by KD5...@gmail.com on 28 Jan 2011 at 12:31

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the patch, but this does not really fix the problem, does it? The 
dynamic linker needs to find libcuda.dylib at runtime. The preferred way to do 
that is to either add e.g. /usr/local/cuda/lib to your ldpath or symlink the 
library from there to /usr/lib

Original comment by lukas.l...@gmail.com on 28 Jan 2011 at 7:42

GoogleCodeExporter commented 8 years ago
any update here?

Original comment by lukas.l...@gmail.com on 15 Feb 2011 at 4:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I added the following to ~/.bash_profile:

export PATH=/usr/local/cuda/bin:$HOME/bin:$PATH 
export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH

Original comment by KD5...@gmail.com on 26 Feb 2011 at 2:12

GoogleCodeExporter commented 8 years ago
Rev 296 builds fine.

Original comment by KD5...@gmail.com on 26 Feb 2011 at 2:20

GoogleCodeExporter commented 8 years ago
closed

Original comment by lukas.l...@gmail.com on 28 Feb 2011 at 11:27