Ultimaker / cura-build-environment

CMake project to build dependencies for Cura
GNU Affero General Public License v3.0
24 stars 55 forks source link

protobuf/3.17.1 missing CMakeLists.txt #149

Closed daniel-starke closed 2 years ago

daniel-starke commented 2 years ago

conanfile.py tries to copy CMakeLists.txt as referenced in conanmanifest.txt but fails to find this file. This error is silently ignored. Later Conan fails to build protobuf as CMake fails to find a CMakeLists.txt in the source root directory.

Please add the missing CMakeLists.txt file.

See error log below:

protobuf/3.17.1: Copying sources to build folder
protobuf/3.17.1: Building your package in %USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed
protobuf/3.17.1: Generator cmake created conanbuildinfo.cmake
protobuf/3.17.1: Aggregating env generators
protobuf/3.17.1: Calling build()

----Running------
> cd %USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed\build_subfolder && cmake -G "Ninja" -DCMAKE_BUILD
_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="9.2" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS
="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="%USERPROFILE%\.conan\data\protobuf\3.
17.1\_\_\package\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin"
 -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE
_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DCMAKE_INSTALL_CMAKEDIR="lib/cmake/protobuf" -Dprotobuf_WITH_ZLIB="True" -Dprotobuf_BUILD_TESTS
="False" -Dprotobuf_BUILD_PROTOC_BINARIES="True" -Dprotobuf_BUILD_LIBPROTOC="True" -Dprotobuf_DISABLE_RTTI="False" -Wno-dev %USERPROFILE%\.conan\da
ta\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed
-----------------
Logging command output to file '%USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed\conan_run.log'
CMake Warning:
  Ignoring extra path from command line:

   "%USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed"

CMake Error: The source directory "%USERPROFILE%/.conan/data/protobuf/3.17.1/_/_/build/1a43f313ac495e7abd118f57ddd87ba8e41aa5ed" does not appear to
 contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
protobuf/3.17.1:
protobuf/3.17.1: WARN: Package binary is corrupted, removing: 1a43f313ac495e7abd118f57ddd87ba8e41aa5ed
protobuf/3.17.1: WARN: Build folder is dirty, removing it: %USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41a
a5ed
protobuf/3.17.1: ERROR: Package '1a43f313ac495e7abd118f57ddd87ba8e41aa5ed' build failed
protobuf/3.17.1: WARN: Build folder %USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed
ERROR: protobuf/3.17.1: Error in build() method, line 213
        cmake = self._configure_cmake()
while calling '_configure_cmake', line 130
        cmake.configure(build_folder=self._build_subfolder)
        ConanException: Error 1 while executing cd %USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed\bui
ld_subfolder && cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="9.2" -DCONA
N_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PR
EFIX="%USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\package\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_
SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="includ
e" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DCMAKE_INSTALL_CMAKEDIR="lib/cmake/protobuf" -Dpr
otobuf_WITH_ZLIB="True" -Dprotobuf_BUILD_TESTS="False" -Dprotobuf_BUILD_PROTOC_BINARIES="True" -Dprotobuf_BUILD_LIBPROTOC="True" -Dprotobuf_DISABLE_RT
TI="False" -Wno-dev %USERPROFILE%\.conan\data\protobuf\3.17.1\_\_\build\1a43f313ac495e7abd118f57ddd87ba8e41aa5ed
CMake Error at build/conan.cmake:540 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  build/conan.cmake:877 (old_conan_cmake_install)
  cmake/conan.cmake:15 (conan_cmake_run)
  CMakeLists.txt:17 (include)
daniel-starke commented 2 years ago

See also https://github.com/conan-io/conan-center-index/blob/master/recipes/protobuf/all/CMakeLists.txt