Dependency issues when trying to build KeePassXC from Source.

Hello

I thought i’d have a go at building the latest version [2.2.1] of KeePassXC from source. I’ve struck a problem i’ve not yet been able to solve, regarding some dependencies not met. Would anyone pls have some suggestions?

I downloaded the tarball https://github.com/keepassxreboot/keepassxc/releases/download/2.2.1/keepassxc-2.2.1-src.tar.xz from the site https://github.com/keepassxreboot/keepassxc/releases

I tried to use the methodology per these pages:

  1. https://github.com/keepassxreboot/keepassxc
  2. https://github.com/keepassxreboot/keepassxc/wiki/Building-KeePassXC
  3. https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-Linux

As you can see, there’s no oS-specific instructions there, so doubtless that’s why i’ve gotten some dependency names wrong.

Summary of the problem dependencies:

Reading installed packages...'qt5-linguist' not found in package names. Trying capabilities.
No provider of 'qt5-linguist' found.
'qt5-qtbase-devel' not found in package names. Trying capabilities.
No provider of 'qt5-qtbase-devel' found.
'qt5-qttools' not found in package names. Trying capabilities.
No provider of 'qt5-qttools' found.

Reading installed packages...                                                                  
Package 'ykpers-devel' not found.                                                                          
'qt5-qtx11extras' not found in package names. Trying capabilities.                                                         
No provider of 'qt5-qtx11extras' found.                                                                                    
'qt5-qtx11extras-devel' not found in package names. Trying capabilities.                                                   
No provider of 'qt5-qtx11extras-devel' found. 

Complete Konsole transcript:

Thanks.

libqt5-linguist-devel ?
libqt5-qtbase-devel ?
and so on ?

Hi
If you also look at the OBS spec file, it shows what is needed and what is used to build (as in build options etc)…
https://build.opensuse.org/package/view_file/openSUSE:Factory/keepassxc/keepassxc.spec?expand=1

Genius - thanks! :slight_smile:

Oh wow, that link’s info is brilliant - thank you. It turned out that the missing package, identified via that link, was [in addition to the great clue that [i]Knurpht gave me, which fixed most of the missing things as follows]

libqt5-linguist-devel

. After installing that, the rest of the building process went well… but with a big caveat**

**Here’s what i did, after getting all the prerequisites & dependencies resolved [Point #6 shows the caveat]:

I did this:

1. Launch Konsole from the directory extracted from the downloaded sourcecode tarball, ie, ~/Downloads/keepassxc-2.2.1


2. mkdir build                             #*Success*.
3. cd build                                 #*Success*.


4. cmake -DWITH_XC_AUTOTYPE=ON -DWITH_XC_HTTP=ON -DWITH_XC_YUBIKEY=ON -DWITH_TESTS=OFF -DWITH_ASAN=ON -DCMAKE_BUILD_TYPE=Release ..                                                        #*Success*.


5. make -j8                            #*Success*.


6. sudo make DESTDIR=/opt/keepassxc install                           #*Success.*
        # --> *Will NOT run from here*. 
        # --> *It DOES run direct from ~/Downloads/keepassxc-2.2.1/build> via command "./src/keepassxc", but to my shock the extras clipboard copying [ie,manually-added attributes] STILL fails***, just like the Repo versions of 2.2.0 & 2.2.1. Yet this cool function works fine in the AppImages, for both 2.2.0 & 2.2.1, AND works fully in non-openSUSE distros. Huh?*


7. make DESTDIR=~/.local install                                          #*Success.*
        # --> *Will NOT run from here either*.

Seems to be no point in troubleshooting & fixing the non-launches *, given the bigger problem is the ongoing lack of full functionality. Looks like i need to continue using the AppImage. Rats.

*** This refers to the thread i created previously, KeePassXC in repos only partly works. - Applications - openSUSE Forums

Today, as well as “successfully” building my own v2.2.1 from source, i also upgraded my Repo one i had already installed months ago, given the Repo also now has v2.2.1. Sadly it also still fails to copy any manually-added attribute to the clipboard. That, & my own sourcecode-build’s same-outcome, might make one think that the sourcecode itself is faulty. But as i pointed out in my previous thread KeePassXC in repos only partly works. - Applications - openSUSE Forums ,

I know for a fact that this is not a basic coding error in the actual package Dev’s work, because performing this identical test in a non-openSUSE distro [eg, Maui Linux] works perfectly.

Today i also downloaded the new v2.2.1 AppImage, & just like the v2.2.0 AI i’ve been using up til now, it does have FULL functionality.

I don’t really know which way to turn now… but will continue further correspondence on this problem in my other thread, as it’s off-topic for this one.*