在 Linux 11.04 上安装 TBB
我一直在谷歌和tbbs论坛上搜索如何安装TBB。
我已经从以下位置下载了 linux 和源代码: http://threadingbuildingblocks.org/ver.php?fid=175
使用 tar 提取它们-xvf,然后运行 make 文件。 然后我转到 tbb/build/linux_intel64_gcc_cc4.5.2_libc,13_kernel2.6.38_debug/ 并运行 tbbvars.sh
我还尝试运行 tbb/build/generate_tbbvars。 sh,然后是 tbbvars.sh
和 tbbvars.csh
否无论我做什么,当我尝试使用 -ltbb
编译程序时,我得到 /usr/bin/ld:搜索 -ltbb 时跳过不兼容的 /usr/lib/libtbb.so /usr/bin/ld: 找不到 -ltbb
有人知道如何解决这个问题吗?
Linux damian-HP-Z600-Workstation 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
I have been searching google and tbbs forums on how to install TBB.
I have downloaded both the linux and source from:
http://threadingbuildingblocks.org/ver.php?fid=175
Extracted them using tar -xvf, and then ran the make file.
Then I went to tbb/build/linux_intel64_gcc_cc4.5.2_libc,13_kernel2.6.38_debug/
and ran tbbvars.sh
I also tried running tbb/build/generate_tbbvars.sh
, then tbbvars.sh
and tbbvars.csh
No matter what I ty when I try to compile a program with -ltbb
, i get/usr/bin/ld: skipping incompatible /usr/lib/libtbb.so when searching for -ltbb
/usr/bin/ld: cannot find -ltbb
Any one know how to fix this?
Linux damian-HP-Z600-Workstation 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是此处清楚回答的问题的另一个实例。您有一位宽度的库,并试图将它们链接到不同位宽度的编译中。如果您的应用程序编译过程和 TBB 构建过程都是在同一系统上完成的,那么在决定是输出 32 位代码还是 64 位代码时,其中一个肯定做错了事情。
This is another instance of the issue answered lucidly here. You have libraries of one bit width and are trying to link them into a compilation of a different bit width. If both your application compile process and your TBB build process were done on the same system, one of them must have done the wrong thing when deciding whether to output 32-bit code or 64-bit code.