Enrico Zini
2024-12-20 18:40:01 UTC
Hello,
I'm trying to make a Debian package out of
https://gitlab.eumetsat.int/open-source/data-tailor-plugins/fcidecomp
I managed to build it this way:
$ cd src/fcidecomp
$ # Build and install fcicomp-jpegls first
$ rm -r build/fcicomp-jpegls/
$ gen/build.sh fcicomp-jpegls/ release
$ # fcicomp-H5Zjpegls seems to need fcicomp-jpegls installed in order to build
$ (cd build/fcicomp-jpegls && make install DESTDIR=/tmp/fcicomp-jpegls)
$ rm -r build/fcicomp-H5Zjpegls/
$ CMAKE_PREFIX_PATH=/tmp/fcicomp-jpegls/usr/local/share/cmake/fcicomp_jpegls/ gen/build.sh fcicomp-H5Zjpegls/ release
$ (cd build/fcicomp-H5Zjpegls/ && make install DESTDIR=/tmp/fcicomp-H5Zjpegls)
(gen/build.sh is a wrapper that calls cmake, and can be replaced by a
cmake invocation)
the second one, and probably there are better ways to do it.
Questions:
* Is there a way to tell cmake to build the two things together, or to
point at the build dir of the first one to build the second one,
without installing it first?
* Is there a clean way to tell debhelper that cmake and make need to be
called multiple times?
* Is there a better way to approach all this?
Thanks!
Enrico
I'm trying to make a Debian package out of
https://gitlab.eumetsat.int/open-source/data-tailor-plugins/fcidecomp
I managed to build it this way:
$ cd src/fcidecomp
$ # Build and install fcicomp-jpegls first
$ rm -r build/fcicomp-jpegls/
$ gen/build.sh fcicomp-jpegls/ release
$ # fcicomp-H5Zjpegls seems to need fcicomp-jpegls installed in order to build
$ (cd build/fcicomp-jpegls && make install DESTDIR=/tmp/fcicomp-jpegls)
$ rm -r build/fcicomp-H5Zjpegls/
$ CMAKE_PREFIX_PATH=/tmp/fcicomp-jpegls/usr/local/share/cmake/fcicomp_jpegls/ gen/build.sh fcicomp-H5Zjpegls/ release
$ (cd build/fcicomp-H5Zjpegls/ && make install DESTDIR=/tmp/fcicomp-H5Zjpegls)
(gen/build.sh is a wrapper that calls cmake, and can be replaced by a
cmake invocation)
From here to a Debian package the way doesn't seem to be
straightforward, as I can't install the first component before buildingthe second one, and probably there are better ways to do it.
Questions:
* Is there a way to tell cmake to build the two things together, or to
point at the build dir of the first one to build the second one,
without installing it first?
* Is there a clean way to tell debhelper that cmake and make need to be
called multiple times?
* Is there a better way to approach all this?
Thanks!
Enrico
--
GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini <***@enricozini.org>
GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini <***@enricozini.org>