[SOLVED] fluxbox menu does not accept png icons

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: fluxbox menu does not accept png icons

Post by jsfarinet »

I followed exactly your advice and all went fine. Only: the imlib2 option remains deactivated. I did not see any advice in the readme how to do that. Frankly, i thought if the Imlib2 library is installed fluxbox automatically would be compiled *WITH* that option ... (?)
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: fluxbox menu does not accept png icons

Post by jsfarinet »

Update: I got the tarball from here: http://sourceforge.net/projects/fluxbox ... z/download installed it by doing

Code: Select all

./configure --enable-imlib2 \
make
sudo make install
And all is fine now :D :D
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: [SOLVED] fluxbox menu does not accept png icons

Post by gapan »

No, it isn't. You didn't follow my advice to create a package and you now have stray files in your system that you can't even identify. That's a recipe for disaster. You may find yourself facing unexpected behavior down the line and you won't be able to troubleshoot it at all.

If you're lucky enough the fluxbox Makefile includes an uninstall rule. So run "make uninstall" from that same directory (with superuser rights). If it doesn't, the only way to properly remove it is to reinstall the whole distribution.

You should have edited the slackbuild file and added the --enable-imlib2 option in there.
Image
Image
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: [SOLVED] fluxbox menu does not accept png icons

Post by jsfarinet »

gapan wrote:No, it isn't. You didn't follow my advice to create a package and you now have stray files in your system that you can't even identify. That's a recipe for disaster. You may find yourself facing unexpected behavior down the line and you won't be able to troubleshoot it at all.

If you're lucky enough the fluxbox Makefile includes an uninstall rule. So run "make uninstall" from that same directory (with superuser rights). If it doesn't, the only way to properly remove it is to reinstall the whole distribution.

You should have edited the slackbuild file and added the --enable-imlib2 option in there.
Ok. I see. But where and how i could set that option in the 'fakeroot ./fluxbox.SlackBuild' line?? Initially i did exactly what you taught me to do, but first there was that bug in imlib2, corrected now, and then fluxbox compiled without imlib2 support ...
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: [SOLVED] fluxbox menu does not accept png icons

Post by gapan »

Edit the fluxbox.SlackBuild file itself.
Image
Image
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: [SOLVED] fluxbox menu does not accept png icons

Post by jsfarinet »

I had done that. May be i did it wrong?

In fluxbox.SlackBuild:

Code: Select all

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --mandir=/usr/man \
  --docdir=/usr/doc/fluxbox-$VERSION \
  --enable-imlib2 \       #  <== This line was added by me
  --enable-xinerama \
  --enable-shape \
  --enable-slit \
  --enable-nls \
  --enable-timed-cache \
  --build=$ARCH-slackware-linux
I have all the process in the xterm buffer and looked there for imlib2. This is what i found:

Code: Select all

config.status: executing depfiles commands
configure: WARNING: unrecognized options: --enable-timed-cache

        fluxbox version 1.3.5 configured successfully.

Features:
         XFT IMLIB2 XINERAMA SHAPE RANDR
But even after restarting fluxbox no png icons and the command 'fluxbox -info' still says:

Code: Select all

[~]$ fluxbox -info
Fluxbox Version: 1.3.5
GIT Revision: this_is_tar_ball_build
Kompiliert am: Feb 14 2013 16:17:54
Compiler: GCC
Compilerversion: 4.7.2

Standardeinstellungen/-Dateien
: 
      menu: /usr/share/fluxbox/menu
     style: /usr/share/fluxbox/styles/bloe
      keys: /usr/share/fluxbox/keys
      init: /usr/share/fluxbox/init
       nls: /usr/share/fluxbox/nls

Einkompilierte Optionen (- => deaktiviert): 
BIDI
-DEBUG
EWMH
-IMLIB2
NLS
REMEMBER
RENDER
SHAPE
SLIT
SYSTEMTRAY
TOOLBAR
RANDR1.2
XFT
XINERAMA
XMB
XPM
It must have to do with the slackware build, since with the other tarball it worked ...
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: [SOLVED] fluxbox menu does not accept png icons

Post by gapan »

Did you actually install the package you created with the slackbuild?
Image
Image
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: [SOLVED] fluxbox menu does not accept png icons

Post by jsfarinet »

Yes.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: [SOLVED] fluxbox menu does not accept png icons

Post by gapan »

That's not possible then. If you built the package with imlib2 support and replaced the original package with the new, then you would have imlib2 support.
Image
Image
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: [SOLVED] fluxbox menu does not accept png icons

Post by jsfarinet »

Hmm . . :ugeek: . So eventually somewhere in the middle i committed a mistake, but where.

Preliminary:
I corrected the bug in imlib2-config as advised by laprijns here http://forum.salixos.org/viewtopic.php? ... 269#p36660

1. step: I downloaded the files from the site you pointed me to. This one:
http://download.salixos.org/i486/slackw ... p/fluxbox/

2. step: I edited manually fluxbox.SlackBuild to enable imlib2 too

Code: Select all

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --mandir=/usr/man \
  --docdir=/usr/doc/fluxbox-$VERSION \
  --enable-imlib2 \       #  <== This line was added by me
  --enable-xinerama \
  --enable-shape \
  --enable-slit \
  --enable-nls \
  --enable-timed-cache \
  --build=$ARCH-slackware-linux
3. step: I executed

Code: Select all

chmod +x fluxbox.SlackBuild
4. step: I executed

Code: Select all

fakeroot ./fluxbox.SlackBuild
Result: The build goes thru but imlib2 support is missing. Where is the error?

PS. I also tried - like with the *NOT* slackbuild tarball to do

Code: Select all

fakeroot ./fluxbox.SlackBuild --enable-imlib2 \
which did not break the built so far but which also was to *NO* extent regard the imlib2 option. Since the imlib2 support worked with the non slackbuild tarball i'd presume my system is ok for supporting it. The error must be elsewhere, in the middle of the road, if you can say so ... (?)
Last edited by jsfarinet on 3. Dec 2014, 09:16, edited 1 time in total.
Post Reply