Trouble using Loadlibrary with the qhy camera SDK for Windows
I am trying to connect MatLab to control my QHY550P camera. I have installed the SDK for windows, which includes several header files, as well as the SDK library, which I am trying to load.
if ~libisloaded("C:UsersElinaDocumentsMATLABpkg_winx64qhyccd.dll")
loadlibrary(‘C:UsersElinaDocumentsMATLABpkg_winx64qhyccd.dll’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccd.h",’addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccderr.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccdcamdef.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccdstruct.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeconfig.h", ‘addheader’, …
"C:UsersElinaDownloadsmingw81x86_64-w64-mingw32includestdint.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeCyAPI.h")
end
(pkg_win is the sdk folder which I downloaded)
When I try using loadlibrary with the specified h files, I receive an error message:
Error using loadlibrary
Failed to preprocess the input file.
Output from preprocessor is:C:UsersElinaDocumentsMATLABpkg_winincludeqhyccd.h:7:22: fatal error: functional: No such
file or directory
#include <functional>
^
compilation terminated.
I know that this preprocessing error may have to do with the MinGW compiler, which I have downloaded and configured multiple times, but I still receive this same error message. It also may have to do with not including all the required h files(?).
Any help to resolve this would be appreciated,
Thanks in advanceI am trying to connect MatLab to control my QHY550P camera. I have installed the SDK for windows, which includes several header files, as well as the SDK library, which I am trying to load.
if ~libisloaded("C:UsersElinaDocumentsMATLABpkg_winx64qhyccd.dll")
loadlibrary(‘C:UsersElinaDocumentsMATLABpkg_winx64qhyccd.dll’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccd.h",’addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccderr.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccdcamdef.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccdstruct.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeconfig.h", ‘addheader’, …
"C:UsersElinaDownloadsmingw81x86_64-w64-mingw32includestdint.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeCyAPI.h")
end
(pkg_win is the sdk folder which I downloaded)
When I try using loadlibrary with the specified h files, I receive an error message:
Error using loadlibrary
Failed to preprocess the input file.
Output from preprocessor is:C:UsersElinaDocumentsMATLABpkg_winincludeqhyccd.h:7:22: fatal error: functional: No such
file or directory
#include <functional>
^
compilation terminated.
I know that this preprocessing error may have to do with the MinGW compiler, which I have downloaded and configured multiple times, but I still receive this same error message. It also may have to do with not including all the required h files(?).
Any help to resolve this would be appreciated,
Thanks in advance I am trying to connect MatLab to control my QHY550P camera. I have installed the SDK for windows, which includes several header files, as well as the SDK library, which I am trying to load.
if ~libisloaded("C:UsersElinaDocumentsMATLABpkg_winx64qhyccd.dll")
loadlibrary(‘C:UsersElinaDocumentsMATLABpkg_winx64qhyccd.dll’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccd.h",’addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccderr.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccdcamdef.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeqhyccdstruct.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeconfig.h", ‘addheader’, …
"C:UsersElinaDownloadsmingw81x86_64-w64-mingw32includestdint.h", ‘addheader’, …
"C:UsersElinaDocumentsMATLABpkg_winincludeCyAPI.h")
end
(pkg_win is the sdk folder which I downloaded)
When I try using loadlibrary with the specified h files, I receive an error message:
Error using loadlibrary
Failed to preprocess the input file.
Output from preprocessor is:C:UsersElinaDocumentsMATLABpkg_winincludeqhyccd.h:7:22: fatal error: functional: No such
file or directory
#include <functional>
^
compilation terminated.
I know that this preprocessing error may have to do with the MinGW compiler, which I have downloaded and configured multiple times, but I still receive this same error message. It also may have to do with not including all the required h files(?).
Any help to resolve this would be appreciated,
Thanks in advance loadlibrary, qhy sdk, h files, mingw compiler, preprocessing error MATLAB Answers — New Questions