LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Splashy with Slackware - Can it be done? (https://www.linuxquestions.org/questions/slackware-14/splashy-with-slackware-can-it-be-done-574090/)

orbit 08-02-2007 12:02 AM

Splashy with Slackware - Can it be done?
 
Hello all,

Using Slackware 12, I am trying to compile Splashy to enable a startup bootsplash.

I have installed dependancies including; directfb, glib2, libmagic and libjpeg.

Using the Installation instructions, I have extracted and tried multiple configurations including:
./configure
./configure --prefix=/
./configure --enable-static (as suggested Here)

.. on each separate try, the configure seems to go with no problems.

Then I run make and I am presented with the following errors:

This is the end portion of the make error:
Quote:

/usr/lib/libdirect.so -lz -ldl -lpthread -lm /usr/lib/libglib-2.0.a
gcc: /usr/lib/directfb-1.0-0/systems/libdirectfb_fbdev.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/wm/libdirectfbwm_default.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/interfaces/IDirectFBFont/libidirectfbfont_ft2.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/interfaces/IDirectFBFont/libidirectfbfont_default.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/inputdrivers/libdirectfb_keyboard.o: No such file or directory
gcc: /usr/lib/libfreetype.a: No such file or directory
gcc: /usr/lib/libglib-2.0.a: No such file or directory
make[2]: *** [splashy] Error 1
make[2]: Leaving directory `/build/splashy-0.3.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/splashy-0.3.5'
make: *** [all] Error 2
root@Slackware12:/build/splashy-0.3.5#

I have no idea as to what I am supposed to do to overcome this make issue? Google'ing the error has not rendered any Slackware based solutions.

As this looks to be a VERY useful program (it does not require a kernel patch to activate Bootsplash, so therefore much better to get splash working for beginners), I was wondering if some of the linux experts on the forum would like to flex their gray-matter at it :)

The source file can be downloaded HERE if anyone would like to try it to see if they can get it going.

I'll look forward to all responses.

Cheers

Orbit

erklaerbaer 08-02-2007 05:02 AM

you need directfb



www.slackware.com/~alien/slackbuilds/directfb

Lockywolf 08-05-2007 11:52 AM

He said, that he installed directfb.

I have the same problem.

I tried using directfb from slacky.it and tried to compile it myself...

Nothing works. I get the same errors.

erklaerbaer 08-05-2007 12:41 PM

grep for DFBHACK in the Makefiles. maybe you have to adjust/remove/replace with
Code:

$(shell directfb-config  --libs --input=keyboard --imageprovider=png --font=ft2,default)
it

adriv 08-05-2007 05:13 PM

Here's a -sort of- howto, but it's in Italian: http://www.slacky.eu/forum/viewtopic.php?t=20035
In Konqueror you can translate it to English. ;)

orbit 08-05-2007 07:41 PM

Hi All,

erklaerbaer: I was using directfb-1.0.0, but I have removed it and tried the directfb-0.9.4 slackbuild that you suggested.
After building and installpkg'ing the directfb-0.9.4 slackbuild package, I ./configured splashy again .. now it is saying that directfb in not installed?
(I can see directfb-0.9.24-i486-2 in the package list of Kpackage)?
What's going on?

I have now removed directfb-0.9.24-i486-2 and re-installed directfb-1.0.0-i686-1as again.


Then I tried adriv's suggestion from the italian page:
./configure --prefix=/boot/initrd-tree --enable-static
... seemed to go ok.

Then I ran make and got:
Quote:

splashy-0.3.5/src/.libs/libsplashycnf.a /usr/lib/libdirectfb.so /usr/lib/libfusion.so /usr/lib/libdirect.so -lz -ldl -lpthread -lm /usr/lib/libglib-2.0.a
gcc: /usr/lib/directfb-1.0-0/systems/libdirectfb_fbdev.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/wm/libdirectfbwm_default.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/interfaces/IDirectFBFont/libidirectfbfont_ft2.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/interfaces/IDirectFBFont/libidirectfbfont_default.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.o: No such file or directory
gcc: /usr/lib/directfb-1.0-0/inputdrivers/libdirectfb_keyboard.o: No such file or directory
gcc: /usr/lib/libfreetype.a: No such file or directory
gcc: /usr/lib/libglib-2.0.a: No such file or directory
make[2]: *** [splashy] Error 1
make[2]: Leaving directory `/build/splashy-0.3.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/splashy-0.3.5'
make: *** [all] Error 2
root@Slackware12:/build/splashy-0.3.5#
Hmmm ... that's not good.


So, following on from your suggestion:
Quote:

grep for DFBHACK in the Makefiles. maybe you have to adjust/remove/replace with
Code:
$(shell directfb-config --libs --input=keyboard --imageprovider=png --font=ft2,default)
I found that exact line already in-place on line 259 in the /splashy-0.3.5/src/Makefile ... so how do you suggest I change/edit/delete it?

Has anyone been able to make a Slackware12 splashy.tgz package successfully? How was it done? ... or alternatively ... could you link it so that I can try it.

I'm pretty well lost on this program, so I'll appreciate any assistance or advice in getting this program to compile.

Thanks for any advice (or a link to a working file ;) ).

Cheers

Orbit

bmfan 08-05-2007 11:08 PM

you will need to rebuild a couple stock slackware packages, glib2 and freetype. use the standard buildscripts in the source directory. for glib2 add '--enable-static' in the configure options. build and upgradepkg. then for freetype edit the buildscript and comment out or just remove this line

# Can't imagine a lot of use for this:
rm -f $PKG/usr/lib/*.a

build and upgrade freetype, then build and install directfb use these options
./configure \
--prefix=/usr \
--enable-static \
--enable-sysfs=no \

now splashy will build successfully...

orbit 08-06-2007 01:47 AM

Hi bmfan,

First up, Thanks for your advice. It's very appreciated.

I have followed your steps and so far:-

Rebuilding glib2: I added '--enable-static' to the configure section of the slackbuild. then ran the slackbuild .. then installed the new package.

Freetype source file: I commented out the line 'rm -f $PKG/usr/lib/*.a' then built it and installed the new package.

all good so far ...


DirectFB-1.0.0: this one is giving me problems.

What i have done so far ...
1. In the configure section of the slackbuild, I added the lines so that it looks like this -
Quote:

cd DirectFB-$VERSION
./configure --prefix=/usr \
--mandir=/usr/man \
--enable-x11 \
--with-gfxdrivers=all \
--with-inputdrivers=all \
--enable-zlib
--enable-static \
--enable-sysfs=no \
make
make install DESTDIR=$PKG
It failed...(this is the end portion of the error) :-

Quote:

./directfb.SlackBuild: line 51: --enable-static: command not found
make: *** No rule to make target `install'. Stop.
cat: /build/dfb/slack-desc: No such file or directory
cp: cannot stat `slack-desc': No such file or directory
gzip: /tmp/package-DirectFB/usr/man/*/*: No such file or directory
./directfb.SlackBuild: line 72: requiredbuilder: command not found

Slackware package maker, version 2.1.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n


Creating tar file directfb-1.0.0-i686-1as.tar...

./
tar-1.13: directfb-1.0.0-i686-1as.tar is the archive; not dumped
install/
install/slack-desc
usr/
usr/doc/
usr/doc/directfb-1.0.0/
usr/doc/directfb-1.0.0/directfb.SlackBuild
usr/doc/directfb-1.0.0/TODO
usr/doc/directfb-1.0.0/README
usr/doc/directfb-1.0.0/NEWS
usr/doc/directfb-1.0.0/ChangeLog
usr/doc/directfb-1.0.0/COPYING
usr/doc/directfb-1.0.0/AUTHORS
WARNING: zero length file ./install/slack-desc

Gzipping directfb-1.0.0-i686-1as.tar...

Renaming directfb-1.0.0-i686-1as.tar.gz to directfb-1.0.0-i686-1as.tgz...

Moving directfb-1.0.0-i686-1as.tgz to /build/dfb...

Package creation complete.

root@Slackware12:/build/dfb#


