ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I ran
cmake ../krita \
-DCMAKE_INSTALL_PREFIX=$HOME/kritadev/install \
-DCMAKE_BUILD_TYPE=Debug \
-DKRITA_DEVS=ON
and I get
Code:
-- Found KF5Config: /usr/lib/x86_64-linux-gnu/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.74.0")
-- Could NOT find KF5WidgetsAddons (missing: KF5WidgetsAddons_DIR)
-- Could NOT find KF5WidgetsAddons: found neither KF5WidgetsAddonsConfig.cmake nor kf5widgetsaddons-config.cmake
-- Could NOT find KF5Completion (missing: KF5Completion_DIR)
-- Could NOT find KF5Completion: found neither KF5CompletionConfig.cmake nor kf5completion-config.cmake
-- Found KF5CoreAddons: /usr/lib/x86_64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.74.0")
If you ar running any version of *Buntu (or Manjaro, or Fedora, or Debian, or ...) then Krita i in oneof your repositories and you should not be compiling it from source. Why can you not using your package manager? What version//release of what distribution are you running?
Have you installed all the build dependencies listed there? Like libkf5widgetsaddons-dev and libkf5completion-dev?
Even if you're building from source, it's much easier to rebuild from your distro sources than build from scratch. You do know about apt-get source and apt-get build-dep, don't you?
If you are running any version of *Buntu (or Manjaro, or Fedora, or Debian, or ...) then Krita is in one of your repositories and you should not be compiling it from source. Why can you not using your package manager? What version//release of what distribution are you running?
I am running Kubuntu 20.10. Yes, Krita is in Discover.
But the goal here is to see how to compile Krita and to modify something in Krita and to figure out where to place the executable.
I am running Kubuntu 20.10. Yes, Krita is in Discover.
But the goal here is to see how to compile Krita and to modify something in Krita and to figure out where to place the executable.
In general, the build process install has install locations specified. You can change them, and if you code enough to modify the package you should already know hoe to find and change the install base.
Best of luck, I think with the install of the prerequisites for the build you are on the right track.
It says
jake@john-desktop90:~$ sudo apt-get build-dep krita
[sudo] password for jake:
Reading package lists... Done
E: Unable to find a source package for krita
-- Krita version: 5.0.0-prealpha
-- Branding selected: Next
-- Python system site-packages directory: /usr/lib/python3/dist-packages
Installing in /home/jake/kritadev/install. Run /home/jake/kritadev/build/prefix.sh to set the environment for krita.
-- Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindPNG.cmake:146 (find_package_handle_standard_args)
CMakeLists.txt:620 (find_package)
but I already ran
sudo apt install zlib1g-dev
sudo apt install libpng-dev
... Then there shouldn't be any missing 'build prerequisites' :
Code:
sudo apt update
sudo apt build-dep krita
cd krita/ && mkdir build && cd build/
cmake ..
.. and the cmake configuration is perfect, no errors : Ubuntu 20.04 .
EDIT : Ubuntu 20.04
$ make
[100%] Linking CXX executable krita
[100%] Built target krita
EDIT 1:
Krita 5.0.0-prealpha https://github.com/KDE/krita configures OK with cmake in Ubuntu 20.10 :
--Build files have been written to ~/tmp/krita/build
EDIT 2:
$ sudo apt install libmypaint-dev (One of the optional build packages for 5.0.0).
Your cmake options : $ cmake -DCMAKE_BUILD_TYPE=Debug -DKRITA_DEVS=ON ../
Also OK. --Build files have been written to ~/tmp/krita/build
... Then there shouldn't be any missing 'build prerequisites' :
Code:
sudo apt update
sudo apt build-dep krita
cd krita/ && mkdir build && cd build/
cmake ..
.. and the cmake configuration is perfect, no errors : Ubuntu 20.04 .
EDIT : Ubuntu 20.04
$ make
[100%] Linking CXX executable krita
[100%] Built target krita
EDIT 1:
Krita 5.0.0-prealpha https://github.com/KDE/krita configures OK with cmake in Ubuntu 20.10 :
--Build files have been written to ~/tmp/krita/build
EDIT 2:
$ sudo apt install libmypaint-dev (One of the optional build packages for 5.0.0).
Your cmake options : $ cmake -DCMAKE_BUILD_TYPE=Debug -DKRITA_DEVS=ON ../
Also OK. --Build files have been written to ~/tmp/krita/build
suppose to exist in that sources.list file or do I have to type them in?
I don't have those lines. Mine looks like
Code:
# deb cdrom:[Kubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022)]/ groovy main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ groovy main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ groovy multiverse restricted universe main
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ groovy-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ groovy-updates multiverse restricted universe main
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ groovy universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ groovy universe
deb http://ca.archive.ubuntu.com/ubuntu/ groovy-updates universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ groovy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ groovy multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ groovy multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ groovy-updates multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ groovy-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ groovy-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ groovy-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu groovy partner
# deb-src http://archive.canonical.com/ubuntu groovy partner
deb http://security.ubuntu.com/ubuntu groovy-security main restricted
deb-src http://security.ubuntu.com/ubuntu groovy-security multiverse restricted universe main
deb http://security.ubuntu.com/ubuntu groovy-security universe
# deb-src http://security.ubuntu.com/ubuntu groovy-security universe
deb http://security.ubuntu.com/ubuntu groovy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu groovy-security multiverse
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.