Wickedlasers / laserdocklib

client library to connect to laserdock
GNU Lesser General Public License v3.0
28 stars 8 forks source link

AttributeError: ./liblaserdocklib.so: undefined symbol: nodeDisableOutput #13

Open trojek opened 3 years ago

trojek commented 3 years ago

I build shared library for Linux arm64 with no error using following commands:

$ cmake .. .
$ make

I also change the usblib from: https://github.com/Wickedlasers/laserdocklib/tree/master/lib/3rdparty/libusb/lib/linux to one compiled on arm64.

Then when when I try to use liblaserdocklib.so (from Python)

Laserdock_LIB = ctypes.cdll.LoadLibrary("./lib/liblaserdocklib.so")
Laserdock_LIB.nodeDisableOutput()

I got an error: AttributeError: ./liblaserdocklib.so: undefined symbol: nodeDisableOutput.

I assume that there is a problem with compilation shared library. How can I fix it?