← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #76345]: How do you build Kftpgrabber from SVN? Problems encountered

 

Question #76345 on kftpgrabber in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/kftpgrabber/+question/76345

    Status: Needs information => Open

yarly gave more information on the question:
Ok, well after a very long amount of research it turns out I can answer
my own question.

In short, the SVN build instructions were outdated and no longer accurate..
Here's are the steps I went through to build the latest kftpgrabber from SVN.

Checkinstall substituted for "make install" so you can create a package and have an entry in Synaptic
for easy removal


If you want the latest KDE4 version, the instructions would be:
===========================================================================================

1. Install kdelibs5-dev
   sudo apt-get install kdelibs5-dev

2. Install cmake
   sudo apt-get install cmake

3. Create a txt file, name it FindLibSSH2.cmake

4. Open FindLibSSH2.cmake with a text editor

5. Paste the following text

###########################################################################################
#
# kftpgrabber-svn needs FindLibSSH2 cmake module, so if you don't have that module,
# add this file in /usr/share/cmake-2.6/Modules
#
# - Try to find the libssh2 library
# Once done this will define
#
# LIBSSH2_FOUND - system has the libssh2 library
# LIBSSH2_INCLUDE_DIR - the libssh2 include directory
# LIBSSH2_LIBRARY - the libssh2 library name

if (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
set(LibSSH2_FIND_QUIETLY TRUE)
endif (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)

FIND_PATH(LIBSSH2_INCLUDE_DIR libssh2.h)

FIND_LIBRARY(LIBSSH2_LIBRARY NAMES ssh2)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibSSH2 DEFAULT_MSG LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)

MARK_AS_ADVANCED(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)

###########################################################################################

6. Save FindLibSSH2.cmake and exit the text editor

3. Copy FindLibSSH2.cmake to /usr/share/cmake-2.6/Modules

4. Download & Compile

svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/network/kftpgrabber
mkdir kftpgrabber-build
cd kftpgrabber-build
cmake ../kftpgrabber
make
sudo checkinstall

5. Change owner info
   press 1
   youruser@youruser

6. NOTE: !! You must change build information !!
   press 3
   0.8.99

7. success!! cookies for everyone.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.