To configure, compile and install Smb4K follow the steps below. Make sure, you have read the Requirements page before you start.
If you decide to enable WS-Discovery support, please install the KDSoap library and the KDSoap WS-Discovery client. Most recent distributions offer the KDSoap library already, so you install it with you package manager. For installing the KDSoap WS-Discovery client, please follow the instructions given here.
Download the latest version of Smb4K and extract the source tarball:
:::sh
$ tar xvfJ smb4k-x.y.z.tar.xz
Replace x.y.z with the version number. Change into the source code directory and create the build directory:
:::sh
$ cd smb4k-x.y.z
$ mkdir build
Change into the build directory:
:::sh
$ cd build
Configure the source of Smb4K:
:::sh
$ cmake -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` -DCMAKE_BUILD_TYPE=Release ..
If Smb4K cannot find some shared libraries after the installation (e.g. if you are using Kubuntu 16.04), it is necessary to add the -DKDE_INSTALL_PLUGINDIR argument to the command line above:
:::sh
$ 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.
There are some Smb4K specific CMake arguments you might be interested in:
| Argument | Since Version | Description |
|---|---|---|
| -DSMB4K_INSTALL_PLASMOID=ON/OFF | 1.1.0 | Install the plasmoid. This is ON by default. |
| -DSMB4K_WITH_WS_DISCOVERY=ON/OFF | 3.1.0 | Build with WS-Discovery support for browsing. This is OFF by default. |
After the configuration, compile and install Smb4K:
:::sh
$ 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:
:::sh
$ make && sudo checkinstall