justinblaber / ncorr_2D_matlab

2D Digital Image Correlation Matlab Software
https://www.ncorr.com
BSD 3-Clause "New" or "Revised" License
143 stars 67 forks source link

OpenMP seems to be fine but ncorr doesn't recognize that #10

Open mahmoodn opened 5 years ago

mahmoodn commented 5 years ago

Although I have installed PCT toolbox and openmp configurations seems to be fine, as I run handles_ncorr = ncorr, I get this error:

Files compiled, but it was determined that OpenMP 
is not actually supported. Please reinstall Ncorr in 
single threaded mode or use a compiler which 
supports OpenMP

Please see that all commands are successful.

>> mex -c standard_datatypes.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex -c ncorr_datatypes.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex -c ncorr_lib.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formmask.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formregions.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formboundary.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formthreaddiagram.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formunion.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_extrapdata.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_adddisp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_convert.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_dispgrad.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_calcseeds.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_rgdic.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_calcseeds.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> type('ncorr_installinfo.txt')

1,4
betruth commented 4 years ago

lake of "#define NCORR_OPENMP", add this to "ncorr_lib.h"