Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#14437 closed enhancement (fixed)

icewm-2.0.0 fails to configure with the book's commands:

Reported by: ken@… Owned by: ken@…
Priority: normal Milestone: 10.1
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description (last modified by ken@…)

Using

cmake -DCMAKE_INSTALL_PREFIX=/usr         \
      -DCMAKE_BUILD_TYPE=Release          \
      -DCFGDIR=/etc                       \
      -DENABLE_LTO=ON                     \
      -DDOCDIR=/usr/share/doc//usr/share/doc/icewm-2.0.0  \
      ..

fails with

Make Error at src/CMakeLists.txt:188 (message):
  IMLIB2 selected but Imlib2 dev files not found.  There is a choice to be
  made between two image loaders.

   Either 'yimage_gdk' must be enabled by -DCONFIG_GDK_PIXBUF_XLIB=on,
   or 'imlib2' must be enabled by -DCONFIG_IMLIB2=on,
   or else 'yximage' must be enabled by -DCONFIG_LIBPNG=on.
   The latter requires -DCONFIG_XPM=on, while -DCONFIG_LIBJPEG=on is recommended.
   Support SVG format for Imlib2 or GdkPixbuf with -DCONFIG_LIBRSVG=on.
    Cursor support requires either -DCONFIG_XPM=on or -DCONFIG_IMLIB2=on.



-- Configuring incomplete, errors occurred!

Oh for the days when we just used configure!

Looks as if there are a lot of optional deps now, and at least some of them now need to be specified with defines.

Since we are using gdk_pixbuf_xlib, I'll test it with added

-DCONFIG_GDK_PIXBUF_XLIB=on -DCONFIG_XPM=on and for my own build -DCONFIG_LIBRSVG=on -DCONFIG_LIBPNG=on -DCONFIG_JPEG=on

Change History (10)

comment:1 by ken@…, 7 months ago

Owner: changed from blfs-book to ken@…
Status: newassigned

comment:2 by Bruce Dubbs, 7 months ago

Description: modified (diff)

comment:3 by Bruce Dubbs, 7 months ago

Use 'cmake -L .' to see all the options. It's the equivalent of './configure --help'

CFGDIR:STRING=/usr/local/etc/icewm
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
CONFIG_DEFAULT_THEME:STRING=default/default.theme
CONFIG_EXTERNAL_TRAY:BOOL=OFF
CONFIG_GDK_PIXBUF_XLIB:BOOL=OFF
CONFIG_I18N:BOOL=ON
CONFIG_IMLIB2:BOOL=ON
CONFIG_LIBICONV:FILEPATH=CONFIG_LIBICONV-NOTFOUND
CONFIG_LIBJPEG:BOOL=OFF
CONFIG_LIBPNG:BOOL=OFF
CONFIG_LIBRSVG:BOOL=OFF
CONFIG_SESSION:BOOL=ON
CONFIG_UNICODE_SET:STRING=
CONFIG_XPM:BOOL=ON
CONFIG_XRANDR:BOOL=ON
DATADIR:STRING=/usr/local/share
DOCDIR:STRING=/usr/local/share/doc/icewm
ENABLE_LOGEVENTS:BOOL=OFF
ENABLE_LTO:BOOL=OFF
ENABLE_NLS:BOOL=ON
ICEHELPIDX:STRING=/usr/local/share/doc/icewm/icewm.html
LIBDIR:STRING=/usr/local/share/icewm
LOCDIR:STRING=/usr/local/share/locale
SED_EXECUTABLE:FILEPATH=/bin/sed
XTERMCMD:STRING=xterm

comment:4 by ken@…, 7 months ago

Description: modified (diff)

In fact, src/CMakeLists.txt defaults IMLIB2 and XPM to on.

In the very distant past, old imlib1 was used (google found an old hint for icewm), but for years we have used gdk. I see no reason for imlib2 to now be recommended.

comment:5 by ken@…, 7 months ago

Description: modified (diff)

/me swears loudly at trac and attempts to reinstate Bruce's change to the description.

comment:6 by Tim Tassonis, 7 months ago

Compile works for me only with:

      -DCONFIG_GDK_PIXBUF_XLIB=ON \
      -DCONFIG_IMLIB2=OFF \


CONFIG_GDK_PIXBUF_XLIB does not turn off CONFIG_IMLIB2 by itself and will still give an error.

Is it ok if I update the page accordingly? I'm on 10.0 up until here, now!

comment:7 by Tim Tassonis, 7 months ago

Resolution: fixed
Status: assignedclosed

Fixed in revision 24079

comment:8 by ken@…, 7 months ago

I would have preferred to review this (in particular, comparing whether cmake is upstream's preferred option, and reviewing whether other options for graphics should at least be mentioned). But it is stuck behind the autoreconf stuff (which seemed more urgent, hardly anyone uses icewm regularly), and now behind firefox-78.6.1.

in reply to:  8 comment:9 by Tim Tassonis, 7 months ago

Sorry about that, I just ran into this problem, saw the ticket that only concerns the actual breakage of the current instructions, found the fix and then thought: well this ticket, per its scope, can be closed. I will in future however wait a bit longer for replies about if should do it. 5 minutes is maybe a bit too little...

comment:10 by Bruce Dubbs, 7 months ago

Tim, look first to see if the ticket is assigned to someone. If so, just ask first.

Last edited 7 months ago by Bruce Dubbs (previous) (diff)
Note: See TracTickets for help on using tickets.