Configuration, Compilation and Installation

This section describes the configuration, compilation and installation of Smb4K. Make sure, you have read the Requirements section before you start.

Download the version of Smb4K you are interested in and extract the source tarball:

$ tar xvfJ smb4k-x.y.z.tar.xz

Replace x.y.z with the version number. Change into the source code directory and create a build directory:

$ cd smb4k-x.y.z
$ mkdir build

Change into the build directory and configure the source code:

$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` -DCMAKE_BUILD_TYPE=Release ..

If Smb4K cannot find some shared libraries after the installation (por ejemplo if you are using Kubuntu 16.04), it may be necessary to add the -DKDE_INSTALL_PLUGINDIR argument to the command line above:

$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` \
     -DKDE_INSTALL_PLUGINDIR=`qtpaths --plugin-dir` -DCMAKE_BUILD_TYPE=Release ..

If you want to compile Smb4K with debug symbols, replace Release by Debug. You should consider this if you experience es decir a crash and want to either debug Smb4K yourself or report a bug including a full backtrace.

There are also some Smb4K specific arguments you might be interested in:

-DINSTALL_HEADER_FILES=ON|OFF1.0.0Install the core header files. This is off by default.
-DINSTALL_PLASMOID=ON|OFF1.1.0Install the plasmoid. This is on by default.

After the configuration, compile and install Smb4K:

$ make && sudo make install

If you want to be able to remove Smb4K with your package manager later on, use checkinstall instead of make install. The package should be present in your distribution's repository. Run:

$ make && sudo checkinstall