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

How to build krita on Mac OS X?

Tags: None
(comma "," separated)
asaren
Registered Member
Posts
2
Karma
0

How to build krita on Mac OS X?

Wed Sep 06, 2017 12:41 pm
How do I install Krita on Mac OS X?
I tried to install kwindowsystem, but it doesn't work.
The following error occured.
Other dependencies are already installed.

*************************
[ 6%] Built target ext_extra_cmake_modules
[ 6%] Performing configure step for 'ext_karchive'
--

CMake Warning at /Users/user/Desktop/krita/i/share/ECM/modules/ECMQueryQmake.cmake:22 (message):
Failed call: qmake-qt5 -query "QT_INSTALL_PREFIX"
Call Stack (most recent call first):
/Users/user/Desktop/krita/i/share/ECM/kde-modules/KDEInstallDirs.cmake:431 (query_qmake)
CMakeLists.txt:13 (include)

CMake Error at /Users/user/Desktop/krita/i/share/ECM/modules/ECMQueryQmake.cmake:23 (message):
QMake call failed: No such file or directory
Call Stack (most recent call first):
/Users/user/Desktop/krita/i/share/ECM/kde-modules/KDEInstallDirs.cmake:431 (query_qmake)
CMakeLists.txt:13 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/user/Desktop/krita/b/ext_frameworks/ext_karchive-prefix/src/ext_karchive-build/CMakeFiles/CMakeOutput.log".
make[3]: *** [ext_frameworks/ext_karchive-prefix/src/ext_karchive-stamp/ext_karchive-configure] Error 1
make[2]: *** [ext_frameworks/CMakeFiles/ext_karchive.dir/all] Error 2
make[1]: *** [ext_frameworks/CMakeFiles/ext_kwindowsystem.dir/rule] Error 2
make: *** [ext_kwindowsystem] Error 2
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: How to build krita on Mac OS X?

Wed Sep 06, 2017 12:58 pm
That sounds like cmake cannot find qmake, so try to add /Users/user/Desktop/krita/i/bin to the path.
asaren
Registered Member
Posts
2
Karma
0

Re: How to build krita on Mac OS X?

Sat Sep 09, 2017 4:14 am
boudewijn wrote:That sounds like cmake cannot find qmake, so try to add /Users/user/Desktop/krita/i/bin to the path.


Thank you for your advice !
I checked qmake. Then I found contention between qmake which I installed and Qt creater.
So I uninstalled Qt creater and it worked well !
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: How to build krita on Mac OS X?

Sat Sep 09, 2017 6:04 am
If you want to work on Krita, you probably want to have Qt Creator back, but if you make sure the right qmake is first in the path, or pass -DQT_QMAKE_EXECUTABLE=/path/to/the/right/qmake to the cmake command, cmake won't be confused.
Cradmon
Registered Member
Posts
1
Karma
0

Re: How to build krita on Mac OS X?

Thu Sep 14, 2017 11:57 pm
I just tried to build krita on mac recently and came across the same problem.
Here's the quick temporary solution that solved it for me:
If ext_qt was installed correctly, you should have a file:
Code: Select all
.../i/bin/qmake

Go to this directory and create a copy named "qmake-qt5":
Code: Select all
cp qmake qmake-qt5

Now return to your .../b/ directory and retry building the dependency:
Code: Select all
cmake --build . --config RelWithDebInfo --target ext_kwindowsystem

It should build.

Extra details to help fix the issue:
Looking at the file (that was throwing the error):
Code: Select all
 .../i/share/ECM/modules/ECMQueryQmake.cmake

It seems that it is looking for a file with the name: "qmake-qt5".

When I installed the qt dependency following the readme.md in the 3rdparty folder, and checked for qmake in .../i/bin/, it was called: "qmake".

This looked like a naming issue may be the problem, so I created a copy of "qmake" and called it "qmake-qt5". Both residing in the .../i/bin/ directory.

After this, running the build code in the docs:
Code: Select all
cmake --build . --config RelWithDebInfo --target ext_kwindowsystem

Seemed to work.

I don't know how difficult it would be to change this name, or whether it would impact other OS's, as I'm not that familiar with cmake. But I'll leave this as a temporary solution.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]