alphafill icon indicating copy to clipboard operation
alphafill copied to clipboard

mxmlConfig.cmake error during the building process

Open ldx022 opened this issue 1 month ago • 2 comments

Hello! I was following the step-by-step instructions in the AlphaFill README to set up the environment for mrc, libzeep, libcifpp, libmcfp, data, etc., until I saw issue #54. However, when I tried to run the final step, I executed the following command in the build directory: cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/install -DCMAKE_BUILD_TYPE=Release -DBoost_ROOT=/home//software/boost-1.89.0/build/install/lib/cmake/Boost-1.89.0 -Dmcfp_DIR=/home//software/lib/libmcfp/build/install/lib/cmake/mcfp -Dcifpp_DIR=/home//software/lib/libcifpp/build/install/lib/cmake/cifpp -Dzeep_DIR=/home//software/lib/libzeep/build/install/lib/cmake/zeep At this point, I consistently encountered the following error:

-- The C compiler identification is GNU 13.4.0
-- The CXX compiler identification is GNU 13.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ldx/software/miniconda/envs/alphafill/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ldx/software/miniconda/envs/alphafill/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /home/ldx/software/lib/date/cmake/dateConfig.cmake:2 (include):
  include could not find requested file:

    /home/ldx/software/lib/date/cmake/dateTargets.cmake
Call Stack (most recent call first):
  /home/ldx/software/cmake3.31.1/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /home/ldx/software/lib/libzeep/build/install/lib/cmake/zeep/zeep-config.cmake:30 (find_dependency)
  CMakeLists.txt:141 (find_package)


CMake Error at /home/ldx/software/cmake3.31.1/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  By not providing "Findmxml.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "mxml", but
  CMake did not find one.

  Could not find a package configuration file provided by "mxml" with any of
  the following names:

    mxmlConfig.cmake
    mxml-config.cmake

  Add the installation prefix of "mxml" to CMAKE_PREFIX_PATH or set
  "mxml_DIR" to a directory containing one of the above files.  If "mxml"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /home/ldx/software/lib/libzeep/build/install/lib/cmake/zeep/zeep-config.cmake:31 (find_dependency)
  CMakeLists.txt:141 (find_package)


-- Configuring incomplete, errors occurred!

The issue seems to be related to mxml, but it appears that mxmlis not handled properly by CMake. When I saw issue #54, you mentioned:

"The current version of alphafill can be built without the need to install other libraries first. It will simply fetch whatever is needed and build it itself."

However, when I tried running the simplified command: cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/install -DCMAKE_BUILD_TYPE=Release The process gets stuck at:

-- The C compiler identification is GNU 13.4.0
-- The CXX compiler identification is GNU 13.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ldx/software/miniconda/envs/alphafill/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ldx/software/miniconda/envs/alphafill/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done

And there is no further progress. How should I resolve this?

ldx022 avatar Nov 24 '25 15:11 ldx022