optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
115 stars 34 forks source link

After building, headers aren't available #450

Open GarciaBarreiro opened 4 months ago

GarciaBarreiro commented 4 months ago

The install instructions at INSTALL.md say that, after building the project with make, headers will be available at bitpit/include/ and a static library at bitpit/build/lib/. That is not the case.

After building, at the build/ directory there's a libbitpit_MPI_D.so file and the entire project structure is replicated, but inside each of the subdirectories I only find CMake files, as you can see from part of the build/ directory structure, with either the include/ directory or the lib/ one nowhere to be found:

├── libbitpit_MPI_D.so -> libbitpit_MPI_D.so.1
├── libbitpit_MPI_D.so.1 -> libbitpit_MPI_D.so.1.10.0
├── libbitpit_MPI_D.so.1.10.0
├── Makefile
├── src
│   ├── CG
│   │   ├── CMakeFiles
│   │   ├── cmake_install.cmake
│   │   ├── CTestTestfile.cmake
│   │   └── Makefile
│   ├── CMakeFiles
│   │   ├── clean-library.dir
│   │   ├── CMakeDirectoryInformation.cmake
│   │   ├── library.dir
│   │   └── progress.marks
│   ├── cmake_install.cmake
│   ├── common
│   │   ├── bitpit.hpp
│   │   ├── CMakeFiles
│   │   ├── cmake_install.cmake
│   │   ├── CTestTestfile.cmake
│   │   ├── Makefile
│   │   ├── version.hpp
│   │   └── version_verbose.hpp

I don't think this is the intended behaviour, but at no step of the installation I've read any error about not being able to create the include/ and lib/ directories.

andrea-iob commented 4 months ago

The documentation seems to be out of date. In the build directory, the headers are scattered throughout the module directories. I suggest you install bitpit using the command "make install" (you can configure the installation directory using the CMake variable CMAKE_INSTALL_PREFIX).