LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-09-2007, 03:47 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Compiling splashy pkg-config problem


I am getting this error trying to configure splashy

Quote:
checking for splashy... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables splashy_CFLAGS
and splashy_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details.
If I try ./configure PKG_CONFIG=/usr/lib/pkgconfig

Quote:
checking for splashy... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables splashy_CFLAGS
and splashy_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details.
alan@LavanKossot:~/packages/splashy-0.3.5$
So where is the pkg-config script? There is a /usr/lib/pkgconfig directory full of *.pc files.
 
Old 09-09-2007, 04:16 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Hm, I built splashy on my Slackware 12.0 last week, and did not see this error.
What you do need is - directfb >= 0.9.22 (but I saw you built 1.0.0 already), glib2, freetype and all of those with static libraries (my freetype package has this and I can upload a modified glib2 package with SlackBuild and static libs if you want).
You need to build a static binary of splashy so that it can be used inside a initrd (if you want that).

Eric
 
Old 09-09-2007, 04:59 AM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
I have just gone into my Slackware 12 installation and it configured fine.
It did not make because of

Quote:
gcc: /usr/lib/libfreetype.a: No such file or directory
gcc: /usr/lib/libglib-2.0.a: No such file or directory
So presumably I need to sort out glib2 and freetype there (though I thought I had them installed)

Anyway I am still using Slackware 11 as my working distro and would like to get it sorted there. It seems that there is a file /usr/bin/pkg-config which I have in 12 but not in 11. Is it possible that pkgconfig needs upgrading?

BTW I edited your directfb.slackbuild

Quote:
./configure --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
--enable-fbdev \
--enable-shared \
--enable-static \
--enable-zlib \
--enable-video4linux2 \
--disable-sysfs \
--disable-vnc \
--disable-debug \
--with-gfxdrivers=nvidia\
--disable-maintainer-mode \
--disable-fast-install \
--without-tools \
--program-prefix="" \
--program-suffix="" \
--build=$ARCH-slackware-linux \
2>&1 | tee $OUTPUT/configure-${PRGNAM}.log

Last edited by arubin; 09-09-2007 at 05:01 AM.
 
Old 09-09-2007, 05:28 AM   #4
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
It turns out that I did not have pkg-config installed on 11. I cannot understand why. Anyway it is there now and I have libglib to sort out

Last edited by arubin; 09-09-2007 at 05:36 AM.
 
Old 09-09-2007, 05:41 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
I am wondering if this is more trouble than it is worth. I have glib2-2-10.3 - presumably the original slackware 11 package. Do I have to replace this with a different glib2? Does this have any downside?
 
Old 09-09-2007, 06:23 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You will have to recompile glib2 and freetype, and recompile directfb, to generate static libraries (*.a files).
This does not harm your Slackware installation at all. Pat does not inlude static libraries because they mean additional MB's on the CD and on your hard disk, and Slackware uses dynamic libraries wherever possible to save space (and RAM!).
Programs that operate in an initrd and in the early stages of boot often are statically compiled because you can never be sure that all the libraries in /usr/lib are already available to the program (for instance if /usr is on a separate partition and not yet mounted).

Eric
 
Old 09-09-2007, 07:01 AM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Well in that case I would appreciate your glib2 slackpackage.

Can I assume that I do not need to recompile directfb if I did it using your slackbuild?

Here's a funny thing. When I downloaded your slackbuild files by right-clicking and 'Save as' in Firefox the slack-desc file was saved as slack-desc.htm which broke the build. I had to rename the file.
 
Old 09-09-2007, 08:27 AM   #8
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Actually I do not think I need your package. I have edited Pat's package to compile with static libraries.
 
Old 09-09-2007, 10:12 AM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Well I have two penguins at boot as I should but I am not sure if this means that splashy is working

Last edited by arubin; 09-09-2007 at 10:21 AM.
 
Old 09-09-2007, 10:26 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You will have to add commands for splashy to show anything during boot-up.
You will need to edit rc.S and rc.M at least to show the initial splash screen and to add progress indicators.
If you want a bootsplash very early in the boot you will have to add commands to an initrd as well, as well as add the splashy binary into the initrd image.

There is another thread from last week which describes the process if I remember correctly.

Eric
 
Old 09-09-2007, 10:36 AM   #11
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Well I do not think I even have it configured yet.

Quote:
root@LavanKossot:/home/alan/packages/splashy-0.3.5# splashy test
Splashy ERROR: Cannot read XML File <</etc/splashy/config.xml>>. Exiting...
Splashy ERROR: Error occured while starting Splashy
Make sure that you can read Splashy's configuration file
There is no /etc/splashy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE 9.1: compiling probs using pkg-config bitpicker Linux - Distributions 3 10-29-2004 05:38 AM
PKG config problem ? fatum Linux - Software 2 10-03-2004 06:52 PM
pkg-config problem pasalacqua128 Linux - Software 1 06-02-2004 07:31 AM
pkg-config problem melinda_sayang Slackware 2 02-28-2004 08:56 AM
compiling pkg-config-0.15.0 pawn-o-matic Linux - General 0 12-24-2003 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration