Building TBB using mingw on windows 7

Building TBB using mingw on windows 7

Hello!

I'm trying to compile TBB using mingw on windows 7 64-bit.

Without success so far...

Frist thing I noticed is that after executing command "mingw32-make compiler=gcc arch=ia32 runtime=mingw" in tbb unpacked directory (I can see build, src etc) is that it failed on creating directory. It couldn't create build/windows_ia32_gcc_mingw_debug.

After creating it manually - it worked some further but still - without success.

Here is what my console printed:

E:\TBB\tbb42_20131118oss_src\tbb42_20131118oss>mingw32-ma
ke.exe compiler=gcc arch=ia32 runtime=mingw
Created .\\build\\windows_ia32_gcc_mingw_release and ..._debug directories
mingw32-make.exe -C ".\\build\\windows_ia32_gcc_mingw_debug"  -r -f ../../build/
Makefile.tbb cfg=debug
Nazwa 'cmd' nie jest rozpoznawana jako polecenie wewnętrzne lub zewnętrzne,
program wykonywalny lub plik wsadowy. (for ENG users: not recognized as command, executable etc)
mingw32-make.exe[1]: Entering directory `E:/TBB/tbb42_201
31118oss_src/tbb42_20131118oss/build/windows_ia32_gcc_mingw_debug'
../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=ia32 compiler=gcc target=win
dows runtime=mingw
cmd /C cscript /nologo /E:jscript ../../build/version_info_windows.js gcc ia32 "
g++ -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0502 -DMINGW_HAS_SEC
URE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32 -march=i686  -D__TBB_
BUILD=1 -Wall -Wno-parentheses -Wno-uninitialized " > version_string.ver
Nazwa 'cmd' nie jest rozpoznawana jako polecenie wewnętrzne lub zewnętrzne,
program wykonywalny lub plik wsadowy.
mingw32-make.exe[1]: *** [version_string.ver] Error 1
mingw32-make.exe[1]: *** Deleting file `version_string.ver'
mingw32-make.exe[1]: Leaving directory `E:/TBB/tbb42_2013
1118oss_src/tbb42_20131118oss/build/windows_ia32_gcc_mingw_debug'
mingw32-make.exe: *** [tbb] Error 2

 

Mingw dir is added to PATH.

Tried on tbb42_20131118oss_src and some older versions.(tbb41_20130613oss_src, tbb40_20120613oss_src, tbb22_20090809oss_src)

 

Make version:

GNU Make 3.82
Built for i386-pc-mingw32

3 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Hello, do you have "cmd.exe" windows shell?

above errors look very strange. makefile couldn't run "mkdir" command or cmd.exe.

but i guess your "console" is exactly cmd.exe

--Vladimir

OK, issue solved.

Don't know why but I don't have system32 in my PATH...

Compiled and working.

Thanks for reply.

发表评论

登录添加评论。还不是成员?立即加入