Can't link demo imaq toolkit adaptor
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!