I have a problem relating to TBB. I recently downloaded it (the Commercial-Aligned Open Source version) onto a Windows XP PC with Microsoft Visual Studio 2008 Express and Microsoft Visual Studio 2010 Express (All four products, Visual Basic, Visual C++, Visual C#, and Visual Web Developer for both installations). I found a tutorial (http://llpanorama.wordpress.com/tbb-tutorial/) but I dont have the required software (Microsoft Visual Studio 2005 Express, which is not supported anymore, or end-of-life, and which also cant be downloaded anymore). How can I install TBB with Visual Studio 2010 Express (or if I have to, Visual Studio 2008 Express)?
Thanks in advance!
Edit: I needed Microsoft Visual Studio 2005 Express for Microsoft Assembler
BTW, here are the specs of the system I am using for TBB (in case you need it):
CPU: AMD Phenom 9650 Quad-Core Processor (2.3 GHz) (TBB said in the release notes: "Non Intel processors compatible with the above processors"; with "above processors" it meant Intel processors)
RAM: 2 GB
Video Card: NVIDIA GeForce 9600 GSO
It doesn't work. :-( I moved the contents of the unzipped dir to C:\Program Files\Intel\TBB\3.0 Update 1 Commercial-Aligned Release\ and went to its bin folder with vs command prompt 2010. Next, I typed tbbvars. A list of arguments came up, so I reran tbbvars with the arguments I needed, ia32 and vs2010. I got the following error:
The system cannot find the batch label specified - ParseArgs
I looked into the batch file and there it was, ParseArgs:
:: Parse the incoming arguments
if /i "%1"=="" goto SetEnv
if /i "%1"=="ia32" (set TBB_TARGET_ARCH=ia32) & shift & goto ParseArgs
if /i "%1"=="intel64" (set TBB_TARGET_ARCH=intel64) & shift & goto ParseArgs
if /i "%1"=="vs2005" (set TBB_TARGET_VS=vc8) & shift & goto ParseArgs
if /i "%1"=="vs2008" (set TBB_TARGET_VS=vc9) & shift & goto ParseArgs
if /i "%1"=="vs2010" (set TBB_TARGET_VS=vc10) & shift & goto ParseArgs
if /i "%1"=="all" (set TBB_TARGET_VS=vc_mt) & shift & goto ParseArgs
I just calculated the md5 hashes. The first one is after unix2dos. The second one is before.
EDIT: I compared them with notepad++, but found no differences. Maybe notepad++ shows linux eols and dos linebreaks as the same... :-/
Update:I didn't manually change the paths, but just then I found something called generate_tbbvars.bat. I ran it, and it generated a tbbvars.bat file. Here are the contents:
[bash]@echo off SET TBB30_INSTALL_DIR= SET TBB_ARCH_PLATFORM= SET TBB_TARGET_ARCH= SET INCLUDE=%TBB30_INSTALL_DIR%include;%INCLUDE% SET LIB=C:Program FilesIntelTBB3.0 Update 1 Commercial-Aligned Releasebin;%LIB% SET PATH=C:Program FilesIntelTBB3.0 Update 1 Commercial-Aligned Releasebin;%PATH% [/bash]I ran it, and the paths were updated! However, when I ran the fibonacci example, the tbb include files were not detected. I had to insert the full path forthe includes to work. Even then, a library, tbb_debug.lib, was not found. Strange.