I could not get this to install. Running in Hyperland. May be part of my issues. Ended up downloading source from github. Below is what I did to get it to install.
Download source for KXStitch
https://invent.kde.org/graphics/kxstitch
or
https://github.com/KDE/kxstitch
Modify build.sh to include full path to qt6paths. Don't know why this was needed. qt6paths is in my path, but this worked.
Change line 64 from:
cmake -DCMAKE_INSTALL_PREFIX=qtpaths --install-prefix .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE $WITH_PROFILE $SILENCE_DEPRECATED && make -j${THREADS} $VERBOSE && sudo make install
to:
cmake -DCMAKE_INSTALL_PREFIX=/usr/lib64/qt6/bin/qtpaths --install-prefix .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE $WITH_PROFILE $SILENCE_DEPRECATED && make -j${THREADS} $VERBOSE && sudo make install
Install extra-cmake-modules
sudo pacman -S extra-cmake-modules
Install KF5
sudo pacman -S kf5
Install Doxygen
sudo pacman -S doxygen
Install xdot
sudo pacman -S xdot
Remove "po" directory. Error-ed out when compiling non-English docs/manuals. Compiled and install after this. Doxygen and xdot were needed for for this. May not need to install them after all. Need real programmer to fix this.
Install symbol editor. Compiled with no issues. Assuming above steps took care of any issues it may have had.
Source for Symbol Editor
https://invent.kde.org/graphics/symboleditor
or
https://github.com/KDE/symboleditor
I seem to get the following error
-- Found SharedMimeInfo: /usr/bin/update-mime-database (found version "2.4")
CMake Error at doc/CMakeLists.txt:1 (KDOCTOOLS_CREATE_HANDBOOK):
Unknown CMake command "KDOCTOOLS_CREATE_HANDBOOK".
I am not to sure what to make of it?
I also got the error :Error installing kxstitch: /bin exists in filesystem (owned by filesystem).
As i'm a beginner in Linux, i thought PKGBUILD was the one in yay-git (yeah i'm beginner). I have Manjaro Xfce
So for people who are still new like me with little experience in Linux, here are the steps i did and it worked
1) command : git clone https://aur.archlinux.org/kxstitch.git
2) go to the folder kxstitch : cd kxstitch
3) there is the file PKGBUILD (the one from previous comment they talk about).
Edit the line :
make DESTDIR="${pkgdir}" install
to:
make DESTDIR="${pkgdir}/usr" install
(like others said before). Save
4) command : makepkg -si
5) push Enter to all if needed
6) installation is done
I confirm this error: Error installing kxstitch: /bin exists in filesystem (owned by filesystem).
Workaround helped in PKGBUILD: make DESTDIR="${pkgdir}/usr" install
@xeronia :
The workaround for conflict imagemagick / libmagick6 :
- uninstall inskape and libmagick6
- install kxstitch
- install inkscape (will also install libmagick6 as dependancy)
For me, this did work. And inskscape and kxstitch do work well beside each other.
I ran into a linker error that occurred because I had both imagemagick and libmagick6 installed:
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/FlossScheme.cpp.o: in function `FlossScheme::convert(QColor const&)':
FlossScheme.cpp:(.text+0x858): undefined reference to `Magick::ColorRGB::blue() const'
/usr/bin/ld: FlossScheme.cpp:(.text+0x867): undefined reference to `Magick::ColorRGB::green() const'
/usr/bin/ld: FlossScheme.cpp:(.text+0x87c): undefined reference to `Magick::ColorRGB::red() const'
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/MainWindow.cpp.o: in function `MainWindow::convertImage(QString const&)':
MainWindow.cpp:(.text+0xf8a2): undefined reference to `Magick::Image::columns() const'
/usr/bin/ld: MainWindow.cpp:(.text+0xf8b8): undefined reference to `Magick::Image::rows() const'
/usr/bin/ld: MainWindow.cpp:(.text+0xf8f6): undefined reference to `Magick::Image::alpha() const'
/usr/bin/ld: MainWindow.cpp:(.text+0xfc64): undefined reference to `Magick::ColorRGB::alpha() const'
/usr/bin/ld: MainWindow.cpp:(.text+0xfc8d): undefined reference to `Magick::ColorRGB::blue() const'
/usr/bin/ld: MainWindow.cpp:(.text+0xfc9e): undefined reference to `Magick::ColorRGB::green() const'
/usr/bin/ld: MainWindow.cpp:(.text+0xfcb3): undefined reference to `Magick::ColorRGB::red() const'
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/ImportImageDlg.cpp.o: in function `ImportImageDlg::calculateSizes()':
ImportImageDlg.cpp:(.text+0xf98): undefined reference to `Magick::Geometry::Geometry(unsigned long, unsigned long, long, long)'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0xfa3): undefined reference to `Magick::Geometry::percent(bool)'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0xfb1): undefined reference to `Magick::Geometry::aspect(bool)'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x102a): undefined reference to `Magick::Geometry::Geometry(unsigned long, unsigned long, long, long)'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x1071): undefined reference to `Magick::Geometry::Geometry(unsigned long, unsigned long, long, long)'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x108f): undefined reference to `Magick::Image::rows() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x109b): undefined reference to `Magick::Image::columns() const'
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/ImportImageDlg.cpp.o: in function `ImportImageDlg::renderPixmap()':
ImportImageDlg.cpp:(.text+0x262a): undefined reference to `Magick::Image::rows() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x2636): undefined reference to `Magick::Image::columns() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x288c): undefined reference to `Magick::Image::columns() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x289e): undefined reference to `Magick::Image::rows() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x29a6): undefined reference to `Magick::Image::alpha() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x2a65): undefined reference to `Magick::ColorRGB::alpha() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x2b05): undefined reference to `Magick::ColorRGB::blue() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x2b16): undefined reference to `Magick::ColorRGB::green() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x2b2c): undefined reference to `Magick::ColorRGB::red() const'
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/ImportImageDlg.cpp.o: in function `ImportImageDlg::ImportImageDlg(QWidget*, Magick::Image const&)':
ImportImageDlg.cpp:(.text+0x2f9b): undefined reference to `Magick::Image::rows() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x2fa7): undefined reference to `Magick::Image::columns() const'
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/ImportImageDlg.cpp.o: in function `ImportImageDlg::on_CropReset_clicked(bool)':
ImportImageDlg.cpp:(.text+0x3533): undefined reference to `Magick::Image::rows() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x353f): undefined reference to `Magick::Image::columns() const'
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/ImportImageDlg.cpp.o: in function `ImportImageDlg::imageCropped(QRectF const&)':
ImportImageDlg.cpp:(.text+0x35a4): undefined reference to `Magick::Image::columns() const'
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/ImportImageDlg.cpp.o: in function `ImportImageDlg::selectColor(QPoint const&)':
ImportImageDlg.cpp:(.text+0x36e0): undefined reference to `Magick::Image::rows() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x36ed): undefined reference to `Magick::Image::columns() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x37f3): undefined reference to `Magick::ColorRGB::blue() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x3801): undefined reference to `Magick::ColorRGB::green() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x3816): undefined reference to `Magick::ColorRGB::red() const'
/usr/bin/ld: CMakeFiles/kxstitch.dir/src/ImportImageDlg.cpp.o: in function `ImportImageDlg::on_CropEnabled_toggled(bool)':
ImportImageDlg.cpp:(.text+0x39dc): undefined reference to `Magick::Image::rows() const'
/usr/bin/ld: ImportImageDlg.cpp:(.text+0x39e8): undefined reference to `Magick::Image::columns() const'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/kxstitch.dir/build.make:1171: kxstitch] Error 1
make[1]: *** [CMakeFiles/Makefile2:632: CMakeFiles/kxstitch.dir/all] Error 2
make: *** [Makefile:161: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build kxstitch.
This linker error occurred because cmake was not able to locate the correct ImageMagick dynamic library. Uninstalling libmagick6 (and anything that depended on it) fixed the error. In my case, Inkscape, which I used once and never touched again, was the only package that depended on libmagick6.
@trames,
I successfully re-compiled and installed kxstitch on my archlinux up-to-date.
I did not have your error.
So, I don't update PKGBUILD, which works in that state.
Error installing kxstitch: /bin exists in filesystem (owned by filesystem). Programs on Arch cannot be installed into /bin. To get around this, I changed PKGBUILD line
from:
make DESTDIR="${pkgdir}" install
to:
make DESTDIR="${pkgdir}/usr" install
Arch system updated on 02/28/2020
@KXStitchAuthor / Steve,
Thank you for this very helpful information. This solved my problem!