To configure, compile and install Smb4K follow the steps below. Make sure, you have read the Requirements page before you start.
WS-Discovery Support
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.
Smb4K
Download the latest version of Smb4K 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 the build directory:
$ cd smb4k-x.y.z
$ mkdir build
Change into the build directory:
$ cd build
Configure the source of Smb4K.
Without WS-Discovery support
$ cmake -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` -DCMAKE_BUILD_TYPE=Release ..
With WS-Discovery support
$ cmake -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` -DCMAKE_BUILD_TYPE=Release -DSMB4K_WITH_WS_DISCOVERY=ON ..
If you want to compile Smb4K with debug symbols, replace Release by Debug.
Specific CMake arguments
There are some Smb4K specific CMake arguments you might be interested in:
Argument | Description |
---|---|
-DSMB4K_INSTALL_PLASMOID=ON/OFF | Install the plasmoid. This is ON by default. |
-DSMB4K_WITH_WS_DISCOVERY=ON/OFF | Build with WS-Discovery support for browsing. This is OFF 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 the following approaches depending on your distribution.
Debian, Ubuntu, openSUSE, Fedora, Redhat, Slackware
Use checkinstall instead of make install. The package should be present in your distribution's repository.
$ make && sudo checkinstall
Arch Linux, Manjaro
Create a PKGBUILD file inside the source's root directory and run the following command to install Smb4K.
$ makepkg -i
Discussion: Install prep: smb4k 2.0.0 on Ubuntu 16.04 LTS (latest) w/ Unity desktop ?
Discussion: Install prep: smb4k 2.0.0 on Ubuntu 16.04 LTS (latest) w/ Unity desktop ?
Discussion: Build Fails during configuration
Discussion: smb4k installation in Centos 7
Wiki: Home
Wiki: Requirements