Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant update ksnip, Now iv lost it and cant install at all. #201

Closed
JackDinn opened this issue Sep 2, 2019 · 20 comments

Comments

@JackDinn
Copy link

commented Sep 2, 2019

I have been using ksnip for a long time but today it had an update but it just throws errors all the time, i tried uninstalling it and reinstalling but now i have lost it all together and i dont know how to proceed.

when i try to update with yay -Syu i get

(1/1) checking for file conflicts                                                                                 [####################################################################] 100%
error: failed to commit transaction (conflicting files)
kimageannotator-git: /usr/lib64 exists in filesystem (owned by filesystem)
kimageannotator-git: /usr/lib64/cmake/kImageAnnotator/kImageAnnotator-targets-noconfig.cmake exists in filesystem
kimageannotator-git: /usr/lib64/cmake/kImageAnnotator/kImageAnnotator-targets.cmake exists in filesystem
kimageannotator-git: /usr/lib64/cmake/kImageAnnotator/kImageAnnotatorConfig-version.cmake exists in filesystem
kimageannotator-git: /usr/lib64/cmake/kImageAnnotator/kImageAnnotatorConfig.cmake exists in filesystem
kimageannotator-git: /usr/lib64/libkImageAnnotator.so exists in filesystem
Errors occurred, no packages were upgraded.

I removed ksnip and tried to build it from git :-

greg@greg-pc ~/git/ksnip/build (master) $ cmake .. && make
-- XCB: XFIXES requires XCB;RENDER;SHAPE
-- XCB: XFIXES requires XCB;RENDER;SHAPE
-- XCB: XFIXES requires XCB;RENDER;SHAPE
CMake Error at CMakeLists.txt:48 (find_package):
  By not providing "FindkImageAnnotator.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "kImageAnnotator", but CMake did not find one.

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

    kImageAnnotatorConfig.cmake
    kimageannotator-config.cmake

  Add the installation prefix of "kImageAnnotator" to CMAKE_PREFIX_PATH or
  set "kImageAnnotator_DIR" to a directory containing one of the above files.
  If "kImageAnnotator" provides a separate development package or SDK, be
  sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/greg/git/ksnip/build/CMakeFiles/CMakeOutput.log".

Manjaro KDE.

@DamirPorobic DamirPorobic self-assigned this Sep 3, 2019

@DamirPorobic DamirPorobic added the finding label Sep 3, 2019

@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 3, 2019

Hey Jack, it looks like you're missing the latest version of kImageAnnotator, please install it as described in the readme file. The kImageAnnotator version in ksnip was raised to 0.2.0 yesterday as we depend now on some new features.

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Hey Jack, it looks like you're missing the latest version of kImageAnnotator, please install it as described in the readme file. The kImageAnnotator version in ksnip was raised to 0.2.0 yesterday as we depend now on some new features.

ok so i installed kImageAnnotator from git

❰greg❙~/git/kImageAnnotator/build(git:master)❱✔≻ sudo make install
[  1%] Automatic MOC for target kImageAnnotator
[  1%] Built target kImageAnnotator_autogen
[ 95%] Built target kImageAnnotator
[ 96%] Automatic MOC for target kImageAnnotator-example
[ 96%] Built target kImageAnnotator-example_autogen
[100%] Built target kImageAnnotator-example
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib64/libkImageAnnotator.a
-- Installing: /usr/local/include/kImageAnnotator
-- Installing: /usr/local/include/kImageAnnotator/KImageAnnotator.h
-- Installing: /usr/local/include/kImageAnnotator/KImageAnnotatorExport.h
-- Installing: /usr/local/lib64/cmake/kImageAnnotator/kImageAnnotatorConfig.cmake
-- Installing: /usr/local/lib64/cmake/kImageAnnotator/kImageAnnotatorConfig-version.cmake
-- Installing: /usr/local/lib64/cmake/kImageAnnotator/kImageAnnotator-targets.cmake
-- Installing: /usr/local/lib64/cmake/kImageAnnotator/kImageAnnotator-targets-noconfig.cmake

Then i try to install ksnip

❰greg❙~/git/kImageAnnotator/build(git:master)❱✔≻ yay -S ksnip-git
......
error: failed to commit transaction (conflicting files)
kimageannotator-git: /usr/lib64 exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.

Was i supposed to install ksnip from github? Im lost .

@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 3, 2019

I don't know where you got ksnip initially from but it was missing the correct kImageAnnotator libs. You have now installed it via cmake and you could install ksnip as well via cmake and that should work. Or you wait until your initial ksnip source gets the correct libs and you can continue using that way. Meanwhile you could also use the appImage which doesn't require any installation.

Unfortunately, I have no experience with Manjaro KDE so can't tell you what this last error messages means but it could be complaining that you have kImageAnnotator installed manually and it was installed via software management tool and that both are conflicting now in which case you should be able to uninstall kImageAnnotator sudo make uninstall

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Ok so iv just tried to install kImageAnnotator and ksnip from github.

kImageAnnotator installs fine but now i cant build ksnip

❰greg❙~/git/ksnip/build(git:master)❱✔≻ make
Scanning dependencies of target ksnip_autogen
[  1%] Automatic MOC for target ksnip
[  1%] Built target ksnip_autogen
[  2%] Automatic RCC for ../icons/ksnip_icons.qrc
Scanning dependencies of target ksnip
[  3%] Building CXX object src/CMakeFiles/ksnip.dir/ksnip_autogen/mocs_compilation.cpp.o
[  5%] Building CXX object src/CMakeFiles/ksnip.dir/main.cpp.o
In file included from /home/greg/git/ksnip/src/backend/imageGrabber/X11ImageGrabber.h:25,
                 from /home/greg/git/ksnip/src/backend/imageGrabber/ImageGrabberFactory.h:28,
                 from /home/greg/git/ksnip/src/main.cpp:29:
/home/greg/git/ksnip/src/backend/imageGrabber/X11Wrapper.h:34:2: error: ‘ImageWithPosition’ does not name a type
   34 |  ImageWithPosition getCursorWithPosition() const;
      |  ^~~~~~~~~~~~~~~~~
In file included from /home/greg/git/ksnip/src/backend/imageGrabber/ImageGrabberFactory.h:28,
                 from /home/greg/git/ksnip/src/main.cpp:29:
/home/greg/git/ksnip/src/backend/imageGrabber/X11ImageGrabber.h:38:2: error: ‘ImageWithPosition’ does not name a type
   38 |  ImageWithPosition getCursorWithPosition() const override;
      |  ^~~~~~~~~~~~~~~~~
In file included from /home/greg/git/ksnip/src/backend/imageGrabber/ImageGrabberFactory.h:29,
                 from /home/greg/git/ksnip/src/main.cpp:29:
/home/greg/git/ksnip/src/backend/imageGrabber/KdeWaylandImageGrabber.h:47:2: error: ‘ImageWithPosition’ does not name a type
   47 |  ImageWithPosition getCursorWithPosition() const override;
      |  ^~~~~~~~~~~~~~~~~
In file included from /home/greg/git/ksnip/src/backend/imageGrabber/ImageGrabberFactory.h:30,
                 from /home/greg/git/ksnip/src/main.cpp:29:
/home/greg/git/ksnip/src/backend/imageGrabber/GnomeWaylandImageGrabber.h:40:2: error: ‘ImageWithPosition’ does not name a type
   40 |  ImageWithPosition getCursorWithPosition() const override;
      |  ^~~~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/ksnip.dir/build.make:107: src/CMakeFiles/ksnip.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:129: src/CMakeFiles/ksnip.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
❰greg❙~/git/ksnip/build(git:master)❱✘≻ 

Think iv seen this error reported on the AUR , https://aur.archlinux.org/packages/ksnip-git/#comment-706587

Still lost :( , yea appimage is ok but i have to redo all my settins, imgur account, shortcut keys etc etc.

@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 3, 2019

That looks like another issue. Looks like some renaming went wrong, need to fix that. Strange that the pipeline didn't complain about that. Can't do it right now, I'll try to fix it by the end of the day.

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Greatly appreciated ;) , love the app BTW , best and quickest screen shot, annotation and quick upload to my imgur account, all with just a minimum of clicks/key-strokes, brilliant, Thx.

@DamirPorobic DamirPorobic added bug and removed finding labels Sep 3, 2019

DamirPorobic added a commit that referenced this issue Sep 3, 2019
@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 3, 2019

Thanks for the feedback :)

