dayjaby / zebra-scanner

Read barcodes in python with zebra barcode scanner
MIT License
24 stars 18 forks source link

[Raspberry] undefined symbol: GetScanners #1

Closed dayjaby closed 6 years ago

dayjaby commented 6 years ago

pi@raspberrypi:~/zebra-scanner/examples $ python test.py Traceback (most recent call last): File "test.py", line 4, in <module> from zebra_scanner import CoreScanner ImportError: /home/pi/zebra-scanner/examples/zebra_scanner.so: undefined symbol: _Z11GetScannersPtPSt6vectorIjSaIjEERSsP8StatusID

even though libcs-client.so is linked:

pi@raspberrypi:~/zebra-scanner/examples $ ldd zebra_scanner.so linux-vdso.so.1 (0x7ec75000) /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f2f000) libcs-client.so => /usr/lib/zebra-scanner/corescanner/libcs-client.so (0x76e4d000) libcs-common.so => /usr/lib/zebra-scanner/corescanner/libcs-common.so (0x76d47000)

dayjaby commented 6 years ago

The offending line is https://github.com/dayjaby/zebra-scanner/blob/6161067347424f106d1c54f02fb50c7e1eae2251/src/BoostPythonCoreScanner.h#L8

On the raspberry was GCC 6 installed, in which case this line is not working correctly.