Skip to content
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

flandmark_in windows simple_example.m is not running #28

Open
arthahir opened this issue Jul 22, 2015 · 10 comments
Open

flandmark_in windows simple_example.m is not running #28

arthahir opened this issue Jul 22, 2015 · 10 comments

Comments

@arthahir
Copy link

i have the following error when i compile my flandmark_simple_example.m in matlab
how i need use flandmark in windows help me please

Undefined function or variable 'flandmark_load_model'.

Error in flandmark_simple_example (line 17)
model = flandmark_load_model('../data/flandmark_model.dat');

@uricamic
Copy link
Owner

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/
which is faster, more user friendly and without external dependencies (like OpenCV).

@arthahir
Copy link
Author

hiiii dude,
sure i will have a look at Clandmark.Thank you but the precomplied version ..but when i copied .mexw64 it to matlab_toolbox/mex/.mexw64 and run my simple_example.m code is shows me the following error..

Invalid MEX-file 'D:\flandmark-master\matlab_toolbox\mex\flandmark_load_model.mexw64': The specified module could not be found.

please help me to run this code..

@uricamic
Copy link
Owner

Hi,

I am now a bit lost. So, you have downloaded the pre-compiled version and tried to run that and obtained this error?

@arthahir
Copy link
Author

yes i have downloaded and tried running flandmark_simple_example.m in my matlab and found that error.!

@uricamic
Copy link
Owner

Which version of MATLAB and operating system are you using?

@arthahir
Copy link
Author

matlab R2015a
windows 7 operating system

is that my operating system may be causing this error!i dont know the exact reason..pls

@uricamic
Copy link
Owner

I guess both is 64bit, right?

Operating system should not be the problem, since I have compiled it on Windows 7. The version of MATLAB, though, could be a problem. I don't remember correctly, but I guess, I have used MATLAB 2012b...

It seems you will have to compile it by yourself then... Do you use MS Visual Studio?

@arthahir
Copy link
Author

hii,
yes both are 64 bit...and yes i have MS Visual studio express 2012..how can i go with Visual studio, if matlab is the problem!

@uricamic
Copy link
Owner

MATLAB is not a problem. What I am trying to say is, that the pre-compiled version is not compatible with your system setting (probably just the version of MATLAB is a problem). So, you can still use flandmark in MATLAB, but you will have to compile it by yourself for your system...

If you are using Visual Studio, then I guess, you will have to modify some paths in the project solution file generated by CMake. Unfortunately, I don't have access to a windows machine now. But IIRC, you just need to specify additional paths in linker options. It might be also easier to first compile the library in Visual Studio and then to produce mex-files directly in MATLAB using the enclosed script.

@arthahir
Copy link
Author

even i have same though matlab could be probelm may be.
in these case let me try this out in visual studio..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants