Saturday, May 19, 2007

OS X Intel Threading Blocks Troublshooting

Compilation Issues

After downloading the Intel Building Threading Blocks Version 1.1, the installer was executed. After installation, the script to setup environmental variables was executed as instructed in the install.txt file. Next, an attempt to compile the sub_string_finder example was made, but failed. The reason for failure is that the symbolic link at /Library/Frameworks/TBB.framework/Libraries was broken. To fix this, the link was deleted, and a new one pointing to the correct location was made:

ln -s /Library/Frameworks/TBB.framework/Versions/1.1/ia32/cc4.0.1_os10.4.4/lib /Library/Frameworks/TBB.framework/Libraries

The path of course is dependent on the specific machine, so just reference the link to the lib folder which contains the libtbb.dylib files.

XCode

After fixing the symbolic link, compilation should work correctly. To make a project to utilize the Intel Threading Building blocks, simply add libtbb.dylib or any other of the libraries desired from /Library/Frameworks/TBB.framework/Libraries to the prject. This can be accomplished by clicking Project...Add to Project, and then selecting the appropriate file.