Can't link demo imaq toolkit adaptor
조회 수: 1 (최근 30일)
이전 댓글 표시
I need to create a custom videoInputAdaptor for a camera my company has developed. As a first step, I'm trying to make sure that I can compile the demo adaptor in R2018b\toolbox\imaq\imaqadaptors\kit.
I've been able to compile all of the Demo files by making a few minor modifications to the #include statements, however I'm failing at the Link stage.
Link command:
g++ -o dist/Release/MinGW-Windows/libXeroxIIM_usb3.dll build/Release/MinGW-Windows/demo/DemoAdaptor.o build/Release/MinGW-Windows/demo/DemoDeviceFormat.o build/Release/MinGW-Windows/demo/DemoPropListener.o build/Release/MinGW-Windows/demo/DemoSourceListener.o build/Release/MinGW-Windows/demo/DemoTimestampGetFcn.o build/Release/MinGW-Windows/demo/mwdemoimaq.o lib/win64/release/imaqmex.lib -shared
Error message (one of many):
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: build/Release/MinGW-Windows/demo/DemoAdaptor.o:DemoAdaptor.cpp:(.text+0x1b4): undefined reference to `imaqkit::createAutoCriticalSection(imaqkit::ICriticalSection*, bool)'
From the messages, it looks like the imaqmex.lib file included with the R2018b version of the imaq toolbox does not contain any of the functions referenced in the imaqfcnexports.h file.
The .vcxproj file in the imaq toolkit file references a different library file <ImportLibrary>.\Debug/imaqadaptorkit.lib</ImportLibrary>
Is there a problem with the imaqmex.lib included in the adaptor kit? Was it built without the imaqfcnexports functions? Or is there a separate static library (imaqadaptorkit.lib) missing? It looks like there should also be a User's Guide for the adaptor kit that I'm not finding.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!