WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: scrot for x64  (Read 3684 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
scrot for x64
« on: September 17, 2019, 12:46:07 PM »
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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: scrot for x64
« Reply #1 on: September 17, 2019, 01:03:07 PM »
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: 14851
Re: scrot for x64
« Reply #2 on: September 17, 2019, 01:13:14 PM »
Or see repo.tinycorelinux.net/10.x/x86_64/tcz/src/glib2

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: scrot for x64
« Reply #3 on: September 17, 2019, 01:15:25 PM »
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: 14851
Re: scrot for x64
« Reply #4 on: September 17, 2019, 01:20:00 PM »
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

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: scrot for x64
« Reply #5 on: September 17, 2019, 01:53:44 PM »
Got it. Thank you.

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

Thank you both very much :)