You are not logged in.

#1 2008-10-10 08:16:56

Denacke
Member
Registered: 2008-04-09
Posts: 106

[Solved] OpenVRML

Hello,

This package is on AUR, I tried editting the PKGBUILD to work for the latest version, but I'm failing sad

I'm getting errors on libboost_thread
Snippet of configure:

checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for boost_thread library... no
configure: error: libboost_thread not found

I managed to get it through the configure stage by symbolically linking /usr/lib/libboost_thread_mt.so to /usr/lib/libboost_thread.so
I prefer to find a better way so others can use the PKGBUILD too, is there some configure flag I can use to make this work?

Last edited by Denacke (2008-10-10 12:49:19)

Offline

#2 2008-10-10 12:28:51

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 618
Website

Re: [Solved] OpenVRML

Here's an updated PKGBUILD; it could be missing a few dependencies though.

The "export BOOST_LIB_SUFFIX=-mt" line just before the ./configure takes care of the libboost_thread issue.

# Maintainer: Eric Belanger <belanger@astro.umontreal.ca>

pkgname=openvrml
pkgver=0.17.9
pkgrel=1
pkgdesc="A program and library to read and display VRML97 files"
arch=('i686' 'x86_64')
url="http://www.openvrml.org/"
license=('LGPL')
depends=('sdl' 'libjpeg')
makedepends=('boost')
options=(!libtool)
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('e9feb42997dcba7aa64f460c33e7f986')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  export BOOST_LIB_SUFFIX=-mt
  ./configure --prefix=/usr --disable-script-node-javascript --disable-mozilla-plugin 
  make || return 1
  make DESTDIR="$pkgdir/" install

  mv "$pkgdir/usr/include/openvrml/openvrml/"* "$pkgdir/usr/include/openvrml"
  rmdir "$pkgdir/usr/include/openvrml/openvrml"
  rm -rf "$pkgdir/usr/lib/mozilla" "$pkgdir/usr/libexec" "$pkgdir/usr/share/idl"
}

Offline

#3 2008-10-10 12:49:07

Denacke
Member
Registered: 2008-04-09
Posts: 106

Re: [Solved] OpenVRML

Thank you very much!

It's working now smile

Offline

Board footer

Powered by FluxBB