bitpit icon indicating copy to clipboard operation
bitpit copied to clipboard

After building, headers aren't available

Open GarciaBarreiro opened this issue 1 year ago • 1 comments

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.

GarciaBarreiro avatar Feb 26 '24 20:02 GarciaBarreiro

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).

andrea-iob avatar Feb 27 '24 07:02 andrea-iob