[e-users] error on statically linked programs that use imlib2 static libraries

2023-07-26 Thread ruivlea via enlightenment-users
hello, i tried to statically build programs (scrot and nsxiv) that use imlib2. They can be built. But unusable. *scrot: % scrot -s scrot: Saving to file 2023-07-26-181818_137x107_scrot.png failed *nsxiv: % nsxiv /home/ruivlea/downloads/sample-1.gif nsxiv: /home/ruivlea/downloads/sample-1.gif:

Re: [e-users] error on statically linked programs that use imlib2 static libraries

2023-07-26 Thread ruivlea via enlightenment-users
i rebuilt imlib2 static libraries only: export CFLAGS="-g2" export LDFLAGS="$LDFLAGS -static" ./configure \ --build=x86_64-unknown-linux-musl \ --prefix=/usr \ --sysconfdir=/etc/imlib2 \ --disable-shared \ --enable-debug \ --without-svg \ --without-tiff \

Re: [e-users] error on statically linked programs that use imlib2 static libraries

2023-07-26 Thread BenoƮt-Pierre Demaine
You need to build with debug symbols, and run in debugger. Nobody can help you with that few infos. On 26/07/2023 20:36, ruivlea via enlightenment-users wrote: hello, i tried to statically build programs (scrot and nsxiv) that use imlib2. They can be built. But unusable. *scrot: % scrot -s

Re: [e-users] error on statically linked programs that use imlib2 static libraries

2023-07-26 Thread ruivlea via enlightenment-users
this make things clear. thankyou. so, shared only. i tried build it static because in configure --help there is: --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --- Original Message --- On Thursday, July 27th, 2023

Re: [e-users] error on statically linked programs that use imlib2 static libraries

2023-07-26 Thread Carsten Haitzler
On Wed, 26 Jul 2023 18:36:45 + ruivlea via enlightenment-users said: > hello, > > i tried to statically build programs (scrot and nsxiv) that use imlib2. They > can be built. But unusable. *scrot: > % scrot -s > scrot: Saving to file 2023-07-26-181818_137x107_scrot.png failed > > *nsxiv: >

Re: [e-users] error on statically linked programs that use imlib2 static libraries

2023-07-26 Thread Kim Woelders
As is, things will not work when using -static. The loaders are loaded dynamically as separate shared objects. One reason to do this is to avoid loading all libraries used by all loaders (libpng, librsvg2, etc., and their dependencies) at application startup but defer it until needed. Another