How to compile a dlib example using eclipse in windows?
https://stackoverflow.com/questions/35937454/how-to-compile-a-dlib-example-using-eclipse-in-windows
Requirements :
- Install cmake : https://cmake.org/
- Install MinGW : http://www.mingw.org/
Steps :
- cd examples
- cmake -G "Eclipse CDT4 - MinGW Makefiles" -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ .
- This last command will generate the required files for an eclipse project
- Now Open eclipse and new->import->general->import existing projects into workspace , then choose examples directory. This will import the project generated by cmake to your workspace.
- Enjoy your developements with dlib !!
Note :
These steps can also work if you create a new project that uses dlib. All you have to do is copy the CMakeLists file to your directory and adapt it to your project.