Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build on Ubuntu 16.04? #1

Open
guedressel opened this issue Dec 13, 2016 · 1 comment
Open

How to build on Ubuntu 16.04? #1

guedressel opened this issue Dec 13, 2016 · 1 comment

Comments

@guedressel
Copy link

I'm trying to build this kio slave on my Ubuntu machine. But it didn't work out...

What I did:

#> sudo apt install cmake extra-cmake-modules qt5-default
#> cd /tmp
#> git clone https://github.com/Akimkin/kf5-kio-ftps.git
#> cd kf5-kio-ftps
#> mkdir build
#> cd build
#> cmake ..

What was written on my terminal at the point I gave up:

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5KIO" with any
  of the following names:

    KF5KIOConfig.cmake
    kf5kio-config.cmake

  Add the installation prefix of "KF5KIO" to CMAKE_PREFIX_PATH or set
  "KF5KIO_DIR" to a directory containing one of the above files.  If "KF5KIO"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:13 (find_package)


-- Could NOT find KF5KIO: found neither KF5KIOConfig.cmake nor kf5kio-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5CoreAddons"
  with any of the following names:

    KF5CoreAddonsConfig.cmake
    kf5coreaddons-config.cmake

  Add the installation prefix of "KF5CoreAddons" to CMAKE_PREFIX_PATH or set
  "KF5CoreAddons_DIR" to a directory containing one of the above files.  If
  "KF5CoreAddons" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:13 (find_package)


-- Could NOT find KF5CoreAddons: found neither KF5CoreAddonsConfig.cmake nor kf5coreaddons-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5WidgetsAddons"
  with any of the following names:

    KF5WidgetsAddonsConfig.cmake
    kf5widgetsaddons-config.cmake

  Add the installation prefix of "KF5WidgetsAddons" to CMAKE_PREFIX_PATH or
  set "KF5WidgetsAddons_DIR" to a directory containing one of the above
  files.  If "KF5WidgetsAddons" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:13 (find_package)


-- Could NOT find KF5WidgetsAddons: found neither KF5WidgetsAddonsConfig.cmake nor kf5widgetsaddons-config.cmake 
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find KF5 (missing: KIO CoreAddons WidgetsAddons)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindKF5.cmake:110 (find_package_handle_standard_args)
  CMakeLists.txt:13 (find_package)


-- Configuring incomplete, errors occurred!
See also "/tmp/kf5-kio-ftps/build/CMakeFiles/CMakeOutput.log".

I couldn't find any KF5KIO dev packages via apt :-(

Would be nice to have a list of Ubuntu APT packages which are required to build this KIO slave!

@Akimkin
Copy link
Owner

Akimkin commented Dec 13, 2016

Hi!
In order to build package from a source on Ubuntu you need files that contain descriptions for the libraries package you want to build uses. In this case you're missing files required for CMake build system that KF5 uses. On Ubuntu it's mostly packages postfixed by *-dev that provide these files.
I found one of packages you'll definitely need for a build: kio-dev. Install it first and let's see if anything changes, maybe you'll need some more *-dev packages.
Unfortunately I don't know complete list of dev packages required for Ubuntu (I personally run Gentoo that provides these files for everything out of the box so I don't have this kind of problem) but I can help you to find them out and will add them to build instruction for future uses :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants