From: 常啸 <xc...@si...> - 2010-09-16 22:53:39
|
hi, I meet an error when compile wig2png after typing "make". g++ -g -O2 -include src/config.h -lpng -o bin/wig2png src/wig2png.cc src/opts_list.cc /tmp/cc1x8bbj.o: In function `write_png_file(char const*, int, int, unsigned char**, png_color_struct*, int, int)': /var/www/html/jbrowse-jbrowse-9a1542d/src/wig2png.cc:59: undefined reference to `png_set_longjmp_fn' collect2: ld returned 1 exit status Can anyone tell me what's the problem? Thanks, Xiao |
From: Ian H. <ih...@be...> - 2010-09-16 23:42:09
|
Hi Xiao, Looks like gcc is not finding libpng - this is what the configure script is for. Try typing './configure' before 'make'. Best wishes Ian 常啸 wrote: > hi, > I meet an error when compile wig2png after typing "make". > > g++ -g -O2 -include src/config.h -lpng -o bin/wig2png src/wig2png.cc src/opts_list.cc > /tmp/cc1x8bbj.o: In function `write_png_file(char const*, int, int, unsigned char**, png_color_struct*, int, int)': > /var/www/html/jbrowse-jbrowse-9a1542d/src/wig2png.cc:59: undefined reference to `png_set_longjmp_fn' > collect2: ld returned 1 exit status > > Can anyone tell me what's the problem? > > Thanks, > Xiao > > > > > > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Gmod-ajax mailing list > Gmo...@li... > https://lists.sourceforge.net/lists/listinfo/gmod-ajax |
From: Ian H. <ih...@be...> - 2010-09-16 23:53:26
|
Actually, scratch that - it looks like what's actually happening is you've got an old version of libpng. The missing function "png_set_longjmp_fn" was introduced in libpng 1.4.0 Autoconf can probably check this, but it currently doesn't. I've added a bug ticket: http://jbrowse.lighthouseapp.com/projects/23792-jbrowse/tickets/63 In the meantime, the best thing for you to do is to install a newer version of libpng (>1.4) Best wishes, Ian Ian Holmes wrote: > Hi Xiao, > > Looks like gcc is not finding libpng - this is what the configure script > is for. Try typing './configure' before 'make'. > > Best wishes > Ian > > 常啸 wrote: >> hi, >> I meet an error when compile wig2png after typing "make". >> >> g++ -g -O2 -include src/config.h -lpng -o bin/wig2png src/wig2png.cc src/opts_list.cc >> /tmp/cc1x8bbj.o: In function `write_png_file(char const*, int, int, unsigned char**, png_color_struct*, int, int)': >> /var/www/html/jbrowse-jbrowse-9a1542d/src/wig2png.cc:59: undefined reference to `png_set_longjmp_fn' >> collect2: ld returned 1 exit status >> >> Can anyone tell me what's the problem? >> >> Thanks, >> Xiao >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Gmod-ajax mailing list >> Gmo...@li... >> https://lists.sourceforge.net/lists/listinfo/gmod-ajax > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Gmod-ajax mailing list > Gmo...@li... > https://lists.sourceforge.net/lists/listinfo/gmod-ajax |