WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: help compiling xscreensaver for TCL12 x86  (Read 1313 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
help compiling xscreensaver for TCL12 x86
« on: May 25, 2021, 03:42:34 PM »
I'm trying to compile the xscreensaver source code available here:
http://repo.tinycorelinux.net/11.x/x86_64/tcz/src/xscreensaver/xscreensaver-5.44.tar.gz

on TCL12 x86. Despite my best efforts, the configure step seems unable to locate GTK, GDK-Pixbuf, and OpenGL libraries:

Code: [Select]
$ tce-load -wi compiletc bc intltool libglade-dev gdk-pixbuf2-dev Xorg-7.7-3d-dev pkg-config gtk2-dev
$ cd xscreensaver-5.44
$ ./configure --prefix=/usr/local --with-pixbuf --with-jpeg --with-setuid-hacks
---snip---
config.status: creating driver/XScreenSaver.ad
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

    #################################################################

    Warning: The GTK libraries do not seem to be available; the
             `xscreensaver-demo' program requires them.

    Warning: Use of GDK-Pixbuf was requested, but it was not found.

             The PNG library is being used instead.

             Some of the demos will not use images as much as they could.
             You should consider installing GDK-Pixbuf and re-running
             configure.

       Note: The OpenGL 3D library was not found.

             More specifically, we found the headers, but not the
             libraries; so either GL is half-installed on this
             system, or something else went wrong.  The `config.log'
             file might contain some clues.

             Those demos which use 3D will not be built or installed.
             You might want to consider installing OpenGL and
             re-running configure.

    #################################################################

User programs will be installed in /usr/local/bin/
Screen savers will be installed in /usr/local/libexec/xscreensaver/
Configuration dialogs will be installed in /usr/local/share/xscreensaver/config/
System-wide default settings will be installed in /usr/lib/X11/app-defaults/
I already tried many things, too numerous to list (or even remember). I also searched the internet for a long time. I must be missing a flag that is important for TCL specifically.

Can someone point me in the right direction?




Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: help compiling xscreensaver for TCL12 x86
« Reply #1 on: May 25, 2021, 03:58:15 PM »
Assuming the configure script is using pkg-config to check for gdk-pixbuf2, etc you can use it directly to see what’s missing, for example:
Code: [Select]
$ pkgconfig —cflags gdk-pixbuf-2.0

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: help compiling xscreensaver for TCL12 x86
« Reply #2 on: May 25, 2021, 04:33:10 PM »
Thank you, Juanito :) I had to alter the command slightly:
Code: [Select]
$ pkg-config --cflags gdk-pixbuf-2.0and it told me that  shared-mime-info  was missing! I would never have guessed.

This made the GDK-Pixbuf-related warning go away:
Code: [Select]
$ tce-load -wi shared-mime-info
The OpenGL warning persisted, so I decided to not mess around and loaded every extension I could find that seemed related or that had "gl" in the name:
Code: [Select]
$ tce-load -wi libGL-dev libGLESv2-dev libEGL-dev glu-dev glade-dev gegl-devIt was overkill, for sure, but that made the OpenGL warning go away ;D

Solved!