I've pushed a fix, it should build now.

DamirPorobic added a commit that referenced this issue Sep 3, 2019
DamirPorobic added a commit that referenced this issue Sep 3, 2019
@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

It got further but still fails for me.

I built kImageAnnotator as described on it's readme page that works fine, then i try to build ksnip. This is the end of the ksnip build. It says it cant find kImageAnnotator, where am i supposed to build kImageAnnotator? I did run sudo make install for kImageAnnotator.

I just dont know what im doing.

[ 84%] Linking CXX executable ksnip
/usr/bin/ld: cannot find -lkImageAnnotator
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/ksnip.dir/build.make:1027: src/ksnip] Error 1
make[1]: *** [CMakeFiles/Makefile2:129: src/CMakeFiles/ksnip.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
❰greg❙~/git/ksnip/build(git:master)❱✘≻

I really want the simple yay -S ksnip-git to work but that still fails https://aur.archlinux.org/packages/ksnip-git/

==> Finished making: kimageannotator-git r397.8d21122-1 (Tue 03 Sep 2019 23:15:54 BST)
==> Cleaning up...
[sudo] password for greg: 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) kimageannotator-git-r397.8d21122-1

Total Installed Size:  0.77 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                    [####################################################################] 100%
(1/1) checking package integrity                                                                                  [####################################################################] 100%
(1/1) loading package files                                                                                       [####################################################################] 100%
(1/1) checking for file conflicts                                                                                 [####################################################################] 100%
error: failed to commit transaction (conflicting files)
kimageannotator-git: /usr/lib64 exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.
❰greg❙~/git/ksnip/build(git:master)❱✘≻
@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 4, 2019

kImageAnnotator is installed but make fails to find it when inking the files, this is indeed strange, works perfectly normal for me. I have installed it yesterday on a new linux installation. Lets revert back, best you uninstall the stuff that you have build sudo make uninstall and we wait for the packager to respond, I see that you have already posted there.

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 4, 2019

I have created a clean VM of Manjaro KDE.

I first tried yay -S ksnip-git

==> Leaving fakeroot environment.
==> Finished making: kcolorpicker-git r44.b6fefec-1 (Wed 04 Sep 2019 10:33:43 BST)
==> Cleaning up...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) kcolorpicker-git-r44.b6fefec-1

Total Installed Size:  0.10 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                [#######################################################################################] 100%
(1/1) checking package integrity                                                                                                              [#######################################################################################] 100%
(1/1) loading package files                                                                                                                   [#######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                             [#######################################################################################] 100%
error: failed to commit transaction (conflicting files)
kcolorpicker-git: /usr/lib64 exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.
error: target not found: kcolorpicker-git
[greg@greg-pc build]$

Then i try from git.
I try to install kImageAnnotator,

[greg@greg-pc build]$ pwd
/home/greg/kImageAnnotator/build
[greg@greg-pc build]$ cmake ..
CMake Error at CMakeLists.txt:25 (find_package):
  By not providing "FindkColorPicker.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "kColorPicker", but CMake did not find one.

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

    kColorPickerConfig.cmake
    kcolorpicker-config.cmake

  Add the installation prefix of "kColorPicker" to CMAKE_PREFIX_PATH or set
  "kColorPicker_DIR" to a directory containing one of the above files.  If
  "kColorPicker" provides a separate development package or SDK, be sure it
  has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/greg/kImageAnnotator/build/CMakeFiles/CMakeOutput.log".
[greg@greg-pc build]$ 

So not working on a clean installation of Manjaro KDE.

You talk about reverting back to my last working version from a couple of days ago, how would i do that?

@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 4, 2019

Yes, you need also kColorPicker which is a dependency of kImageAnnotator. Basically the same procedure like installing kImageAnnotator.

Reverting back is just sudo make uninstall from the build directories of the applications that you have installed.

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 4, 2019

Still on the VM,
I built and installed kColorPicker.

[greg@greg-pc build]$ sudo make install
[sudo] password for greg: 
[  6%] Automatic MOC for target kColorPicker
[  6%] Built target kColorPicker_autogen
[ 73%] Built target kColorPicker
[ 80%] Automatic MOC for target kColorPicker-example
[ 80%] Built target kColorPicker-example_autogen
[100%] Built target kColorPicker-example
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib64/libkColorPicker.a
-- Installing: /usr/local/include/kColorPicker
-- Installing: /usr/local/include/kColorPicker/KColorPickerExport.h
-- Installing: /usr/local/include/kColorPicker/KColorPicker.h
-- Installing: /usr/local/lib64/cmake/kColorPicker/kColorPickerConfig.cmake
-- Installing: /usr/local/lib64/cmake/kColorPicker/kColorPickerConfig-version.cmake
-- Installing: /usr/local/lib64/cmake/kColorPicker/kColorPicker-targets.cmake
-- Installing: /usr/local/lib64/cmake/kColorPicker/kColorPicker-targets-noconfig.cmake

but when i try to make kImageAnnotator

[ 96%] Automatic MOC for target kImageAnnotator-example
[ 96%] Built target kImageAnnotator-example_autogen
Scanning dependencies of target kImageAnnotator-example
[ 97%] Building CXX object example/CMakeFiles/kImageAnnotator-example.dir/kImageAnnotator-example_autogen/mocs_compilation.cpp.o
[ 98%] Building CXX object example/CMakeFiles/kImageAnnotator-example.dir/main.cpp.o
[100%] Linking CXX executable kImageAnnotator-example
/usr/bin/ld: cannot find -lkColorPicker
collect2: error: ld returned 1 exit status
make[2]: *** [example/CMakeFiles/kImageAnnotator-example.dir/build.make:103: example/kImageAnnotator-example] Error 1
make[1]: *** [CMakeFiles/Makefile2:202: example/CMakeFiles/kImageAnnotator-example.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I must be doing something wrong, this is the same (well one of) the errors im getting on my system when i try to make ksnip from git (although its talking about lkColorPicker here).

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 5, 2019

Hi, I'm still at it , slowly loosing the will :( https://forum.manjaro.org/t/iv-lost-ksnip-and-need-assistance-to-get-it-back/101468

I just installed another VM So i now have 2 VM's of Manjaro KDE, my lappy & and my main system.

They are all showing this error at the end of yay -S ksnip-git

(1/1) checking for file conflicts                                                                                 [####################################################################] 100%
error: failed to commit transaction (conflicting files)
kimageannotator-git: /usr/lib64 exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.

So my question is what is this error trying to say?
I have checked /usr/lib64 for kimageannotator* , it does not exist so what is it trying to tell me?

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 5, 2019

someone on Manjaro forum says

The problem is with kimageannotator-git not ksnip-git. It's trying to install into /usr/lib64 which isn't a common practice on arch and even blocked (by the symlink lib64 > lib created by the filesystem package)
How to properly fix this, I have no idea.

Maybe it might offer some idea?

@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 5, 2019

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 5, 2019

I did see another entry in the AUR added yesterday.

❰greg❙~/git❱✔≻ yay ksnip
2 aur/ksnip 1.5.0-1 (+0 0.00%) 
    Screenshot tool inspired by Windows Snipping Tool and made with Qt for Linux
1 aur/ksnip-git v1.5.0.r54.gbd78ccf-1 (+6 0.57%) (Out-of-date 2019-09-02) 
    Screenshot tool inspired by Windows Snipping Tool and made with Qt for Linux

so i tried aur/ksnip but it just throws the same error. look im not a linux guru i just dont understand.

You could try to manually set the install directories in the cmake file

I could if i knew what one was, dont worry i shall keep stumbling along, thx.

@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 5, 2019

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 5, 2019

I have been at this constantly for several days now so i have builds all over the place, is there a way for me to check i.e. should i use find ?

❰greg❙~/git/kImageAnnotator(git:master)❱✔≻ sudo find /usr/lib -iname '*kimageannotstor*'
❰greg❙~/git/kImageAnnotator(git:master)❱✔≻ sudo find /usr/lib -iname '*ksnip*'
❰greg❙~/git/kImageAnnotator(git:master)❱✔≻ sudo find /usr/lib -iname '*kcolorpicker*'
/usr/lib/cmake/kColorPicker
/usr/lib/cmake/kColorPicker/kColorPicker-targets.cmake
/usr/lib/cmake/kColorPicker/kColorPickerConfig-version.cmake
/usr/lib/cmake/kColorPicker/kColorPickerConfig.cmake
/usr/lib/cmake/kColorPicker/kColorPicker-targets-noconfig.cmake
/usr/lib/libkColorPicker.so
/usr/lib/libkColorPicker.so.0.0.1

should i delete them like this?
❰greg❙~/git/kImageAnnotator(git:master)❱✔≻ sudo find /usr/lib -iname '*kcolorpicker*' -delete

@JackDinn

This comment has been minimized.

Copy link
Author

commented Sep 5, 2019

Break-through :) , Thank you for your patients with me. Sorry im so exasperating but i just cant give up when i have something that is bugging me i refuse to be beaten.

In the end i had found a build that needed uninstalling plus it looked like i had a yay -Rsn kcolorpicker to perform. I did i clean build of the aur/ksnip & after i removed a copy of /usr/share/applications/ksnip.desktop which was left behind for some reason it actually worked 😌 .

Thank you for all your help.

@JackDinn JackDinn closed this Sep 5, 2019

@DamirPorobic

This comment has been minimized.

Copy link
Owner

commented Sep 6, 2019

Awesome, glad that you've managed to make it work ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.