Closed sadiogo closed 12 months ago
Did you install libzeep and libcifpp? If so, cmake should pick up the library automatically. If you only built it, well, then you are out of luck.
Setting variables is not the way to go.
You can opt to install all of these in some other location than /usr/local. E.g. I use $HOME/.local
Then, when configuring alphafill, you may have to specify where to look for these if it doesn't find the libraries itself. You can do that by using the CMAKE_PREFIX_PATH variable.
I am pretty sure I installed both. I looked at the history and found I installed libcifpp in $HOME/.local but can't figure out libzeep (I think I was using a secondary terminal). I didn't find it in usr/local nor $HOME/.local, so maybe I didn't install it. Where would I look in the cmake files to find the installation folder that was defined by default?
The default for an installation of user software in Un*x (and thus linux) is /usr/local. But if you installed libzeep there, cmake should have found it.
You can reinstall libzeep in $HOME/.local. But then you need to configure tools using it with:
cmake -S . -B build -DCMAKE_PREFIX_PATH=$HOME/.local
Which should not be needed when you install the tool itself there as well, like in:
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=$HOME/.local
cmake --build build
cmake --install build
Found it! I checked the cmake_install.cmake file in the build folder and found set(CMAKE_INSTALL_PREFIX "/usr/local")
for libzeep. Since I didn't find libzeep in usr/local/lib/, I can conclude I didn't install it afterall. I will fix this and retry installin alphafill.
I installed libzeep with cmake -S . -B build -DCMAKE_INSTALL_PREFIX=$HOME/.local
and then built alphafill with cmake -S . -B build --DCMAKE_PREFIX_PATH=$HOME/.local\;$HOME/vcpkg/packages/date_x64-linux/share/date
to allow finding the libzeep and libcifpp libraries in $HOME/.local
and the date library in the vcpkg package folder.
Alphafill is now working and the real work begins! Thank you very much for helping. You can close this issue.
I managed to overcome the error by creating the share and libcifpp folders. Now I am getting the following error:
I overcame this error by creating the cifppTargets.cmake file (left the content in blank). Now i get:
It should be noted that I had to add the following lines in the CMAKELists.txt files to get the build to this stage:
Any suggestions on how to proceed?
Originally posted by @sadiogo in https://github.com/PDB-REDO/alphafill/issues/35#issuecomment-1733730810