Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpng 14 is used by default instead of 16 #11

Open
geniot opened this issue Nov 28, 2022 · 0 comments
Open

libpng 14 is used by default instead of 16 #11

geniot opened this issue Nov 28, 2022 · 0 comments

Comments

@geniot
Copy link

geniot commented Nov 28, 2022

Maybe not an issue but still worth looking at.

The latest toolchain has both libpng14 and libpng16. During compilation/linking version 14 is used by default instead of 16.
I guess it's because 14 comes before 16 alphabetically.

My Go build now looks like this:

CC='/opt/gcw0-toolchain/usr/bin/mipsel-gcw0-linux-uclibc-gcc' \
 CGO_CFLAGS='-I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include
  -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/libpng16
  -D_REENTRANT' \
 CGO_ENABLED=1 \
 CGO_LDFLAGS='-L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -lSDL2 -lpng16' \
 GOARCH=mipsle \
 GOMIPS=softfloat \
 GOOS=linux \
 PKG_CONFIG='/opt/gcw0-toolchain/usr/bin/pkg-config' \
 go build -o ${TMP_FOLDER}/${TARGET} ${SOURCE}

See how I'm specifying libpng16 because otherwise 14 is used. SDL2 uses 16 I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant