pperkins88 / gimp-normalmap

Automatically exported from code.google.com/p/gimp-normalmap
Other
0 stars 0 forks source link

Missing LIBS linker flags when building on openSUSE #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi
When building on the Open Build Service for openSUSE 12.2 I get the following 
build failure for version 1.2.3;
gcc  normalmap.o preview3d.o scale.o `pkg-config --libs gtk+-2.0 gtkglext-1.0 
gimp-2.0 gimpui-2.0` -L/usr/X11R6/lib -lGLEW -o normalmap
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: 
normalmap.o: undefined reference to symbol 'sqrtf@@GLIBC_2.2.5'
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: 
note: 'sqrtf@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it 
to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [normalmap] Error 1

For openSUSE 12.3 and up there was a package split for glu so this also needed 
to be added in the LIB string.

Attached please find a patch that fixes this linker issue for your 
consideration.

Original issue reported on code.google.com by coyoteu...@gmail.com on 4 Apr 2013 at 8:55

Attachments:

GoogleCodeExporter commented 8 years ago
Hi
We need to substitute the CFLAGS during build, have updated the patch to allow 
this.

Original comment by coyoteu...@gmail.com on 4 Apr 2013 at 9:27

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by ski...@gmail.com on 7 Dec 2013 at 8:23