WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: scrot for x64  (Read 2217 times)

Offline GNUser

  • Hero Member
  • *****
  • Posts: 539
scrot for x64
« on: September 17, 2019, 09:46:07 AM »
In order to compile scrot we need giblib.

So I'm trying to compile giblib for x64. ./configure is successful but make is not happy:

Code: [Select]
bruno@box:~/Downloads/giblib_1.2.4$ ./configure
...
giblib 1.2.4
Configuration:
--------------

Imlib2 libs: -L/usr/local/lib -lImlib2
Imlib2 cflags:  -I/usr/local/include
CFLAGS: -g -O2 -Wall

bruno@box:~/Downloads/giblib_1.2.4$ make
...
imlib.o gib_stack.o gib_utils.o gib_queue.o
ranlib .libs/libgiblib.a
creating libgiblib.la
/usr/local/bin/sed: can't read /usr/local/lib/libglib-2.0.la: No such file or directory
libtool: link: `/usr/local/lib/libglib-2.0.la' is not a valid libtool archive
make[1]: *** [Makefile:251: libgiblib.la] Error 1
make[1]: Leaving directory '/home/bruno/Downloads/giblib_1.2.4.orig/giblib-1.2.4.orig/giblib'
make: *** [Makefile:243: all-recursive] Error 1

I can't find libglib-2.0.la in glib2-dev.tcz or anywhere else in the Pure64 repository, so I'm stuck for now.

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 7801
Re: scrot for x64
« Reply #1 on: September 17, 2019, 10:03:07 AM »
Hi GNUser
Download:
http://tinycorelinux.net/9.x/x86_64/tcz/glib2-dev.tcz
Unpack it and copy:
Code: [Select]
usr/local/lib/libgio-2.0.la
usr/local/lib/libglib-2.0.la
usr/local/lib/libgmodule-2.0.la
usr/local/lib/libgobject-2.0.la
usr/local/lib/libgthread-2.0.la
into your filesystem. These files are not executables. They are text files used to guide the linker.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12080
Re: scrot for x64
« Reply #2 on: September 17, 2019, 10:13:14 AM »
Or see repo.tinycorelinux.net/10.x/x86_64/tcz/src/glib2

Offline GNUser

  • Hero Member
  • *****
  • Posts: 539
Re: scrot for x64
« Reply #3 on: September 17, 2019, 10:15:25 AM »
Yes! That did the trick. Thank you! Moving ahead...

BTW it is highly counterintuitive that the .la files are part of the extension but do not show up in the filesystem even though the extension is loaded.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12080
Re: scrot for x64
« Reply #4 on: September 17, 2019, 10:20:00 AM »
Recent versions of many apps are not compiled with autotools and thus the la files are not produced - using old la files seems to work in most cases when needed.

Offline GNUser

  • Hero Member
  • *****
  • Posts: 539
Re: scrot for x64
« Reply #5 on: September 17, 2019, 10:53:44 AM »
Got it. Thank you.

Everything compiled smoothly. giblib.tcz, giblib-dev.tcz, and scrot.tcz submitted.

Thank you both very much :)