2010-11-26 10:03:49 build fails at libpng (SVN Revision 9986)
Adrian Trüb (SWITZERLAND)
Message: 96242
libtool: link: bfin-uclinux-gcc -I/home/scbf/temp/uclinux/staging/usr/include/libpng12 -pipe -Wall -g -O2 -mcpu=bf548-0.2 -D_GNU_SOURCE=1 -D_REENTRANT -I/home/scbf/temp/uclinux/staging/usr/include/SDL -Wl,-elf2flt -mcpu=bf548-0.2 -o showimage showimage.o -Wl,-rpath -Wl,/usr/lib ./.libs/libSDL_image.a -lpng -lz -ljpeg -lSDL -lpthread
/home/scbf/temp/uclinux/staging/usr/lib/libpng.a(libpng12_la-pngrtran.o): In function `png_build_gamma_table':
/home/scbf/temp/uclinux/lib/libmakepng/libpng-1.2.42/pngrtran.c:4183: undefined reference to `_pow'
/home/scbf/temp/uclinux/lib/libpng/libpng-1.2.42/pngrtran.c:4290: undefined reference to `_pow'
/home/scbf/temp/uclinux/lib/libpng/libpng-1.2.42/pngrtran.c:4290: undefined reference to `_pow'
/home/scbf/temp/uclinux/lib/libpng/libpng-1.2.42/pngrtran.c:4344: undefined reference to `_pow'
/home/scbf/temp/uclinux/lib/libpng/libpng-1.2.42/pngrtran.c:4318: undefined reference to `_pow'
/home/scbf/temp/uclinux/staging/usr/lib/libpng.a(libpng12_la-pngrtran.o):/home/scbf/temp/uclinux/lib/libpng/libpng-1.2.42/pngrtran.c:4369: more undefined references to `_pow' follow
collect2: ld returned 1 exit status
make[4]: *** [showimage] Error 1
make[4]: Leaving directory `/home/scbf/temp/uclinux/lib/SDL_image/build-SDL_image-1.2.10'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/scbf/temp/uclinux/lib/SDL_image'
make[2]: *** [SDL_image] Error 2
make[2]: Leaving directory `/home/scbf/temp/uclinux/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/scbf/temp/uclinux/lib'
make: *** [subdirs] Error 1
What is the problem?
QuoteReplyEditDelete
2010-11-26 17:27:23 Re: build fails at libpng (SVN Revision 9986)
Mike Frysinger (UNITED STATES)
Message: 96245
builds fine for me. the libpng.pc file should have added -lm to the linking steps which SDL_image should have added.
QuoteReplyEditDelete
2010-11-29 09:30:36 Re: build fails at libpng (SVN Revision 9986)
Adrian Trüb (SWITZERLAND)
Message: 96288
Ok, and where do I have to add the -lm?
Shoulden't it work if i just download the svn dist and build it, without changing any config or makefiles?
QuoteReplyEditDelete
2010-11-29 12:55:06 Re: build fails at libpng (SVN Revision 9986)
Adrian Trüb (SWITZERLAND)
Message: 96291
I tried the newest toolchain(2010R1-RC4) and the newest uclinux-dist(2010R1-RC4) and there's still the same problem. Now I think it's a problem on my host pc. I use ubuntu 10.10, could it be that there are problems with the math library?
QuoteReplyEditDelete
2010-11-29 15:26:03 Re: build fails at libpng (SVN Revision 9986)
Mike Frysinger (UNITED STATES)
Message: 96293
it works fine for me without changes. that is why i suggested places for you to look to verify things and narrow down where it's going wrong.
QuoteReplyEditDelete
2010-12-03 11:25:01 Re: build fails at libpng (SVN Revision 9986)
Adrian Trüb (SWITZERLAND)
Message: 96457
Now I can build the uImage with the default settings.
But if I select the SDL_image Lib, there is still undefined reference to _pow. (In Ubuntu and Suse)
Any idea?
QuoteReplyEditDelete
2010-12-13 10:54:37 Re: build fails at libpng (SVN Revision 9986)
Adrian Trüb (SWITZERLAND)
Message: 96669
Finaly it works. I don't know exactly why. I added the SDL Examples and changed some other things in menuconfig and it works fine.