This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Help with compiling from source on windows

Tags: None
(comma "," separated)
gaspacho
Registered Member
Posts
3
Karma
0
Hello, I am a CS student learning how to compile from source on Windows 10. I have followed the instructions provided for compiling krita
as closely as I could. However I have run into some errors that I do not know how to solve. When compiling some of the dependencies I continually
get the following error:

CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

This error does not make any sense, as I did set the CMAKE_MAKE_PROGRAM to the appropriate location and some of the dependencies compile without issue.
Due to the many failure in compilation I am unable to proceed with compiling from source. I am including the Batch file that I used with all of the commands
I have entered exactly as I have entered them.

https://pastebin.com/0RuJt5wT

In regards to make being unable to locate the necessary MinGW files. I had to enter the exact location of my make.exe in MinGW by changing
the value of "CMAKE_MAKE_PROGRAM" in the the "CMakeCache.txt" that appeared in the corresponding locations. If there is anything
that I need to post that can help please let me know.

My PC specs:

Brand: MSI
Processor: i7-7820HK @ 2.9GHz
System type: x64
RAM: 16 GB
linkadrifting
Registered Member
Posts
1
Karma
0
Got here from IRC channel.
First I assume you are trying to build krita on a Windows PC since the MinGW and stuff.
You should first learn something about the CMake system. CMake is a build system that build binaries and executables and gives you a whole runnable project.
it is a middleware that needs to manipulate other underlying toolchain tools (in your case, toolchain tools like './configure' 'make', 'gcc', in the MinGW).
It seems that you did not configure the CMAKE_MAKE_PROGRAM variable (which usually should point to your make.exe in the MinGW directory) in the CMakeLists.txt file, and CMake don't know which maketool to use.
Or maybe you should take a look at this : https://stackoverflow.com/questions/451 ... o-mingw-ma
And since you are a CS student, I recommend you to take a look into GNU Autotools (Makefile and make and ./configure and etc.) and CMake (understanding CMakeLists.txt). They will help you to know more about software building system.
gaspacho
Registered Member
Posts
3
Karma
0
Thank-you linkadrifting for responding so quickly but it appears I had an entirely different problem, I had the wrong MinGW files to begin with. Now that I have compiled the dependencies another problem emerged, I have obtained this error upon attempting to compile Krita itself:
---------------------------------------------------------------------------------------------------------------------------
CMake Error at CMakeLists.txt:253 (find_package):
By not providing "FindECM.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ECM", but
CMake did not find one.

Could not find a package configuration file provided by "ECM" (requested
version 5.22) with any of the following names:

ECMConfig.cmake
ecm-config.cmake

Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
to a directory containing one of the above files. If "ECM" provides a
separate development package or SDK, be sure it has been installed.
---------------------------------------------------------------------------------------------------------------------------
I do not even know where to begin with this error. Am I still missing several dependencies and or files?
User avatar
tymond
KDE Developer
Posts
240
Karma
5
ECM (extra cmake modules) on Windows comes from ext_frameworks (one of the dependencies you're supposed to build). Make sure you install your dependencies in the same place you install Krita.
gaspacho
Registered Member
Posts
3
Karma
0
I re-compiled my dependencies, turns out many of them are not being compiled due to the following error:

[ 50%] Performing patch step for 'ext_giflib'
'myptch' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make.exe[3]: *** [ext_giflib\CMakeFiles\ext_giflib.dir\build.make:102: ext_giflib/ext_giflib-prefix/src/ext_giflib-stamp/ext_giflib-patch] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:2054: ext_giflib/CMakeFiles/ext_giflib.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:2061: ext_giflib/CMakeFiles/ext_giflib.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:728: ext_giflib] Error 2

I am trying to get to the bottom of this, I feel like there is something else that I need to compile this program that I am missing


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]