#14437 closed enhancement (fixed)
icewm-2.0.0 fails to configure with the book's commands:
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 10.1 |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by ) ¶
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 , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 4 years ago
Description: | modified (diff) |
---|
comment:3 by , 4 years ago
comment:4 by , 4 years 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 , 4 years ago
Description: | modified (diff) |
---|
/me swears loudly at trac and attempts to reinstate Bruce's change to the description.
comment:6 by , 4 years 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!
follow-up: 9 comment:8 by , 4 years 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.
comment:9 by , 4 years 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 , 4 years ago
Tim, look first to see if the ticket is assigned to someone. If so, just ask first.
Use 'cmake -L .' to see all the options. It's the equivalent of './configure --help'