-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up the environment for Windows users #5
Comments
Just to add on, in the Visual Studio command shell, just type in the following commands to build your source files: nmake -f makefile.mk all It's not very obvious and I had to spend some time figuring that out. |
^ I got the same error :/ Probably a stupid question but can I just check which folder you mean for the ".exe" folder (the notes didn't quite elaborate either)? |
I fixed that error by changing the TBBDIR in the makefile to where you have installed TBB eg TBB_DIR = C:\tbb43_20141204oss But after that I get a linker error: |
I managed to fix the linker error, although I'm not sure how. I did the following: |
@shakesbear the compiler seems to be complaining that it cannot file the TBB header files which you would usually #include at the top of cpp code. To use
I did not need to do anything extra to get |
@shakesbear I agree with @AugustineTan, it looks like your headers are not set up correctly. I notice that the screen-shot includes the line:
which is where it is looking for the tbb headers. If the thing it is missing is
to see what is at that path. If you can work out the path XXX such that |
@yuchen-w I think what is happening is that you compiled once using the 32-bit compiler, and |
@chungcyk Do you mean where I say "Copy tbb.dll and tbb_debug.dll to same directory as .exe"? I But installing Ubuntu is not such a bad thing :) Having a little ubuntu virtual machine for testing |
It seems the library files in TBB 4.3 are too different from 4.2 causing errors for make all (Ubuntu 14.0.4, Intel64 GCC4.4). I did not investigate further but switched to the earliest version of TBB 4.2 and the makefile ran fine. |
Some notes on the set up:
make
should run into errors regarding undefined references. This is a problem with the cygwin linker. If you want to usemake
in windows it needs to be done on MinGW.nmake
in the visual studio command prompt instead. The files will compile. However, there is an extra step for those unfamiliar with C compiled executables. You will need to either copy the required library files.dll
into the folder which contains the.exe
files or set the environment path to include the location of the TBB library files. This can be found in the /bin folder of the TBB installer. TBB includes abin/tbbvars.bat
to help with this. But it may or may not work for your system. In my case, it did not work for my windows 8.1 64bit machine. My solutions to this is to add the following lines to your./bash_profile
to set up the environment path in cygwin. Edit the path accordingly for your set up.Note that this only allows you to run the file through cygwin. Double clicking the file in Windows will throw the error that
tbb.dll
is missing. Not that you should require to, but y'know for science. 😄The text was updated successfully, but these errors were encountered: