![]() Registered Member ![]()
|
Hi there,
I recently made a guide for developing Krita with MSYS2 on Windows! The Goals:
But there are some things missing/incomplete/not working:
|
![]() Registered Member ![]()
|
Gonna bump this thread as it seems relevant, and it's for development purpose, but I have issues with this method.
I got as far as to QtCreator, so I'm having these issues -
So, there doesn't seem to be a good solution to this issue. I know ECM is ExtraCMake, but I'm not sure how to get it into MSYS2 development environment. |
![]() KDE Developer ![]()
|
_Why_ don't you follow the instructions (https://phabricator.kde.org/source/krit ... /README.md)? _Why_ are you trying to use msys2? Your problem has _nothing_ to do with Krita development yet. You're still at the "learn how cmake works" stage. There is also nothing special about building Krita from Qt Creator on Windows; setting that up is like setting up any cmake based project on Windows, so learn about that first.
|
![]() Registered Member ![]()
|
Tried that too, but also has complications. This is what I got. Got farther with the other instruction, but it didn't work. Well, at least I finally got the path part correctly, but it seem that it's not working well.
cmake ..\krita\3rdparty -DEXTERNALS_DOWNLOAD_DIR=/SoftwareDEV/d -DINSTALL_ROOT=/SoftwareDEV/i -G "MinGW Makefiles" -DSUBMAKE_JOBS=6 CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeMinGWFindMake.cmake:12 (message): sh.exe was found in your PATH, here: C:/Program Files/Git/usr/bin/sh.exe For MinGW make to work correctly sh.exe must NOT be in your path. Run cmake from a shell that does not have sh.exe in your PATH. If you want to use a UNIX shell, then use MSYS Makefiles. Call Stack (most recent call first): CMakeLists.txt:1 (project) 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. 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. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! |
![]() Registered Member ![]()
|
That happens if you install Git for Windows and chose to add all the msys2 tools to the system PATH, which is a bad idea 99% of the time. Remove that folder from the PATH. There is a build script in build-tools/windows that sets up its own PATH and does all the build steps for you. You can try to use that but that'll require a bit experimentation as I am too lazy to properly document it. |
![]() Registered Member ![]()
|
I gotten past that part, but bad news What now? :
--- D:\SoftwareDEV\build> cmake ..\krita -G "MinGW Makefiles" -DBoost_DEBUG=OFF -DBOOST_INCLUDEDIR=c:\dev\i\include -DBOOST_DEBUG=ON -DBOOST_ROOT=c:\dev\i -DBOOST_LIBRARYDIR=c:\dev\i\lib -DCMAKE_INSTALL_PREFIX=c:\dev\i -DCMAKE_PREFIX_PATH=c:\dev\i -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF -DHAVE_MEMORY_LEAK_TRACKER=OFF -Wno-dev -DDEFINE_NO_DEPRECATED=1 -- The C compiler identification is GNU 7.1.0 -- The CXX compiler identification is GNU 7.1.0 -- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev2/mingw64/bin/gcc.exe -- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev2/mingw64/bin/gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev2/mingw64/bin/g++.exe -- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev2/mingw64/bin/g++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using CMake version: 3.8.0-rc4 -- Krita version: 4.1.0-pre-alpha -- Release build: TRUE -- Found PythonInterp: C:/Users/User/AppData/Local/Programs/Python/Python36/python.exe (found suitable exact version "3.6.2") -- Found PythonLibs: C:/Users/User/AppData/Local/Programs/Python/Python36/libs/libpython36.a (found suitable exact version "3.6.2") -- Found PythonInterp: C:/Users/User/AppData/Local/Programs/Python/Python36/python.exe (found version "3.6.2") -- Python system site-packages directory: C:\Users\User\AppData\Local\Programs\Python\Python36\Lib\site-packages -- Found PythonLibrary: C:/Users/User/AppData/Local/Programs/Python/Python36/libs/libpython36.a (Required is at least version "3.6") -- Performing Test CAN_USE_PYTHON_LIBS -- Performing Test CAN_USE_PYTHON_LIBS - Success CMake Error at CMakeLists.txt:241 (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.19) 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. -- Configuring incomplete, errors occurred! See also "D:/SoftwareDEV/build/CMakeFiles/CMakeOutput.log". |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]