On Sunday, May 11, 2014, Carlos R. Mafra <[email protected]> wrote: > On Sun, 11 May 2014 at 1:09:23 +0800, David Maciejak wrote: > > On Sat, May 10, 2014 at 10:10 PM, Carlos R. Mafra > > <[email protected]<javascript:;>> > wrote: > > > On Sat, 10 May 2014 at 21:37:51 +0800, David Maciejak wrote: > > >> I am enclosing here a patch that brings wmiv, a fast image viewer > > >> which uses wrlib. I tested it over the last weeks, i can just say it > > >> working well (at least for me). > > >> > > >> note: it requires the previous patch > > >> 0001-wrlib-add-a-function-to-draw-rectangles.patch > > > > > > Even after adding the patch above, I get these compilation errors: > > > > > > Making all in po > > > CC wmiv.o > > > wmiv.c:68:17: warning: initialization makes integer from pointer > without a cast [enabled by default] > > > CCLD wmiv > > > > /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: > wmiv.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' > > > > /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: > note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO > /lib64/libpthread.so.0 so try adding it to the linker command line > > > /lib64/libpthread.so.0: could not read symbols: Invalid operation > > > collect2: error: ld returned 1 exit status > > > make[3]: *** [wmiv] Error 1 > > > make[2]: *** [all-recursive] Error 1 > > > make[1]: *** [all-recursive] Error 1 > > > make: *** [all] Error 2 > > > > > > > hum did not try it on Suse, is your command line contains -pthread ? > > No. But adding it manually in the Makefile.am > > wmiv_LDADD = \ > $(top_builddir)/wrlib/libwraster.la \ > @XLFLAGS@ @XLIBS@ \ > @GFXLIBS@ -lpthread > > makes it compile. But there must be a better way. > > > Ok I will try to reproduce it and let you know.
Thanks, David > -- > To unsubscribe, send mail to > [email protected]<javascript:;> > . >
