Thread Subject: Building an adaptor: Imaq

Subject: Building an adaptor: Imaq

From: Brady

Date: 12 Nov, 2009 19:00:19

Message: 1 of 3

Hi
I am using a camera whose drivers are not directly compatable with the adaptors provided by the image acquisition toolbox of matlab, so I am trying to build my own adaptor. I am using the document http://www.mathworks.com/access/helpdesk/help/pdf_doc/imaq/adaptorkit.pdf
provided my matlab as reference which gives instructions on how to build an adaptor using the adaptor kit. I followed all the instructions and created a new win32 project using Visual C++ 2008 and then added the existing project 'imaqadaptorkit_vc8', (developed using Microsoft Visual C++ 2005) to the solution file of the current project. After adding the required source and module definition files to the current project when I tried building the project and I got the following error message.
"
------ Build started: Project: imaqadaptorkit_vc8, Configuration: Debug Win32 ------
Embedding manifest...
mt.exe : general error c10100b1: Failed to load file ".\Debug\imaqadaptorkit.dll". The system cannot find the file specified.
Build log was saved at "file://c:\Program Files\MATLAB\R2008b Student\toolbox\imaq\imaqadaptors\kit\Debug\BuildLog.htm"
imaqadaptorkit_vc8 - 1 error(s), 0 warning(s)
------ Build started: Project: ThermalEyeImaq, Configuration: Release Win32 ------
Compiling...
ThermalEye_exported_fcns.cpp
Source1.cpp
Linking...
Generating code
Finished generating code
Embedding manifest...
Build log was saved at "file://c:\Documents and Settings\Valued Client\My Documents\Visual Studio 2008\Projects\ThermalEyeImaq\ThermalEyeImaq\Release\BuildLog.htm"
ThermalEyeImaq - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
"
For the new project file that I have created I used the Release version and the build was successful where as the existing project that was added to the current one was in Debug version and the build failed.

The error message says that ‘imaqadaptorkit.dll’ was not found and when I looked into to it I realized that the existing project file that I added to my project solution doesn't have any Debug or Release folders. Instead it has include and lib, containing some header files, which were stored under two folders called 'Derivable Classes' and 'Interfaces and Tools' in the Visual C++ solution file. After building a solution for this project a Debug folder was created to hold to buildlog.htm

Am I supposed to build the DLL first and then develop my solution from there?
Has anyone ever encountered a problem like this before and can someone tell me what I am doing wrong and what is the right way of doing this?

Thanks
Brady

Subject: Building an adaptor: Imaq

From: Mark Jones

Date: 23 Nov, 2009 14:29:43

Message: 2 of 3

Hi Brady,

Are you able to use Visual Studio 2005? I'm wondering if the conversion
to 2008 is setting up your project incorrectly.

Also, are you using Visual Studio 2008 Express or a professional version?

Be aware that though it may be possible to configure the project
correctly in Visual Studio 2008, it is has not been tested by us and is
not supported at this time for adaptor development. Because of this,
you may or may not run into other issues should you get your Visual
Studio 2008 project working.

Mark


Brady wrote:
> Hi
> I am using a camera whose drivers are not directly compatable with the adaptors provided by the image acquisition toolbox of matlab, so I am trying to build my own adaptor. I am using the document http://www.mathworks.com/access/helpdesk/help/pdf_doc/imaq/adaptorkit.pdf
> provided my matlab as reference which gives instructions on how to build an adaptor using the adaptor kit. I followed all the instructions and created a new win32 project using Visual C++ 2008 and then added the existing project 'imaqadaptorkit_vc8', (developed using Microsoft Visual C++ 2005) to the solution file of the current project. After adding the required source and module definition files to the current project when I tried building the project and I got the following error message.
> "
> ------ Build started: Project: imaqadaptorkit_vc8, Configuration: Debug Win32 ------
> Embedding manifest...
> mt.exe : general error c10100b1: Failed to load file ".\Debug\imaqadaptorkit.dll". The system cannot find the file specified.
> Build log was saved at "file://c:\Program Files\MATLAB\R2008b Student\toolbox\imaq\imaqadaptors\kit\Debug\BuildLog.htm"
> imaqadaptorkit_vc8 - 1 error(s), 0 warning(s)
> ------ Build started: Project: ThermalEyeImaq, Configuration: Release Win32 ------
> Compiling...
> ThermalEye_exported_fcns.cpp
> Source1.cpp
> Linking...
> Generating code
> Finished generating code
> Embedding manifest...
> Build log was saved at "file://c:\Documents and Settings\Valued Client\My Documents\Visual Studio 2008\Projects\ThermalEyeImaq\ThermalEyeImaq\Release\BuildLog.htm"
> ThermalEyeImaq - 0 error(s), 0 warning(s)
> ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
> "
> For the new project file that I have created I used the Release version and the build was successful where as the existing project that was added to the current one was in Debug version and the build failed.
>
> The error message says that ‘imaqadaptorkit.dll’ was not found and when I looked into to it I realized that the existing project file that I added to my project solution doesn't have any Debug or Release folders. Instead it has include and lib, containing some header files, which were stored under two folders called 'Derivable Classes' and 'Interfaces and Tools' in the Visual C++ solution file. After building a solution for this project a Debug folder was created to hold to buildlog.htm
>
> Am I supposed to build the DLL first and then develop my solution from there?
> Has anyone ever encountered a problem like this before and can someone tell me what I am doing wrong and what is the right way of doing this?
>
> Thanks
> Brady

Subject: Building an adaptor: Imaq

From: Brady

Date: 23 Nov, 2009 15:27:19

Message: 3 of 3

Hi

I am using Microsoft Visual C++ 2008 Express edition for the project. Should I use the Visual Studio 2005 Professional version instead?

Thanks
Brady

Mark Jones <mark.jones@mathworks.com> wrote in message <4B0A9C57.2070203@mathworks.com>...
> Hi Brady,
>
> Are you able to use Visual Studio 2005? I'm wondering if the conversion
> to 2008 is setting up your project incorrectly.
>
> Also, are you using Visual Studio 2008 Express or a professional version?
>
> Be aware that though it may be possible to configure the project
> correctly in Visual Studio 2008, it is has not been tested by us and is
> not supported at this time for adaptor development. Because of this,
> you may or may not run into other issues should you get your Visual
> Studio 2008 project working.
>
> Mark

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
adaptorkit Brady 12 Nov, 2009 14:04:07
imaq Brady 12 Nov, 2009 14:04:07
adaptor Brady 12 Nov, 2009 14:04:07
image acquisition Brady 12 Nov, 2009 14:04:06
rssFeed for this Thread

Contact us at files@mathworks.com