LiangliangNan / PolyFit

Polygonal Surface Reconstruction from Point Clouds
https://3d.bk.tudelft.nl/liangliang/publications/2017/polyfit/polyfit.html
GNU General Public License v3.0
723 stars 121 forks source link

Meeting problem #26

Closed Yi-Hsuan-Su closed 4 years ago

Yi-Hsuan-Su commented 4 years ago

Hi

sorry for bothering you , I've met a problem during cmake. I have installed GUROBI manually and insert academic license key. But I'm not really sure what's going wrong, hope you could help. Thank you.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GUROBI_C_LIBRARY linked by target "math" in directory C:/Users/Graphics/Desktop/PolyFit-1.4/math

LiangliangNan commented 4 years ago

You need to provide the path to the GUEOBI library (by setting it with that variable). Alternatively, you can directly edit the file paths in “PolyFit/cmake/FindGUROBI.cmake”.

Yi-Hsuan-Su commented 4 years ago

there's another problem visual studio happens to be missing #include "ui_main_window.h" header file and I couldn't find it. How could I solve this problem?

LiangliangNan commented 4 years ago

This is a question more about programming with Qt and you could get a better answer by googling.

Anyway, "ui_main_window.h" is a file generated automatically by the Qt form compiler uic from the "main_window.ui" file. I guess you skipped this step. Make sure Qt is installed correctly and all necessary paths are visible in VS. Then instead of compiling an individual file including "ui_main_window.h", you need to compile the entire solution or the "PolyFit" project (this way, all dependencies are resolved and intermediate files are generated).

Yi-Hsuan-Su commented 4 years ago

Thank you I've build the program successfully.

LiangliangNan commented 4 years ago

Glad to hear that. So I will close this issue. Good luck!