Compiling kio-drive from source issues

Trying to compile kio-drive on kubuntu 25.04 following README instructions.

I get a package not found message. Anything I can do to make this work?

~/kio-gdrive/build (master)$ cmake -DCMAKE_INSTALL_PREFIX=qtpaths --install-prefix ..
– The C compiler identification is GNU 14.2.0
– The CXX compiler identification is GNU 14.2.0
…..
…… omitted lines
……..
– Found KF6KIO: /usr/lib/x86_64-linux-gnu/cmake/KF6KIO/KF6KIOConfig.cmake (found version “6.12.0”)
– Found KF6: success (found suitable version “6.12.0”, minimum required is “6.3.0”) found components: I18n DocTools KIO

CMake Error at CMakeLists.txt:40 (find_package):
By not providing “FindKPim6GAPI.cmake” in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
“KPim6GAPI”, but CMake did not find one.

Could not find a package configuration file provided by “KPim6GAPI”
(requested version 6.2.40) with any of the following names:

KPim6GAPIConfig.cmake
kpim6gapi-config.cmake

Add the installation prefix of “KPim6GAPI” to CMAKE_PREFIX_PATH or set
“KPim6GAPI_DIR” to a directory containing one of the above files. If
“KPim6GAPI” provides a separate development package or SDK, be sure it has
been installed.

– Configuring incomplete, errors occurred!

You need to search for the dev package that provides one of the two cmake files mentioned.

If you haven’t already, install the build dependencies using apt:

sudo apt build-dep kio-gdrive

This will install most of the dependencies, but not necessarily all of them, so you still may have some missing bits, so you will need to find the packages that provide the the files mentioned.

You can do this in various ways, such as using apt-file or by searching the Ubuntu package listing website.

For this one, you need libkgapi-dev.
There will likley be more like this.

1 Like

I didn’t realize that. That worked. Thanks. Would be helpful if some basic instructions were given on pre-reqs.

I ran

$ sudo make install  

and that was clean. Now should I run the kdeinit5 or do I need to install kdeinit6 given that I am using:

Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3


$ kdeinit5 # or just re-login

Thanks again

If you follow Building KDE software | Developer, you’ll notice we have a dedicated section for this: Installing build dependencies | Developer

1 Like

Understood, though I am not a KDE developer. I just wanted to compile the plugin and see if it has any improvements over the version installed by Kubuntu KDE.

I may end up using rclone or google-drive-ocamlfuse as this latest version has issues.

That can be difficult as each distro’s packaging uses different names and locations for files. Most sources are like this, though some that are more user-facing projects can have distro-specific instructions. And even then, many if not most will need some amount of hunting.

What improvements are you looking for? It is still going to be broken until someone decides to jump through all of Google’s hoops.

Well the biggest improvement other than fixing Google’s hoops would be the signon screen to open in the default browser be it Chrome/FF/Edge whatever. This way I would feel that I am being redirected to a Google login and not a possible spoof. Right now the sign on looks like this, but one cannot tell if any info entered is really a Google app.