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

SDL2_image sqrtf missing when building with SVG support on Linux #119

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: unspecified
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2017-11-04 11:44:55 +0000, Luke A. Guest wrote:

/bin/sh ./libtool --tag=CC --mode=link gcc -I/usr/include/libpng16 -g -O2 -D_REENTRANT -I/usr/include/SDL2 -o showimage showimage.o libSDL2_image.la -lSDL2
libtool: link: gcc -I/usr/include/libpng16 -g -O2 -D_REENTRANT -I/usr/include/SDL2 -o showimage showimage.o ./.libs/libSDL2_image.a -lSDL2
/home/laguest/opt/free-ada-6.4.0/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libSDL2_image.a(IMG_svg.o): undefined reference to symbol 'sqrtf@@GLIBC_2.2.5'
/lib64/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:550: showimage] Error 1

This fixes it for me:

LDFLAGS=-lm ../../SDL2_image-2.0.2/configure

On 2017-11-05 05:00:02 +0000, Sam Lantinga wrote:

Fixed!
You can get the fixed version from http://hg.libsdl.org/SDL_image using Mercurial, and it requires the latest SDL snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip

Thanks!

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