mvs-texturing icon indicating copy to clipboard operation
mvs-texturing copied to clipboard

TBB Error on Windows with vs2017 and Cygwin

Open cogitas3d opened this issue 7 years ago • 14 comments

Hello! I'm trying build mvs-texturing on Windows but I'm having a problem with libtbb.

I follow some tutorials but the error is ever the same:

captura de tela de 2018-01-15 23-36-39

The TBB_INCLUDE_DIR. But I downloaded the source and build it on Visual Studio (Release)... I also download the bin too, I put all dir in that place to try build it, but it doesnt run :(

I tryed to build on Cygwin too, but appeared the same error.

I'm a Linux user and I have some difficults in Windows, but really, I read a lot and I try to solve it... but... it doestn possible.

Can someone help me, or explain why it doestn work?

A big hug!

cogitas3d avatar Jan 16 '18 01:01 cogitas3d

hi,

in the directory mvs-texturing > elibs > tbb you will see "FindTBB.cmake". The cmake file declares the TBB_DEFAULT_SEARCH_DIR under Windows as of C:/Program Files/Intel/TBB or C:/Program Files (x86)/Intel/TBB where I have placed the TBB Library accordingly.

Furthermore, the script variable TBB_SEARCH_DIR is set to the Environment variable of TBB_INSTALL_DIR (which didn't exist in my system at this point obviously) and TBBROOT. This is why I have created a new System Environment Variable TBB_INSTALL_DIR with path: C:/Program Files/Intel/TBB. With that .cmake was able to seccessfully find the TBB Library Version 2018 as you can see here:

tbb_library

I hope this helps anyone coming across the same Problem.

Best,

MaXvanHeLL avatar Feb 13 '18 17:02 MaXvanHeLL

Though, if you are under Windows 10 like me, I would highly recommend using Windows Subsystem for Linux [1]. Works like a charm!

[1] Windows Subsystem for Linux: https://www.microsoft.com/de-at/store/p/ubuntu/9nblggh4msv6?rtc=1

Best,

MaXvanHeLL avatar Feb 15 '18 17:02 MaXvanHeLL

i got tbb here and it works at least for the cmake issue: https://github.com/wjakob/tbb

MartinAlexParis avatar Dec 11 '18 11:12 MartinAlexParis

Hey there!

Thank you very much @MaXvanHeLL , I used it and it works, even the code of @MartinAlexParis , thank you too!

The problem now is that:

CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.13/Modules/FindPNG.cmake:142 (find_package_handle_standard_args) CMakeLists.txt:35 (find_package)

I installed PNG 3 times, with different sources and nothing works :(

cogitas3d avatar Dec 16 '18 22:12 cogitas3d

@cogitas3d I've had this problem before, and now it's solved. Have you compiled the 3rd party dependency Library of MVE? Adding those dependency libraries under the texrecon file can help you compile through cmake

MrAirplaneLu avatar Dec 20 '18 09:12 MrAirplaneLu

Hi @MrAirplaneLu !

Thank you, but...

  1. I solve the problem with Zlib. PNG, JPEG and TIFF... but tje error continue.
  2. I tryied to compile the MVE separated, but the build generate errors.
  3. When Visual Studio starts to compile MVS-TEXTURING it try to git mVE and other lib, but had error and refuse the connection.

I build it on Linux and Mac and was easy... I really dont know what do in Windows.

cogitas3d avatar Dec 20 '18 11:12 cogitas3d

Excuse me, how is it going with your building on Windows? Recently I have been doing this too, but I cannot compile the MVE.

gksdbn avatar Dec 26 '18 08:12 gksdbn

Related question: Could NOT find TBB (missing: TBB_LIBRARIES) (found version "2019.0") How should I modified the CMakeLists to let it take tbb ver 2019? Or download tbb 2018 instead.

xuleidawang avatar Oct 03 '19 19:10 xuleidawang

Related question: Could NOT find TBB (missing: TBB_LIBRARIES) (found version "2019.0") How should I modified the CMakeLists to let it take tbb ver 2019? Or download tbb 2018 instead.

hey bro, have u solved it?

sucongCJS avatar Mar 20 '21 08:03 sucongCJS

Related question: Could NOT find TBB (missing: TBB_LIBRARIES) (found version "2019.0") How should I modified the CMakeLists to let it take tbb ver 2019? Or download tbb 2018 instead.

hey bro, have u solved it?

I end up using WIndows Subsystem for Linux (WSL) and successfully built it.

xuleidawang avatar Mar 20 '21 16:03 xuleidawang

Related question: Could NOT find TBB (missing: TBB_LIBRARIES) (found version "2019.0") How should I modified the CMakeLists to let it take tbb ver 2019? Or download tbb 2018 instead.

hey bro, have u solved it?

I end up using WIndows Subsystem for Linux (WSL) and successfully built it.

Thx!

sucongCJS avatar Mar 22 '21 05:03 sucongCJS

Hi, I have tested that MAPMAP(TBB) is much slower than GCO, whether it is on linux or windows, but according to the author’s paper, MAPMAP(tbb) should be faster than GCO. Do you have any ideas?

dongshengLiu avatar Aug 09 '21 07:08 dongshengLiu