emericg / QmlMobileScanner

Barcode & QRcode reader/writer based on qzxing, zxing-cpp and zint libraries
GNU General Public License v3.0
4 stars 0 forks source link

During assembly errors occur - error: duplicate symbol #1

Open Anton247 opened 6 months ago

Anton247 commented 6 months ago

When trying to build a project for Android or Windows (haven't tried other platforms), errors occur: 1) error: duplicate symbol: ZXing::ToString(ZXing::ECI) defined at ECI.cpp:53 (..\QmlMobileScanner\src\thirdparty\zxing-cpp\core\src\ECI.cpp:53) build/arm64-v8a/ECI.obj:(ZXing::ToString(ZXing::ECI))

2) error: duplicate symbol: ZXing::ToCharacterSet(ZXing::ECI) defined at ECI.cpp:58 (..\QmlMobileScanner\src\thirdparty\zxing-cpp\core\src\ECI.cpp:58) build/arm64-v8a/ECI.obj:(ZXing::ToCharacterSet(ZXing::ECI))

3) error: duplicate symbol: ZXing::ToECI(ZXing::CharacterSet) defined at ECI.cpp:66 (..\QmlMobileScanner\src\thirdparty\zxing-cpp\core\src\ECI.cpp:66) build/arm64-v8a/ECI.obj:(ZXing::ToECI(ZXing::CharacterSet))

image

emericg commented 6 months ago

The symbols duplicated are at the same file & line :/ So "duplicates" might not be the problem here :) Not entirely sure what's happening, but I'm also not entirely sure if this is a bug in the project (or project file).

Does it build fine directly on Windows? Are you using shadow builds? Can you make sure you have a clean build directory?