You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static linking with libArduCamLib.a gives unresolved reference errors:
g++ ArduCam_Demo.cpp -o ArduCam_Demo ../lib/libArduCamLib.a ../lib/libArduCamLib.a -lusb-1.0 -lpthread -larducam_config_parser pkg-config --cflags --libs opencv4 -L../lib -I../include -std=gnu++11 -g
/usr/bin/ld: ../lib/libArduCamLib.a(GjUsbCameraLib.o): in function GjUsbCameraLib::~GjUsbCameraLib()': GjUsbCameraLib.cpp:(.text+0x4fa): undefined reference to deinit_controller'
/usr/bin/ld: ../lib/libArduCamLib.a(GjUsbCameraLib.o): in function GjUsbCameraLib::InitController()': GjUsbCameraLib.cpp:(.text+0x346f): undefined reference to init_controller'
/usr/bin/ld: ../lib/libArduCamLib.a(GjUsbCameraLib.o): in function GjUsbCameraLib::registerCtrls(Control*, unsigned int)': GjUsbCameraLib.cpp:(.text+0x34a6): undefined reference to register_ctrls'
/usr/bin/ld: ../lib/libArduCamLib.a(GjUsbCameraLib.o): in function GjUsbCameraLib::setCtrl(char const*, long long, void*)': GjUsbCameraLib.cpp:(.text+0x34df): undefined reference to set_ctrl'
these routines are found in the shared library
The text was updated successfully, but these errors were encountered:
Static linking with libArduCamLib.a gives unresolved reference errors:
g++ ArduCam_Demo.cpp -o ArduCam_Demo ../lib/libArduCamLib.a ../lib/libArduCamLib.a -lusb-1.0 -lpthread -larducam_config_parser
pkg-config --cflags --libs opencv4
-L../lib -I../include -std=gnu++11 -g/usr/bin/ld: ../lib/libArduCamLib.a(GjUsbCameraLib.o): in function
GjUsbCameraLib::~GjUsbCameraLib()': GjUsbCameraLib.cpp:(.text+0x4fa): undefined reference to
deinit_controller'/usr/bin/ld: ../lib/libArduCamLib.a(GjUsbCameraLib.o): in function
GjUsbCameraLib::InitController()': GjUsbCameraLib.cpp:(.text+0x346f): undefined reference to
init_controller'/usr/bin/ld: ../lib/libArduCamLib.a(GjUsbCameraLib.o): in function
GjUsbCameraLib::registerCtrls(Control*, unsigned int)': GjUsbCameraLib.cpp:(.text+0x34a6): undefined reference to
register_ctrls'/usr/bin/ld: ../lib/libArduCamLib.a(GjUsbCameraLib.o): in function
GjUsbCameraLib::setCtrl(char const*, long long, void*)': GjUsbCameraLib.cpp:(.text+0x34df): undefined reference to
set_ctrl'these routines are found in the shared library
The text was updated successfully, but these errors were encountered: