ksnapshot “send to” doesn’t work


AS ALWAYS… THIS ARTICLE IS NOT MADE FOR NOOBS.. Please don’t try this at home😀

First get the packagers you need

dpkg -s ksnapshot | awk ‘/Depends/’

you will get dependencies written well …to use with cpack see after….

**note it seems sudo apt-get build-dep ksnapshot doen’t install libkipi-dev …

sudo apt-get install libkipi-dev && sudo apt-get build-dep ksnapshot && cd /tmp/ &&  git clone git://anongit.kde.org/ksnapshot.git  && cd ksnapshot && mkdir build && cd build && cmake ..
 
** if you wish upgrade the git version after you have compiled go where ksnapshot’s folder is and git pull

if any error came out … (make -j3 = 2 core computer if you have one…. -j2 xD )

 make -j3 

now you will find the executable file on the build folder so… to test it

 ./ksnapshot 

if you want create a debian package…

Add this to the CmakeList.txt file NOTE I HAVE SET 4 6 1-ppa-peace~1 VERSION when this article will be old you have to check the version you have and increase the number… to day is 4 6 1 so i have used 4 6 1-ppa-peace~1

 #####################ADD THIS ####################
SET(MAJOR_VERSION 4)
SET(MINOR_VERSION 6)
SET(PATCH_VERSION 1-ppa-peace~1)

IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
INCLUDE(InstallRequiredSystemLibraries)

SET(CPACK_SET_DESTDIR "on")
SET(CPACK_PACKAGING_INSTALL_PREFIX "/tmp")
SET(CPACK_GENERATOR "DEB")

SET(CPACK_PACKAGE_DESCRIPTION "take a screen image of your desktop")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "is a screen shot application for the KDE desktop environment.")
SET(CPACK_PACKAGE_VENDOR "Peace-kubuntu-user")
SET(CPACK_PACKAGE_CONTACT "http://bugs.kde.org/")
SET(CPACK_PACKAGE_VERSION_MAJOR "${MAJOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_MINOR "${MINOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")

SET(CPACK_DEBIAN_PACKAGE_DEPENDS "kdebase-runtime (>= 4:4.2.1), kdelibs5 (>= 4:4.2.1), libc6 (>= 2.1.3), libplasma3, libqt4-dbus (>= 4.5.0), libqtcore4 (>= 4.5.0), libqtgui4 (>= 4.5.0)")

SET(CPACK_DEBIAN_PACKAGE_PRIORITY "extra")
SET(CPACK_DEBIAN_PACKAGE_SECTION "kde")
SET(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})

SET(CPACK_COMPONENTS_ALL Libraries ApplicationData)
INCLUDE(CPack)

ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")

 

now like alwasy do

 cmake .. && cpack ..

and to install

 sudo  dpkg -i ksnapshot_4.6.1* 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: