Using the dlib library in Visual Studio 2010

I would like to ask for help using dlib for my small abstract project. In particular, I need to use the BOBYQA optimization procedure.

I am writing a project in MS Visual Studio 2010 Express in C. I have no experience in using libraries such as dlib, and I do not know what a make file is and how to write it.
I found a little hint here , but due to my lack of experience in this matter, I just can't figure out how to compile and use dlib in my code,

I would like to ask for step-by-step instructions on how to include dlib in my code, i.e.:

  • Where exactly should I extract the dlib folder from the zip file ?
  • add some files to a visual studio project?
  • Are there any other issues that I still don't know about?

I would also be very grateful for a simple example of using code (my optimization function has 6 parameters).

+3
source share
2 answers

If you are using visual studio, you do not need to use make files. You can create your project in the same way as usual. Then, to use dlib, all you have to do is add dlib / all / source.cpp to your project and add the folder containing the dlib folder to your search path. If you use only BOBYQA, you don’t even need to add dlib / all / source.cpp.

, , , CMake. . , , dlib examples/optim_ex.cpp, , BOBYQA, cmake :

cd examples
mkdir build
cd build
cmake ..

, . dlib. CMakeLists.txt , , .

+2

(1) (2), Dlib. (3) .

Visual Studio 2013 Dlib Visual Studio 2013 CMake?.

2010 , Property → Configuration Properties → (1) V++ Directories (2) C/++ →

source.cpp, .

, , ()

(3) #include "dlib/image_processing/frontal_face_detector.h"

dlib ( Visual Studio ++? https://msdn.microsoft.com/en-us/library/36k2cdd4(v=VS.100).aspx )

+1

All Articles