Support SPM build properly
ainame opened this issue · comments
This package currently gets this error to be resolved.
ainame-mbp:Swift-WebP ainame$ swift build
'WebP' /Users/ainame/src/github.com/ainame/Swift-WebP: error: invalid custom path './Modules/CWebP' for target 'CWebP'
ainame-mbp:Swift-WebP ainame$ swift build
ld: warning: Could not find auto-linked library 'libwebp'
Undefined symbols for architecture x86_64:
"_WebPConfigInitInternal", referenced from:
_WebPConfigPreset in WebPEncoderConfig.swift.o
"_WebPDecode", referenced from:
_$s4WebP0A8PDecoderV6decode33_113B4816CCC7256F27C3E0A94BA32E40LL_6configy10Foundation4DataV_AA0aB6ConfigVztKFySwKXEfU_ in WebPDecoder.swift.o
"_WebPEncode", referenced from:
_$s4WebP0A8PEncoderV6encode33_091C83EEEFDDB0E21770FDBD873E5ECCLL_8importer6config11originWidth0L6Height6stride06resizeM00pN010Foundation4DataVSpys5UInt8VG_s5Int32VSpySo0A8PPictureVG_ArTtXEAA0aB6ConfigVS5itKF in WebPEncoder.swift.o
"_WebPInitDecoderConfigInternal", referenced from:
_WebPInitDecoderConfig in WebPDecoderConfig.swift.o
"_WebPMemoryWrite", referenced from:
_$s4WebP0A8PEncoderV6encode33_091C83EEEFDDB0E21770FDBD873E5ECCLL_8importer6config11originWidth0L6Height6stride06resizeM00pN010Foundation4DataVSpys5UInt8VG_s5Int32VSpySo0A8PPictureVG_ArTtXEAA0aB6ConfigVS5itKFATSPyAQGSg_SiSPyAVGSgtcfU_ in WebPEncoder.swift.o
"_WebPMemoryWriterInit", referenced from:
_$s4WebP0A8PEncoderV6encode33_091C83EEEFDDB0E21770FDBD873E5ECCLL_8importer6config11originWidth0L6Height6stride06resizeM00pN010Foundation4DataVSpys5UInt8VG_s5Int32VSpySo0A8PPictureVG_ArTtXEAA0aB6ConfigVS5itKF in WebPEncoder.swift.o
"_WebPPictureFree", referenced from:
_$s4WebP0A8PEncoderV6encode33_091C83EEEFDDB0E21770FDBD873E5ECCLL_8importer6config11originWidth0L6Height6stride06resizeM00pN010Foundation4DataVSpys5UInt8VG_s5Int32VSpySo0A8PPictureVG_ArTtXEAA0aB6ConfigVS5itKF in WebPEncoder.swift.o
"_WebPPictureImportBGR", referenced from:
_$s4WebP0A8PEncoderV6encode3BGR6config11originWidth0F6Height6stride06resizeG00jH010Foundation4DataVSpys5UInt8VG_AA0aB6ConfigVS5itKFs5Int32VSpySo0A8PPictureVG_AqUtcfU_ in WebPEncoder.swift.o
"_WebPPictureImportBGRA", referenced from:
_$s4WebP0A8PEncoderV6encode4BGRA6config11originWidth0F6Height6stride06resizeG00jH010Foundation4DataVSpys5UInt8VG_AA0aB6ConfigVS5itKFs5Int32VSpySo0A8PPictureVG_AqUtcfU_ in WebPEncoder.swift.o
"_WebPPictureImportBGRX", referenced from:
_$s4WebP0A8PEncoderV6encode4BGRX6config11originWidth0F6Height6stride06resizeG00jH010Foundation4DataVSpys5UInt8VG_AA0aB6ConfigVS5itKFs5Int32VSpySo0A8PPictureVG_AqUtcfU_ in WebPEncoder.swift.o
"_WebPPictureImportRGB", referenced from:
_$s4WebP0A8PEncoderV6encode3RGB6config11originWidth0F6Height6stride06resizeG00jH010Foundation4DataVSpys5UInt8VG_AA0aB6ConfigVS5itKFs5Int32VSpySo0A8PPictureVG_AqUtcfU_ in WebPEncoder.swift.o
"_WebPPictureImportRGBA", referenced from:
_$s4WebP0A8PEncoderV6encode4RGBA6config11originWidth0F6Height6stride06resizeG00jH010Foundation4DataVSpys5UInt8VG_AA0aB6ConfigVS5itKFs5Int32VSpySo0A8PPictureVG_AqUtcfU_ in WebPEncoder.swift.o
"_WebPPictureImportRGBX", referenced from:
_$s4WebP0A8PEncoderV6encode4RGBX6config11originWidth0F6Height6stride06resizeG00jH010Foundation4DataVSpys5UInt8VG_AA0aB6ConfigVS5itKFs5Int32VSpySo0A8PPictureVG_AqUtcfU_ in WebPEncoder.swift.o
"_WebPPictureInitInternal", referenced from:
_WebPPictureInit in WebPEncoder.swift.o
"_WebPPictureRescale", referenced from:
_$s4WebP0A8PEncoderV6encode33_091C83EEEFDDB0E21770FDBD873E5ECCLL_8importer6config11originWidth0L6Height6stride06resizeM00pN010Foundation4DataVSpys5UInt8VG_s5Int32VSpySo0A8PPictureVG_ArTtXEAA0aB6ConfigVS5itKF in WebPEncoder.swift.o
"_WebPValidateConfig", referenced from:
_$s4WebP0A8PEncoderV6encode33_091C83EEEFDDB0E21770FDBD873E5ECCLL_8importer6config11originWidth0L6Height6stride06resizeM00pN010Foundation4DataVSpys5UInt8VG_s5Int32VSpySo0A8PPictureVG_ArTtXEAA0aB6ConfigVS5itKF in WebPEncoder.swift.o
ld: symbol(s) not found for architecture x86_64
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)