You are not logged in.

#1 2006-10-10 09:32:45

andieh
Member
From: Frankfurt
Registered: 2004-02-11
Posts: 40
Website

SystemC, a library for c++

Hello!

I need this library, but didnt get it to work. Maybe some of you did this before.

you can get systemc here: http://systemc.org/. the newest version didnt work with gcc > 4.0, so you need a patch, which you can get here: http://icodes.offis.de/downloads/index.php. here is my PKGBUILD

pkgname=SystemC
pkgver=2.1.v1
pkgdesc="SystemC Library for C++"
url="http://systemc.org/"
depends=()
source=(systemc-$pkgver.tgz patch_systemc-$pkgver-gcc4)
md5sums=()

build()
{
    cd $startdir/src/systemc-$pkgver/
    patch -p0 < $startdir/src/patch_systemc-2.1.v1-gcc4
    mkdir objdir
    cd objdir
    export CXX=g++

    ../configure --prefix=/opt/systemc-2.1
    make || return 1
    make install DESTDIR=$startdir/pkg

    mkdir -p $startdir/pkg/usr/{lib,include}

    cp -r $startdir/src/systemc-$pkgver/objdir/include/* $startdir/pkg/usr/inclu
de
    cp -r $startdir/src/systemc-$pkgver/objdir/lib-linux/* $startdir/pkg/usr/lib
}

hmm, as i told you, it doesnt work. thank you for your help

andieh

Offline

Board footer

Powered by FluxBB