I used the following command to cmake:
cmake -H. -B/home/zty/Source/psi4-obj
-DCMAKE_INSTALL_PREFIX=/home/zty/Source/psi4-install
-DCMAKE_C_COMPILER=gcc
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_Fortran_COMPILER=gfortran
-DENABLE_dkh=ON
-DENABLE_PCMSolver=ON
-DPSI4_CXX_STANDARD=11
-DMAX_AM_ERI=7
-DCMAKE_BUILD_TYPE=Release /home/zty/Source/psi4
when I make, I got the error message as shown in the end. It compiles totally fine with out PCMSolver.
It seems that PCMSolver is successfully built but cannot be found by the psi4 building task.
Does anyone have the same problem and how do you get PCMSolver compiled and work?
Thanks!
Error message:
zty@DESKTOP-Q9UQML1:~/Source/psi4-obj$ make
[ 16%] Built target pybind11_external
[ 33%] Built target dkh_external
[ 50%] Built target libefp_external
[ 66%] Built target libint_external
[ 83%] Built target pcmsolver_external
[ 85%] Performing configure step for ‘psi4-core’
loading initial cache file /home/zty/Source/psi4-obj/psi4-core-prefix/tmp/psi4-core-cache-Release.cmake
– Using pybind11: /home/zty/Source/psi4-obj/stage/home/zty/Source/psi4-install/include (version 2.0.0 for Py2.7.12 and -std=c++11)
– Using Python 2.7: /home/zty/psi4conda/bin/python
– Disabled CheMPS2
– Using dkh: /home/zty/Source/psi4-obj/stage/home/zty/Source/psi4-install/lib/libdkh.a (version 1.2)
– Using libefp: /home/zty/Source/psi4-obj/stage/home/zty/Source/psi4-install/lib/libefp.a (version 1.3.0)
– Disabled erd
– Disabled gdma
– Using libint: /home/zty/Source/psi4-obj/stage/home/zty/Source/psi4-install/lib/libint.a (version 1.1.6)
CMake Error at /home/zty/software/cmake-3.6.1-Linux-x86_64/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find PCMSolver (missing: PCMSolver_LIBRARY PCMSolver_INCLUDE_DIR)
Call Stack (most recent call first):
/home/zty/software/cmake-3.6.1-Linux-x86_64/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/home/zty/Source/psi4/cmake/FindPCMSolver.cmake:81 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:77 (find_package)
– Configuring incomplete, errors occurred!
See also “/home/zty/Source/psi4-obj/psi4-core-prefix/src/psi4-core-build/CMakeFiles/CMakeOutput.log”.
make[2]: *** [psi4-core-prefix/src/psi4-core-stamp/psi4-core-configure] Error 1
make[1]: *** [CMakeFiles/psi4-core.dir/all] Error 2