Building OpenMesh with CMake on Windows, missing includes (VCICommon)

Hi! I've cloned OpenMesh git repo to my local. created a build directory under it. there I called following CMake command for release mode without applications) ``` cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_APPS=OFF ``` I'm getting following errors: ``` CMake Error at CMakeLists.txt:44 (include): include could not find requested file: VCICommon CMake Error at src/OpenMesh/Core/CMakeLists.txt:1 (include): include could not find requested file: VCICommon CMake Error at src/OpenMesh/Core/CMakeLists.txt:145 (vci_add_library): Unknown CMake command "vci_add_library". ``` Looks like it needs `vci_add_library` Cmake function that is defined in `VCICommon`. But I don't see VCICommon anywhere in the repo. From https://gitlab.vci.rwth-aachen.de:9000/search?search=VCICommon&nav_source=navbar&project_id=1&group_id=3&search_code=true&repository_ref=master as you can see, VCICommon is only included in the repo, not defined anywhere. Can you please tell me what I am doing wrong. Thanks!

Hi, You have to clone with - - recursive. Regards, Jan Möbius
Am 28.05.2022 um 18:28 schrieb ugurguney@gmail.com:
Hi! I've cloned OpenMesh git repo to my local. created a build directory under it. there I called following CMake command for release mode without applications)
``` cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_APPS=OFF ```
I'm getting following errors:
``` CMake Error at CMakeLists.txt:44 (include): include could not find requested file:
VCICommon
CMake Error at src/OpenMesh/Core/CMakeLists.txt:1 (include): include could not find requested file:
VCICommon
CMake Error at src/OpenMesh/Core/CMakeLists.txt:145 (vci_add_library): Unknown CMake command "vci_add_library". ```
Looks like it needs `vci_add_library` Cmake function that is defined in `VCICommon`. But I don't see VCICommon anywhere in the repo. From https://gitlab.vci.rwth-aachen.de:9000/search?search=VCICommon&nav_source=navbar&project_id=1&group_id=3&search_code=true&repository_ref=master as you can see, VCICommon is only included in the repo, not defined anywhere.
Can you please tell me what I am doing wrong. Thanks! _______________________________________________ OpenMesh mailing list -- openmesh@lists.rwth-aachen.de To unsubscribe send an email to openmesh-leave@lists.rwth-aachen.de https://lists.rwth-aachen.de/postorius/lists/openmesh.lists.rwth-aachen.de

Thank you! That worked! Leaving my notes below for posterity: The reason why I've missed recursive call was because I added the library to my project using git submodules via: ``` git submodule add https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/OpenMesh.git ``` After that I should have called the following git command ``` git submodule update --init --recursive ``` which brings the `cmake-library` dependency that has the missing CMake functions! Then I was able to prepare the build setup via ``` cmake .. -DBUILD_APPS=OFF ```` Then OpenMesh can be compiled via ``` cmake --build . ``` for a debug build, which generates `OpenMeshCored.lib` and `OpenMeshToolsd.lib` or via ``` cmake --build . --config Release ``` for a release build, which generates `OpenMeshCore.lib` and `OpenMeshTools.lib`. (These are significantly smaller).
participants (2)
-
Jan Möbius
-
ugurguney@gmail.com