garrigue / lablgtk

LablGTK 2 and 3: an interface to the GIMP Tool Kit
https://garrigue.github.io/lablgtk
Other
89 stars 40 forks source link

--libdir and --with-libdir at configuration not taken into account #19

Closed treinen closed 5 years ago

treinen commented 5 years ago

The --libdir configuration option is not taken into account when doing a make install (I also tried --with-libdir). For instance:

 ./configure  --bindir=/usr/bin --with-libdir=/usr/lib/ocaml --libdir=/usr/lib/ocaml
[...]
make world
[...]
% DESTDIR=/home/treinen make install
make -C src install
make[1]: Entering directory '/home/treinen/projects/lablgtk/src'
mkdir -p "/home/treinen/usr/bin"
mkdir -p "/home/treinen/usr/local/lib/ocaml/4.05.0"
touch: cannot touch '/home/treinen/usr/lib/ocaml/ld.conf': No such file or directory
make[1]: *** [Makefile:382: findlib-install] Error 1
make[1]: Leaving directory '/home/treinen/projects/lablgtk/src'
make: *** [Makefile:5: install] Error 2

Note that the --bindir option has been taken into account, but not --libdir

garrigue commented 5 years ago

The default install procedure uses ocamlfind, so the libdir parameter doesn't make sense. Do not use it.

garrigue commented 5 years ago

To be more precise, there is an old-install target, which takes the --libdir parameter into account, and create the require directories. This may be more appropriate for what you are trying to do, but this doesn't use ocamlfind. Or is there a standard procedure to package libraries using ocamlfind?

treinen commented 5 years ago

well, I was only following the instructions. README says:

You may use "./configure --help" to check for the different configuration options.

And configure --help lists the --libdir and --with-libdir options. So I guess one should, when installing with findlib, instead use the environment variables explained in findlib.conf(5)?