Question

I used the latest trunk version of gpuocelot on a mac snow 10.6.8 with gcc 4.5.3 and boost @1.49.0_0+universal (active) (boost installed via macports).

I run scons and I get

.release_build/ocelot/ptx.os .release_build/ocelot/ptxgrammar.os -L/usr/lib -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -ldl ld: library not found for -lboost_system-mt collect2: ld returned 1 exit status

this reports failure on OS X Lion. anyone with similar issue?

Was it helpful?

Solution

You should try this command line instead:

.release_build/ocelot/ptx.os .release_build/ocelot/ptxgrammar.os -L/opt/local/lib -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -ldl

Indeed, on my system, Mac ports installs boost libraries in /opt/local/lib instead of /usr/lib.

OTHER TIPS

Enter the gpuocelot/ocelot/scripts directory and modify the build_environment.py accordingly (in my case put the proper path for boost in function

def getBoost(env):

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top