kolesa-team / go-webp

Simple and fast webp library for golang
MIT License
225 stars 36 forks source link

Failed to compile from Windows. #18

Open linksquidmx opened 1 year ago

linksquidmx commented 1 year ago

I'm trying to run an application in Go that converts image files to Webp format from Windows, but I get the following C compiler error. This problem doesn't happen on Linux, but I need to run it on Windows:

C:\Program Files\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1 C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp collect2.exe: error: ld returned 1 exit status

temp

UPDATE: I solved the above problem by changing the codeblocks compiler to w64devkit, but now it shows the following errors:

Captura