paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] compilation with archlinux


From: Felix Ruess
Subject: Re: [Paparazzi-devel] compilation with archlinux
Date: Thu, 19 Mar 2015 12:08:31 +0100

Hi,

can you check if the lib is found by ocaml?
ocamlfind query -l glibivy

In latest master (since v5.5_devel-351-gd0ec9d7) you don't have to rename Http_client again, see: https://github.com/paparazzi/paparazzi/issues/1133

Cheers, Felix

On Thu, Mar 19, 2015 at 12:17 AM, freak <address@hidden> wrote:
hello


i try to compile paparazzi but i have an error with make

GENERATE /home/xxxxx/paparazzi/paparazzi/var/include/messages.h
Fatal error: cannot load shared library dllglibivy-ocaml
Reason: dllglibivy-ocaml.so: cannot open shared object file: No such file or
directory
Makefile:181 : la recette pour la cible
« /home/xxxx/paparazzi/paparazzi/var/include/messages.h » a échouée
make: *** [/home/xxxxx/paparazzi/paparazzi/var/include/messages.h] Erreur 2


the file is in this path : /usr/lib/ocaml/glibivy/dllglibivy-ocaml.so




i modified this file :
nano ./sw/lib/ocaml/http.ml

replacing
open Http_client
with
open Nethttp_client

i compiled labelgtk in 2.16 version

sudo pacman -Syu ocaml-xml-light ocamlnet lablgtk2-2.16.0  pkg-config
ivy-c-svn ivy-ocaml-svn
mkdir paparazzi
cd paparazzi
git clone https://github.com/paparazzi/paparazzi.git
cd paparazzi/
git checkout v5.4
git checkout master
make


here are my PKGBUILD files for ivy-c and ivy-ocaml

[code]pkgname=ivy-ocaml-svn
pkgver=0
pkgrel=1
pkgdesc="ivy-ocaml Library"
arch=('i686' 'x86_64')
url="" href="http://www.eei.cena.fr/products/ivy/download/source.html" target="_blank">http://www.eei.cena.fr/products/ivy/download/source.html"
license=('GPL3')
depends=('tcl' 'tk' 'ivy-c-svn' 'ocaml-findlib')
makedepends=('cmake' 'subversion')
source=()

_DESTDIR=$(ocamlfind printconf destdir)
_LDCONF=$(ocamlfind printconf ldconf)

_svntrunk='https://svn.tls.cena.fr/svn/ivy/ivy-ocaml/trunk'

prepare() {
  cd "${srcdir}"

  svn co $_svntrunk
  cd "${srcdir}/trunk"

   sed \
      -e "s|ocamlfind remove|ocamlfind remove -destdir $pkgdir/$_DESTDIR
-ldconf $pkgdir$_LDCONF|g" \
      -e "s|ocamlfind install|ocamlfind install -destdir $pkgdir/$_DESTDIR
-ldconf $pkgdir$_LDCONF|g" \
      -i Makefile

}

build() {
  cd "${srcdir}/trunk"
  make -j1
}

package() {
   mkdir -p $pkgdir$_DESTDIR
   touch $pkgdir$_DESTDIR/ld.conf

  cd "${srcdir}/trunk"
  make DESTDIR="${pkgdir}/usr" install

  rm $pkgdir$_DESTDIR/ld.conf
}[/code]

ivy-c-svn

[code]pkgname=ivy-c-svn
pkgver=3.9.2
pkgrel=1
pkgdesc="ivy-c Library"
arch=('i686' 'x86_64')
url="" href="http://www.eei.cena.fr/products/ivy/download/source.html" target="_blank">http://www.eei.cena.fr/products/ivy/download/source.html"
license=('GPL3')
depends=('tcl')
conflicts=('ivy-svn')
makedepends=('cmake')

_svntrunk='https://svn.tls.cena.fr/svn/ivy/ivy-c/trunk'


prepare() {


        cd "${srcdir}"

        svn co $_svntrunk
        cd "${srcdir}/trunk/src"

        sed -i 's|lib$(PERHAPS64)|lib|' Makefile
        sed -i 's|mkdirhier|mkdir -p|g' Makefile

}

build() {

        cd "${srcdir}/trunk/src"
  make PREFIX="/usr/include/Ivy/"
}

package() {
  cd "${srcdir}/trunk/src"
  make PREFIX="/usr" DESTDIR="${pkgdir}" install
}
[/code]




--
View this message in context: http://lists.paparazziuav.org/compilation-with-archlinux-tp16887.html
Sent from the paparazzi-devel mailing list archive at Nabble.com.

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]