LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Núcleo doesn't compile (Núcleo now compiled, but Metisse doesn't compile) (https://www.linuxquestions.org/questions/linux-software-2/n%FAcleo-doesn%27t-compile-n%FAcleo-now-compiled-but-metisse-doesn%27t-compile-796595/)

MTK358 03-23-2010 04:04 PM

I got the PKGBUILD for Núcleo's AUR package:

Code:

# Contributor: Tomasz Binasiewicz <tomasz.binasiewicz@gmail.com>
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=nucleo
pkgver=0.7.6
pkgrel=1
pkgdesc="Toolkit for exploring new uses of video and new human-computer interaction techniques"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.lri.fr/~roussel/projects/nucleo/"
depends=('libexif' 'gnutls' 'libgl' 'python')
optdepends=('ffmpeg' 'gd' 'qt' 'avahi')
options=(!libtool)
source=(http://insitu.lri.fr/metisse/download/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('175e601ec8555b9f463ae4f57e7b5570')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --with-x

  make || return 1
  make DESTDIR="$pkgdir" install
}

Funny that it doesn't even mention libpng!

knudfl 03-23-2010 05:25 PM

Googling .. Núcleo libpng14 ..
> > > about three hits.
Guess, nobody else ever tried to compile Nucleo with libpng14.

.....

MTK358 03-23-2010 07:31 PM

I wonder if there is a precompiled 64-bit Núcleo binary somewhere.

knudfl 03-24-2010 04:47 AM

Why don't you write a 'libpng12.pc' yourself ?
We are in the extreme simple and basic department here.
It's a ten liner text file.
Editing a copy of your libpng14.pc is also easy :
Edit and rename to libpng12.pc .
Here comes a libpng12.pc example ..
Code:

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
includedir=${prefix}/include/libpng12

Name: libpng
Description: Loads and saves PNG files
Version: 1.2.43
Libs: -L${libdir} -lpng12
Libs.private: -lz -lm
Cflags: -I${includedir}

Another easy thing is to make a binary package on a 64 bit
system, and mail it to you. The "nucleo-result-0.7.6.tar.bz2"
is 2.5 MB. But no guaranty, it works. Versions of ffmpeg,
etc. are critical.
.....

MTK358 03-24-2010 07:01 AM

I would have never suspected that it's a text file, I thought it was an exe.

And I should use /usr/lib, not /usr/lib64 on my 64-bit system, right?

Anyway, I will create the file, make an Arch pacgake from it called "libpng12pc", and install it.

MTK358 03-24-2010 07:30 AM

I made the package, but I must have done something wrong, because this happens:

Code:

$ pacman -Qs libpng
error: invalid name for database entry 'libpng12pc-1.2.40'
local/libpng 1.4.1-1
    A collection of routines used to create PNG format graphics files
local/libpng12 1.2.40-1
    A collection of routines used to create PNG format graphics files

And I can't remove either "libpng12pc" or "libpng12pc-1.2.40"! What should I do?

lupusarcanus 03-24-2010 07:39 AM

I'm a bit ate here, but I did find a rpm in 64-bit with a nice clear list of dependencies;
http://www.rpmfind.net/linux/RPM/man....0.x86_64.html
Then you can pick any of the nice tools in the AUR;
http://aur.archlinux.org/packages.ph...m&do_Search=Go
Or perhaps one of these;
Quote:

[andrew@mynetbook ~]$ pacman -Ss rpm
extra/rpmextract 1.0-3
Script to convert or extract RPM archives (contains rpm2cpio)
extra/rpmunpack 0-2
This program converts rpm archives to cpio archives for cpio or afio
community/checkinstall 1.6.2-1
spy for 'make install' and build rpm or deb
And install by source.
Or the DEB.
http://yaro.gdi.pl/deb/edgy/metisse_...rc4-1_i386.deb
Arch64 FAQ;
http://wiki.archlinux.org/index.php/Arch64_FAQ

Hope this helps you.

MTK358 03-24-2010 07:45 AM

1 Attachment(s)
Here's what I need to do:
  • How do I fix the problem in Post #36?
  • If using the RPM is a good idea, how do I convert is to pacman's pkg.tar.gz format?

EDIT: I attached a newer version of the .pkg.tar.gz file I made, I don't know if this one will confuse pacman the way the other one did. Please remove the ".txt" at the end before using. (And this is just for you to look inside and extract it, install it at your own risk (it might do what happened in post #36)!)

lupusarcanus 03-24-2010 08:02 AM

I got to get to school so i can't be as nice as I want to be, but;
http://www.google.com/search?hl=en&q...ed=0CCAQrQIwBA
There has to be some useful info somewhere in all those Arch forum threads

knudfl 03-24-2010 08:42 AM

Post # 36.

An entry in //pkgconfig/ must have suffix .pc to work.
The idea is to create : libpng12.pc
And then make a link by name : libpng.pc
I.e. : # ln -s libpng12.pc libpng.pc

P.S. : The attached file in post # 38 looks OK.
.....

MTK358 03-24-2010 09:36 AM

So I can just have libpng12.pc in my home dir and link libpng.so to it, and then link it back to libpng14.so when Núcleo and Metisse are compiled?

Still, I want to uninstall the faulty package I made. Every time I use pacman for whatever reason is shows the message I highlighted in bold:

Code:

[michael:~]$ pacman -Qs bash
error: invalid name for database entry 'libpng12pc-1.2.40'
local/bash 4.1.002-2 (base)
    The GNU Bourne Again shell

I tried "pacman -R libpng12pc-1.2.40" and it didn't remove it.

Note that the package I made that did this is not the one attached to post #36. The one attached to post #36 is a revised version that I thought will work.

lupusarcanus 03-24-2010 09:52 AM

Try;
Quote:

# pacman -Rsn packagename
Worth a shot.
What error does it produce?

MTK358 03-24-2010 10:15 AM

Code:

[root:michael]# pacman -R libpng12pc
error: invalid name for database entry 'libpng12pc-1.2.40'
libpng12pc not found, searching for group...
error: 'libpng12pc': not found in local db
[root:michael]# pacman -R libpng12pc-1.2.40
error: invalid name for database entry 'libpng12pc-1.2.40'
libpng12pc-1.2.40 not found, searching for group...
error: 'libpng12pc-1.2.40': not found in local db
[root:michael]# pacman -Rns libpng12pc
error: invalid name for database entry 'libpng12pc-1.2.40'
libpng12pc not found, searching for group...
error: 'libpng12pc': not found in local db
[root:michael]# pacman -Rns libpng12pc-1.2.40
error: invalid name for database entry 'libpng12pc-1.2.40'
libpng12pc-1.2.40 not found, searching for group...
error: 'libpng12pc-1.2.40': not found in local db
[root:michael]#

I don't think -R vs. -Rns could have made any difference, because -n means do not save files that are listed in .PKGINFO (which they are not), and -s means remove unneeded dependencies (the only one is libpng12, which is installed explicitly (not as a dependency), so it doesn't matter).

lupusarcanus 03-24-2010 11:23 AM

Have a look in /var/lib/pacman/
It is safe to delete everything but local, since those get regenerated after a pacman -Syy.
Don't delete local. Instead, refresh your DB and attempt to remove it once more.
If this fails, look in local for packagename and delete it out of there. Don't delete local!
(if applicable, I'm on a school PC, so I can't test it out on my netbook :()
http://bbs.archlinux.org/viewtopic.php?id=34494

Data above proven here:
http://bbs.archlinux.org/viewtopic.php?id=62968

Other important pacman files to look in:
Code:

Conf File : /etc/pacman.conf
Cache Dirs: /var/cache/pacman/pkg/ # this one may have something too, check it out
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log

This may help;
http://wiki.archlinux.org/index.php/Pacman

Hope this helps.
(And don't delete local!! Just the bad entry!! :p)
{Remember the IgnorePkg possibility too.}
{Have you seen this link yet: http://bbs.archlinux.org/viewtopic.php?id=46084 ?}

MTK358 03-24-2010 11:38 AM

I deleted the directory /var/lib/pacman/local/libpng12pc-1.2.40 and pacman works fine now.

I ran pacman -Syy and pacman -Sc afterwards.

Now back to the original topic...


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