What I did then was to manually extract the sourcefile (tar -xvzf...) and run this command in the terminal:-

Quote:

root@Slackware12:/build/dfb/DirectFB-1.0.0# ./configure --prefix=/usr --enable-static --enable-sysfs=no

The configure seemed to go ok, but on running make, I came up with this error:-

Quote:

gcc -shared .libs/vncinput.o -Wl,--rpath -Wl,/build/dfb/DirectFB-1.0.0/src/.libs -L/usr/lib /usr/lib/libvncserver.so /usr/lib/libvncclient.so -lnsl -lz -ljpeg ../../src/.libs/libdirectfb.so -ldl -lpthread -Wl,-soname -Wl,libdirectfb_vncinput.so -o .libs/libdirectfb_vncinput.so
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in /usr/lib/libz.so
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libdirectfb_vncinput.la] Error 1
make[3]: Leaving directory `/build/dfb/DirectFB-1.0.0/systems/vnc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/dfb/DirectFB-1.0.0/systems'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/dfb/DirectFB-1.0.0'
make: *** [all] Error 2
root@Slackware12:/build/dfb/DirectFB-1.0.0#
This is a bit of a problem as I can't progress to trying to compile splashy, until this directfb issue is sorted.

Would you know what I can do to resolve this make error with directfb?

Cheers

Orbit

bmfan 08-06-2007 02:18 AM

it looks like there is something wrong with your directfb build script, if you pm me your email address i can send you the directfb package i built, it has the build script in it. so you can either use the package as is, or build your own from the build script. as far as that error you got when you tried to compile it. I don't really know, it compiled and installed fine for me.

bmfan 08-06-2007 02:21 AM

here is the error in your directfb build script

cd DirectFB-$VERSION
./configure --prefix=/usr \
--mandir=/usr/man \
--enable-x11 \
--with-gfxdrivers=all \
--with-inputdrivers=all \
--enable-zlib <------- you need to have a \ there
--enable-static \
--enable-sysfs=no \
make
make install DESTDIR=$PKG

gnashley 08-06-2007 02:31 AM

--enable-sysfs=no \ <<-- you also need to remove this last backslash

orbit 08-07-2007 12:39 AM

Thanks for your help bmfan and gnashley.

bmfam, did you get my email?

cheers

Orbit

Lockywolf 08-07-2007 12:59 AM

how to set it up?

splashy creates some sys-v scripts, and when i boot, it doesn't seem to be running

i added the line "append=splash quiet"

perry 08-07-2007 01:48 AM

Looks really nice...
 
I often imagined a really cool bootup screen for Slack/Linux but been too busy with other things. Would be nice to know how this thing is running such that we could really make a slick looking bootup screen.

Let us know if it works out!

- perry

ps.
translation of slacky.eu
Code:

Splashy works, the problem is that a po set offs late therefore
would want to try to make to start it from the initrd. then I have
read from some part that initrd the other is not that a small
system gnu/linux in miniatura loaded in the ram totally independent
from the rest therefore I have thought something of the sort

1. I compile splashy with -- prefix=/boot/initrd-tree -- enable-static so as to to have all cio that the topic serves to start splashy in initrd the

2 adds in the script init of initrd-tree the commando in order to start splashy

3 with the being followed loaded sintassi
  /boot/initrd-tree/sbin/splashy_config - s nometema
  answers to me saying to me that the topic is loaded

4 correctly gives the commando mkinitrd - or initrd.gz

5 I add in lilo and I give it lilo - v pear tree does not work a mace

Very Happy Very Happy Very Happy someone can gives some clarification to me?
thanks to all


Lockywolf 08-07-2007 02:07 AM

mm....

i don't need it in initrd...

i install splashy from slacky.eu

splashy test - works

then i add append="splash quiet" in lilo.conf and reinstall lilo

nothing happens during the boot

then i read the manual once again and tried to execute /etc/rc.d/init.d/splashy start
but it says

"Could not read file /lib/lsb/init-functions. Please install lsb-base"

lsb-base is a debian package. there is nothing like it in slackware


All times are GMT -5. The time now is 01:31 AM.