Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Could not determine path to TBB libraries

Roger_B_
Beginner
2,414 Views

I installed the Intel libraries for vs2015 and have ran TBBVars.bat with intel64 and vs2015 , also TBBVars.bat with ia32 and vs2015 parameters.  I also installed the path of the libraries and the include  in VC+ directories .

The path for the library in my case is : C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\tbb\lib\ia32_win\vc14

I tried to compile several examples supplied by Intel.  The compilation is OK for the include files but not for the libraries, VS2015 ends with the following error message

"Could not determine path to TBB libraries"

What is the setting missing to succeed the compilation with VS2015?

0 Kudos
10 Replies
Alexei_K_Intel
Employee
2,413 Views

Hi Roger,

Do you run Visual Studio from the same command prompt where you run tbbvars.bat?

Regards,
Alex 

0 Kudos
Roger_B_
Beginner
2,413 Views

Thank for your quick reply

I started the VS2015 by clicking on the parallel_preorder.sln file.  The same problem occurs when starting vs2015 from the start menu and then loading the example with the command "File"  "Open" "Project/Solution"

0 Kudos
Alexei_K_Intel
Employee
2,413 Views

Try to open developer command prompt for Visual Studio (see "To open a Developer Command Prompt window" section), run tbbvars.bat and then run Visual Studio (run "devenv"). After it, use the usual flow "File"->"Open"->"Project/Solution". Please, let me know if it works for you.

Regards,
Alex

 

 

0 Kudos
Roger_B_
Beginner
2,413 Views

Thank Alex,  Unfortunately, your suggestion was unsuccessful. Sorry for the delay of my reply, I reinstalled my computer (Lenovo T510) completely  to avoid any interference with other applications, please review my installation:

  1. Format the main C Drive
  2. Reinstall windows 7 pro from the factory disk
  3. Full update Windows 7 Pro
  4. Install MsOffice 2015
  5. Install Visual Studio 2015
  6. Full update again (more than 500 updates installed in total !!!)
  7. Install w_daal_2017.3.210 Library
  8. Install w_ipp_2017.3.210 Library
  9. Install w_mkl_2017.3.210 Library
  10. Install w_mpi_p_2017.3.210 Library
  11. Install w_tbb_2017.6.210 Library
  12. Download examples from https://software.intel.com/en-us/product-code-samples
  13. Run the developer command prompt for vs2015
  14. Change folder to retrieve tbbvars in the tbb/bin folder = C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\tbb\bin
  15. run tbbvars intel64 vs2015
  16. Run VS2015
  17. Load and compile the example «Parallel_Preorder »
  18. Result : could not find the following includes : tbb/task_scheduler_init.h and tbb/parallel_do.h
  19. Set the VC+ Directory for the include : C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\tbb\include
  20. Set the VC+ Directory for the library : C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\tbb\lib\intel64_win\vc14
  21. Compile the solution
  22. Result : « Could not determine path to TBB libraries »
  23. error MSB3073: The command "call "C:\Users\Roger\Documents\Tutorial\tbb\parallel_do\parallel_preorder\msvs\\..\..\..\common\copy_libraries.bat"  intel64 debug "C:\Users\Roger\AppData\Local\Temp\tbb_examples\x64\Debug\"
  24. Change Output Directory and Immediate Directory in General for « Inherit from Parent »
  25. Compile
  26. Result : Could not determine path to TBB libraries
  27. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: The command "call "C:\Users\Roger\Documents\Tutorial\tbb\parallel_do\parallel_preorder\msvs\\..\..\..\common\copy_libraries.bat"  intel64 debug "C:\Users\Roger\Documents\Tutorial\tbb\parallel_do\parallel_preorder\msvs\x64\Debug\"

At this stage, I have no idea to have the examples compiled without error.  

 

 

0 Kudos
Roger_B_
Beginner
2,413 Views

One more information forgotten in my previous comment: the compilation was performed on the X64 platform thus the tbbvars was set for intel64

0 Kudos
Roger_B_
Beginner
2,413 Views

Looking further  the error information supplied by vs2015, the line "C:\Users\Roger\Documents\Tutorial\tbb\parallel_do\parallel_preorder\msvs\\..\..\..\common\copy_libraries.bat" is incorrect. it should be " C:\Users\Roger\Documents\Tutorial\tbb\parallel_do\parallel_preorder\msvs\..\..\..\common\copy_libraries.bat"

Any idea where to change this line in the vs2015 menu?

0 Kudos
Roger_B_
Beginner
2,413 Views

I found the error but do not have the solution

This samples supplied by Intel executes a bat file location in the Post-Build Event in the Property page. This bat file fails to locate the TBB library folder. 

0 Kudos
Roger_B_
Beginner
2,413 Views

The only solution I found is to manually copy the files expected to be copied by the bat file and delete the "call  installed in the Post-Event in the property page.  This action with all other settings made for the includes and library succeed to compile but the software still do not run because it cannot find the Kernel32.DLL etc...

0 Kudos
Alexei_K_Intel
Employee
2,413 Views

Hi Roger,

Thank you for the investigation. The copy_libraries.bat relies on the TBBROOT environment variable. For some reason it is not defined to a proper value on your machine. Let me ask you additional questions about steps 15 and 16:

Roger B. wrote:

        15. run tbbvars intel64 vs2015
        16. Run VS2015

Could you check the TBBROOT value after step 15 (by running "echo %TBBROOT%"). As for step 16, do you run VS2015 by typing "devenv" from the same console window where step 15 is performed?

Regards,
Alex

0 Kudos
Roger_B_
Beginner
2,413 Views

WOH, it is working when starting the vs2015 by typing devenv with the position in the right folder. This way to start VS2015 is new for me.

Thank for your help. The next step for me will be to reproduce the appropriate setup for my software.

0 Kudos
Reply