chengzhengxin / sdm

Supervised Descent Method Apply to Face Alignment, and Head Pose Estimation with Linear Regression. It is cross-platfrom, easily compile in windows, ubuntu, even in Android & iOS.
448 stars 197 forks source link

How do we compile the code in Visual Studio 2015 #23

Open ghost opened 7 years ago

ghost commented 7 years ago

I have downloaded mingw compiler. I opened cmake-gui and chose as a generator the MinGW Makefiles, and chose as a source file the sdm-master, and for the build file I chose the sdm-master-buid. Once done, I wrote mingw32-make in cmd while I'm in sdm-master-build. Then I got the following error:

capture

IT seems that the opencv files are not build. How to fix this?

Thank you in advance for your help and for the code!!

yudie433 commented 7 years ago

you can use your own opencv libs

yunfan0621 commented 6 years ago

@issa-s-ayoub Hi, did you manage to solve the problem? I have encountered exactly the same issue and I would appreciate if you could share your solution. @yudie433 Would you further explain how do I modify anything to incorporate my own opencv libs? Thank you very much!

lostsea commented 6 years ago

I use the mingw492 to compile the program successfully, but I just got a exe. I still have to use a IDE to deal with the code. tim 20171222095244

ghost commented 6 years ago

Hey guys, for those who is seeking help on compiling on visual studio 2015, here is the solution.

Include opencv and src/include two paths , link to opencv lib, and copy the sdm code on your source cpp, then build it. Very easy.