nmoehrle / mvs-texturing

Algorithm to texture 3D reconstructions from multi-view stereo images
Other
974 stars 334 forks source link

TBB Error on Windows with vs2017 and Cygwin #96

Open cogitas3d opened 6 years ago

cogitas3d commented 6 years ago

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!

MaXvanHeLL commented 6 years ago

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 commented 6 years ago

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,

MartinAlexParis commented 5 years ago

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

cogitas3d commented 5 years ago

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 :(

MrAirplaneLu commented 5 years ago

@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

cogitas3d commented 5 years ago

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.

gksdbn commented 5 years ago

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

xuleidawang commented 5 years ago

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.

sucongCJS commented 3 years ago

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?

xuleidawang commented 3 years ago

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.

sucongCJS commented 3 years ago

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!

dongshengLiu commented 3 years ago

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?