Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.6.1] CMake doesn't find casacore libraries on Debian #275

Open
olebole opened this issue Sep 1, 2024 · 2 comments
Open

[3.6.1] CMake doesn't find casacore libraries on Debian #275

olebole opened this issue Sep 1, 2024 · 2 comments

Comments

@olebole
Copy link

olebole commented Sep 1, 2024

I am currently working to upgrade the Debian package of python-casacore to 3.6.1, which comes with a new, CMake supported build system. The problem I found here is that on Debian,

  • the header files of casacore are placed in /usr/lib/include/casacore/
  • the library files (symlinks) are in /usr/lib/x86_64-linux-gnu/

See https://packages.debian.org/sid/amd64/casacore-dev/filelist for the list of files in the development package.

From

# Variables used by this module:
# CASACORE_ROOT_DIR - Casacore root directory.
# BLAS_LIBS - override BLAS library
# LAPACK_LIBS - override LAPACK library
one can only set a common variable for both includes and headers, which would not work here.

The wcslib and cfitsio packages however (which have a similar structure) are found; so maybe one could re-use a bit this way here as well. Also BLAS and LAPACK.

@tammojan
Copy link
Contributor

tammojan commented Sep 1, 2024

Thanks for packaging! The FindCasacore.cmake module indeed could use modernization. But somehow, for me this just works, on a fresh debian sid with your casacore-dev 3.6.1, with the master of python-casacore:

apt update
apt install -y casacore-dev
apt remove -y python3-casacore
apt install -y git build-essential vim python3-venv
cd
git clone https://github.com/casacore/python-casacore
cd python-casacore/
python3 -m venv venv
source venv/bin/activate
apt install -y wcslib-dev libcfitsio-dev libblas-dev liblapack-dev libboost-python-dev
pip install .

@gmloose
Copy link
Collaborator

gmloose commented Sep 2, 2024

I'm also a bit confused. If I follow the link https://packages.debian.org/sid/amd64/casacore-dev/filelist, I see a list of header files in /usr/include, right where you'd expect them, not in /usr/lib/include. If python-casacore fails to find casacore, it may help to set CMAKE_PREFIX_PATH to the install directory of casacore. That, however, should not be necessary if casacore is installed in one of the system default paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants