after extracting the archive. Afterwards all went smoothly and everything compiled
without any problem. This is good.
I've tried compiling examples by hand and compiler started complaining
about not being able to find -ltbb. Next step? I have sourced tbbvars.sh
but it did not help at all so I additionally copied all libtbb* to /usr/local/lib.
The compiler then started complaining about not being able to find
tbb::task_scheduler_init or something like that. This is bad.
How do I fix all of this and install the TBB?
Please do not point me to the blog posts, etc. about installing TBB globally
because I've read everything what was available on the topic. The lack of
documentation for such a simple scenario simply stuns me.
How is that a possibly great tool does not come with an install script?
I am really willing to write one (at least for macosx) if somebody gives
me a clue on how to do it properly for OSX.
There are a couple of things here.
First the tbbvars.sh script should work.What do your environment variables look like after you source tbbvars.sh? (As a side note, you need to source it like, ". tbbvars.sh" with the "." and not execute it). If the tbbvars script is not working for you, we need to fix it. The tbbvars script should change the values of theDYLD_LIBRARY_PATH and CPATH variables.
Second, if you do install the library by moving the files, like libtbb* to /usr/loca/lib then you also need to move the header files to /usr/local/include. This is probably what the compiler was complaining about. The header files are found in the distribution under /include.