2017-08-01 179 views
1

我想在Windows上安装英特尔的线程构建模块并使其与Eclipse IDE和C++一起工作。我对整个C是新手,从源代码,make,cmake,cygwin和其他东西构建。如何在Windows上安装TBB并使其与Eclipse一起工作

我试过到目前为止:

  • 装入TBB包和源,并尝试将其包括在Eclipse
  • 尝试“使”从源TBB,但只得到了错误2从GNUWin32make
  • 试了很多教程,技巧等等,我不记得任何更多

我怎样才能做到这一点?

赢得10 - 64时,Eclipse 4.7.0氧气,cygwin的2.8.2,编译器:MinGW的

回答

1

正如你可以看到Release_Notes.txt,图书馆没有Cygwin的支持。然而,你有几种情况:

  1. 使用Visual Studio和二进制包
  2. 使用Linux(如果你真的需要GCC)
  3. 使用MinGW的不Cygwin的(difference)(!)。在这种情况下,源代码构建库应该是完美的。
  4. 港口库​​cygwin的(这是一个不平凡的,但真正的解决方案)
+0

嗨,谢谢你的回答。我试图与Mingw一起建造,但仍然有错误。我在我的路径变量中找到了Mingw,并在tbb的源文件夹中尝试make命令。使用无法找到的错误退出“./build/detect.js”。但该文件在那里。 –

+0

尝试'cd src'和'make tbb tbbmalloc compiler = gcc stdver = C++ 11' 如果它不起作用 - 提供输出 –

+0

嗨,我试过了,但得到了同样的错误。 'C:\ Users \ Leon \ Documents \ tbb \ src> make tbb tbbmalloc compiler = gccstdver = C++ 11 命令“\”cscript/nologo/E:jscript ../build/detect.js/arch gccstdver = C++ 11 \“”“拼写错误或找不到 命令”\“cscript/nologo/E:jscript ../build/detect.js/runtime gccstdver = C++ 11 \”“ “拼写错误或无法找到。 ../build/common.inc:73:***架构未检测到。 Stop.' 我应该尝试删除所有编译器,cygwin和所有其他的东西,并重新安装它?如果我说得对,我需要Mingw? –

0

通过copiying丢在这里的空间。

其中g ++

C:\ Program Files文件\的mingw-W64 \ x86_64-7.1.0-POSIX的SEH-rt_v5-REV0 \ mingw64 \ BIN \克++ EXE C:\ MinGW的\ BIN \ g ++ .exe

g ++ -v 使用内置规格。 COLLECT_GCC = g ++ COLLECT_LTO_WRAPPER = C:/ Program \ 文件/ mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin /../ libexec/gcc/x86_64-w64-mingw32/7.1 .0/lto-wrapper.exe 目标:x86_64-w64-mingw32配置为: ../../../src/gcc-7.1。0/configure --host = x86_64-w64-mingw32 --build = x86_64-w64-mingw32 --target = x86_64-w64-mingw32 --prefix =/mingw64 --with-sysroot =/c/mingw710/x86_64- 710-posix-seh-rt_v5-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages = c,C++,fortran,lto --enable-libstdcxx -time = yes - enable-threads = posix --enable-libgomp --enable-libatomic --enable -lto --enable-graphite --enable-checking = release --enable-fully-dynamic-string --enable-version-specific-runtime -libs --enable-libstdcxx-filesystem-ts = yes --disable-libstdcxx -pch --disable-libstdcxx -debug --enable-bootstrap --disable -rpath --disable -win32-registry --disable -nls - -disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch = nocona --with-tune = core2 --with-libiconv --with-system-zlib - -with-gmp =/c/mingw710/prerequisites/x86_64-w64-mingw32-static --with-mpfr =/c/mingw710/prerequisites/x86_64-w64-mingw32-static --with-mpc =/c/mingw710 /先决条件/ x86_64-w64-mingw32-static -w ith-isl =/c/mingw710/prerequisites/x86_64-w64-mingw32-static --with-pkgversion ='x86_64-posix-seh-rev0,由MinGW-W64项目构建'--with-bugurl = http://sourceforge.net/projects/mingw-w64 CFLAGS =' -O2 -pipe -fno-ident -I/c/mingw710/x86_64-710-posix-seh-rt_v5-rev0/mingw64/opt/include -I/c/mingw710/prerequisites/x86_64-zlib-static/include -I/c/mingw710/prerequisites/x86_64-w64-mingw32-static/include'CXXFLAGS =' - O2 -pipe -fno-ident -I/c/mingw710/x86_64-710-posix-seh-rt_v5-rev0/mingw64/opt/include -I/c/mingw710/prerequisites/x86_64-zlib-static/include -I/c/mingw710/prerequisites/x86_64-w64-mingw32-static/include'CPPFLAGS =' -I/c/mingw710/x86_64 -710-posix-seh-rt_v5-rev0/mingw64/opt/include -I/c/mingw710/prerequisites/x86_64-zlib-static/include -I/c/mingw710/prerequisites/x86_64-w64-mingw32-static/include 'LDFLAGS =' - pipe -fno-ident -L/c/mingw710/x86_64-710-posix-seh-rt_v5-rev0/mingw64/opt/lib -L ​​/ c/mingw710/prerequi/x86_64-zlib-static/lib -L ​​/ c/mingw710/prerequisites/x86_64-w64-mingw32-static/lib'线程模型:posix gcc版本7.1.0(x86_64-posix-seh-rev0,由 构建MinGW -W64项目)

+0

奇怪的是,我在PC上检查了相同的版本,主要区别在于:为了防止空格和长路径(env变量有一些限制),我将编译器“靠近”驱动器根目录。我想你应该检查你的环境(清理它)并直接编译源代码,例如:使用前设置PATH = C \ bin \ mingw-w64 \ bin;%PATH%' 同时检查你尝试使用的TBB版本使用 –