Closed Yi-Hsuan-Su closed 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”.
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?
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).
Thank you I've build the program successfully.
Glad to hear that. So I will close this issue. Good luck!
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