-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling Library #9
Comments
Hi, could you please give me more details on how are you compiling the mex-files (like, if you have compiled the library itself successfully, and if you are trying to compile it from visual studio, or by running the enclosed flandmark_compilemex.m script)? Thanks PS: From the error message, it seems that there is just problem with path to the corresponding cpp file. |
And is ./mex/flandmark_detector_mex.cpp accessible from your current working directory? (try calling edit ./mex/flandmark_detector_mex.cpp from matlab command line) |
The opencv version shouldn't be a problem. The error reported is strange, though. Is this the only output you get? Maybe try to edit the flandmark_compilemex.m, by adding -v to lines containing calling of mex and then send me the full output. |
Compiling mex-files on Windows platform... This is mex, Copyright 1984-2007 The MathWorks, Inc. -> Default options filename found in C:\Users\Ruqayya Raza\AppData\Roaming\MathWorks\MATLAB\R2010a ---------------------------------------------------------------- -> Options file = C:\Users\Ruqayya Raza\AppData\Roaming\MathWorks\MATLAB\R2010a\mexopts.bat MATLAB = C:\PROGRA |
I see, it seems that you haven't compiled the library first: Warning: MEX could not find the library "flandmark_static" specified with -l option. MEX looked for a file with one of the names: flandmark_static.lib libflandmark_static.lib or maybe you have, but in the matlab script the relative path for binaries on windows is set to bin7, so, please compile the library first or if you have compiled to different directory, change the path in flandmark_compilemex.m accordingly. |
Ok so I am trying to build the libflandmark using CMAKE but I keep getting this error now. The C compiler identification is MSVC 16.0.40219.1
Call Stack (most recent call first): CMake Error at CMakeLists.txt:2 (find_package):
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be Configuring incomplete, errors occurred! |
Unless you have OpenCV in your system path, you have to specify it manually, so just try to put path to the build directory of OpenCV to the field OpenCV_DIR and it should work. |
When I do that and hit configure again, the path is changed back to what it was originally! P.S.Sorry to be such a pain |
I see, then maybe the quickest solution should be to add OpenCV to your system path. Because then cmake will find it and you will not need to specify it manually at all. |
I managed to configure the thing in CMAKE, had to change the directory from ./OpenCV/cmake to ./OpenCV/build. |
If you are using MS Visual Studio (and have checked that during initial run of cmake on the project) it should have produced the MS Visual studio solution file in the specified bin/build directory. There you can compile both static and dynamic version of flandmark (and some C++ example applications as well). |
Thank you so much! Compiling mex-files on Windows platform... C:\PROGRA ??? Error using ==> mex at 222 Error in ==> flandmark_compilemex at 79 |
And have you checked that file 'C:\OPENCV2.3\BUILD\X64\VC10\lib.obj' for existance? |
Thats the thing...the openCV lib has a whole range of OpenCV library functions in it but no file with the obj extension. SO I dont understand what the program is looking for...? |
That's weird, I am not using windows anymore, but when I was using it, there were no problems with compiling the flandmark, once one had all paths set up appropriately and all pre-requisities installed. Especially, there were no problems with compiling mex-files, once one had successfully compiled the flandmark itself. |
Just a quick question though, WHY is it trying to find the obj file anyways? Because that obj isn't created when I debug and compile the flandmark lib. It's this line that's causing the problem: |
that line just gives the path where the compiler should look for opencv compiled libraries, the .obj problem is windows related... |
Hello, Compiling mex-files on Windows platform... Warning: MEX could not find the library "flandmark_static" specified with -l option. Creating library C:\Users\renu\AppData\Local\Temp\mex_JwQeKT\templib.x and object C:\Users\renu\AppData\Local\Temp\mex_JwQeKT\templib.exp C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Link of 'C:\Users\renu\Downloads\flandmark-b6237496a6101a1558b118f9f15f6b74bcbb95d7\flandmark-b6237496a6101a1558b118f9f15f6b74bcbb95d7\matlab_toolbox\mex\flandmark_detector.mexw64' failed. ??? Error using ==> mex at 208 Error in ==> flandmark_compilemex at 79 Please help |
Hi, the same problem here, you have to compile the flandmark library itself. Then update the paths specified in the flandmark_compilemex.m script, to the correct paths leading to directories containing the compiled flandmark libraries. Then it should work. |
Hello, Michael! I can not form a mex-files of your project flandmark (https://github.com/uricamic/flandmark). I am using MS Visual Studio 2012 and try to compile flandmark_detector. I get the following error: 1>------ Перестроение всех файлов начато: проект: flandmark_detector, Конфигурация: Release x64 ------ How can you help me? Sincerely, |
i have the following error when i compile my flandmark_simple_example.m in matlab Undefined function or variable 'flandmark_load_model'. Error in flandmark_simple_example (line 17) |
Hi @arthahir, have you compiled the mex files successfully? There should be .mexw64 or .mexw32 (depending on your system & matlab version) files in /matlab_toolbox/mex/ folder. If not, I can provide you pre-compiled version for windows 7 64bit and 64bit MATLAB: http://www.ulozto.net/x23qdRE/flandmarkv107-precompiled-win7-64b-zip?_ga=1.106888643.1736449076.1428859677 I should also say, that flandmark is now considered to be obsolete, it was replaced by CLandmark: https://cmp.felk.cvut.cz/~uricamic/clandmark/ |
Hi @uricamic, I need urgently use flandmark library. Since Thursday I work on an installation of flandmark library. However, I could not correctly mex files and install library. So, I get an error like previous users: Compiling mex-files on Windows platform... Error in flandmark_compilemex (line 71) I've even downloaded above file thay you've uploaded, but no any results. Please help me. I need very urgent help. |
No matter how much I try, I keep getting the same error!
Compiling mex-files on Windows platform...
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: './mex/flandmark_detector_mex.cpp' not found.
please help
The text was updated successfully, but these errors were encountered: