Error building Client

Hello guys,

I’m followed this tutorial: https://doc.owncloud.org/desktop/2.6/building.html#windows-development-build-mingw

But when running the command:

cmake -G “MinGW Makefiles” …/client

I get this error:

– Could NOT find ECM (missing: ECM_DIR)

ECM (required version >= 5.50.0), Extra CMake Modules., https://projects.kde.org/projects/kdesupport/extra-cmake-modules

CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/FeatureSummary.cmake:457 (message):
feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
run.
Call Stack (most recent call first):
CMakeLists.txt:9 (feature_summary)

– Configuring incomplete, errors occurred!
See also “C:/client-build/CMakeFiles/CMakeOutput.log”.

I’m using Windows 10 Home x64.

Thanks!!

@furlanetti better use the Craft procedure on the same page. It’s in much better shape and actively maintained.

1 Like

@michaelstingl thanks man! I’ve tryed this one and still not working. I got this error:

ninja: build stopped: subcommand failed.
e[33mAction: compile for owncloud/owncloud-client:2.7 FAILEDe[0m
*** Craft all failed: owncloud/owncloud-client after 3 minutes 52 seconds ***
e[31mfatal error: package owncloud/owncloud-client all failede[0m
Craft stopped with out completing [‘owncloud/owncloud-client’]

when looking in the ‘\build\owncloud\owncloud-client\work\build\CMakeFiles\CMakeError.txt’, it return this:

Determining if the GLIBC exist failed with the following output:
Change Dir: C:/CraftRoot/build/_/41bb79b4/build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/CraftRoot/dev-utils/bin/ninja.exe cmTC_ae76e && [1/2] Building C object CMakeFiles\cmTC_ae76e.dir\CheckSymbolExists.c.obj

e[31mFAILED: e[0mCMakeFiles/cmTC_ae76e.dir/CheckSymbolExists.c.obj

C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1425~1.286\bin\Hostx64\x64\cl.exe /nologo /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_ae76e.dir\CheckSymbolExists.c.obj /FdCMakeFiles\cmTC_ae76e.dir\ /FS -c CheckSymbolExists.c

Observação: incluindo arquivo: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdlib.h
Observação: incluindo arquivo: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h
Observação: incluindo arquivo: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\vcruntime.h
Observação: incluindo arquivo: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\sal.h
Observação: incluindo arquivo: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\concurrencysal.h
Observação: incluindo arquivo: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\vadefs.h
Observação: incluindo arquivo: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_malloc.h
Observação: incluindo arquivo: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_search.h
Observação: incluindo arquivo: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stddef.h
Observação: incluindo arquivo: C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_wstdlib.h
Observação: incluindo arquivo: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\limits.h
CheckSymbolExists.c(8): error C2065: ‘GLIBC’: identificador não declarado
ninja: build stopped: subcommand failed.

Any idea of what this could be??

@furlanetti search other users posts about fixing Craft errors?
https://central.owncloud.org/search?q=craft%20order%3Alatest

1 Like

@michaelstingl already tried this. I changed my CraftSettings.cfg to work with python27 and ninja option as false. But I stil got the same error.
I believe that its related to Microsoft visual studio 2019, but i dont know how to solve it.

Anyone has any idea how to solve this?