How to compile KeePassX 0.4 under Ubuntu 18.04?












2















Can someone download the source code and tell me how to compile KeePassX 0.4 for Ubuntu? I have no clue about programming! No matter what I paste into the terminal I get nothing. Please, help me someone, I beg you, Anonimus :)



https://www.keepassx.org/downloads/0-4



Thanks!










share|improve this question























  • If you are simply looking to implement the keepassx system of password control, you could install keepassx on Ubuntu with sudo apt install keepassx, or keepassxc or keepass2

    – Charles Green
    Mar 16 at 2:01
















2















Can someone download the source code and tell me how to compile KeePassX 0.4 for Ubuntu? I have no clue about programming! No matter what I paste into the terminal I get nothing. Please, help me someone, I beg you, Anonimus :)



https://www.keepassx.org/downloads/0-4



Thanks!










share|improve this question























  • If you are simply looking to implement the keepassx system of password control, you could install keepassx on Ubuntu with sudo apt install keepassx, or keepassxc or keepass2

    – Charles Green
    Mar 16 at 2:01














2












2








2








Can someone download the source code and tell me how to compile KeePassX 0.4 for Ubuntu? I have no clue about programming! No matter what I paste into the terminal I get nothing. Please, help me someone, I beg you, Anonimus :)



https://www.keepassx.org/downloads/0-4



Thanks!










share|improve this question














Can someone download the source code and tell me how to compile KeePassX 0.4 for Ubuntu? I have no clue about programming! No matter what I paste into the terminal I get nothing. Please, help me someone, I beg you, Anonimus :)



https://www.keepassx.org/downloads/0-4



Thanks!







18.04 compiling qt






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 15 at 22:49









mevsmemevsme

3816




3816













  • If you are simply looking to implement the keepassx system of password control, you could install keepassx on Ubuntu with sudo apt install keepassx, or keepassxc or keepass2

    – Charles Green
    Mar 16 at 2:01



















  • If you are simply looking to implement the keepassx system of password control, you could install keepassx on Ubuntu with sudo apt install keepassx, or keepassxc or keepass2

    – Charles Green
    Mar 16 at 2:01

















If you are simply looking to implement the keepassx system of password control, you could install keepassx on Ubuntu with sudo apt install keepassx, or keepassxc or keepass2

– Charles Green
Mar 16 at 2:01





If you are simply looking to implement the keepassx system of password control, you could install keepassx on Ubuntu with sudo apt install keepassx, or keepassxc or keepass2

– Charles Green
Mar 16 at 2:01










1 Answer
1






active

oldest

votes


















5














After you download the source (currently the latest version of the 0.4 series is 0.4.4).



Extract the Tarball



tar -xvf keepassx-0.4.4.tar.gz


Fix the Source



The build process currently fails as standard in Ubuntu 18.04 due to a missing include directive. This needs to be added as follows:




  1. Open the source file keepassx/src/lib/random.cpp using a text editor.

  2. Add the line #include <unistd.h> immediately before the line #include <QCryptographicHash> and save the file.


After editing, the random.cpp file should look like:



...
#include <unistd.h>
#include <QCryptographicHash>
...


Install the Dependencies



sudo apt install qt4-default libxtst-dev build-essential


Build and Install



Ensure you are in the root folder of the source (~/Downloads/keepassx-0.4.4 for example).



qmake
make
sudo checkinstall make install


KeePassX V0.4.4 should now be available within the launcher.






share|improve this answer





















  • 1





    By the way using CheckInstall (sudo checkinstall make install) would be better as it creates deb-package of self-compiled application.

    – N0rbert
    Mar 16 at 10:38











  • @N0rbert thanks. I wasn't aware of that. I'll update the answer.

    – gsxruk
    Mar 16 at 10:55











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126040%2fhow-to-compile-keepassx-0-4-under-ubuntu-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














After you download the source (currently the latest version of the 0.4 series is 0.4.4).



Extract the Tarball



tar -xvf keepassx-0.4.4.tar.gz


Fix the Source



The build process currently fails as standard in Ubuntu 18.04 due to a missing include directive. This needs to be added as follows:




  1. Open the source file keepassx/src/lib/random.cpp using a text editor.

  2. Add the line #include <unistd.h> immediately before the line #include <QCryptographicHash> and save the file.


After editing, the random.cpp file should look like:



...
#include <unistd.h>
#include <QCryptographicHash>
...


Install the Dependencies



sudo apt install qt4-default libxtst-dev build-essential


Build and Install



Ensure you are in the root folder of the source (~/Downloads/keepassx-0.4.4 for example).



qmake
make
sudo checkinstall make install


KeePassX V0.4.4 should now be available within the launcher.






share|improve this answer





















  • 1





    By the way using CheckInstall (sudo checkinstall make install) would be better as it creates deb-package of self-compiled application.

    – N0rbert
    Mar 16 at 10:38











  • @N0rbert thanks. I wasn't aware of that. I'll update the answer.

    – gsxruk
    Mar 16 at 10:55
















5














After you download the source (currently the latest version of the 0.4 series is 0.4.4).



Extract the Tarball



tar -xvf keepassx-0.4.4.tar.gz


Fix the Source



The build process currently fails as standard in Ubuntu 18.04 due to a missing include directive. This needs to be added as follows:




  1. Open the source file keepassx/src/lib/random.cpp using a text editor.

  2. Add the line #include <unistd.h> immediately before the line #include <QCryptographicHash> and save the file.


After editing, the random.cpp file should look like:



...
#include <unistd.h>
#include <QCryptographicHash>
...


Install the Dependencies



sudo apt install qt4-default libxtst-dev build-essential


Build and Install



Ensure you are in the root folder of the source (~/Downloads/keepassx-0.4.4 for example).



qmake
make
sudo checkinstall make install


KeePassX V0.4.4 should now be available within the launcher.






share|improve this answer





















  • 1





    By the way using CheckInstall (sudo checkinstall make install) would be better as it creates deb-package of self-compiled application.

    – N0rbert
    Mar 16 at 10:38











  • @N0rbert thanks. I wasn't aware of that. I'll update the answer.

    – gsxruk
    Mar 16 at 10:55














5












5








5







After you download the source (currently the latest version of the 0.4 series is 0.4.4).



Extract the Tarball



tar -xvf keepassx-0.4.4.tar.gz


Fix the Source



The build process currently fails as standard in Ubuntu 18.04 due to a missing include directive. This needs to be added as follows:




  1. Open the source file keepassx/src/lib/random.cpp using a text editor.

  2. Add the line #include <unistd.h> immediately before the line #include <QCryptographicHash> and save the file.


After editing, the random.cpp file should look like:



...
#include <unistd.h>
#include <QCryptographicHash>
...


Install the Dependencies



sudo apt install qt4-default libxtst-dev build-essential


Build and Install



Ensure you are in the root folder of the source (~/Downloads/keepassx-0.4.4 for example).



qmake
make
sudo checkinstall make install


KeePassX V0.4.4 should now be available within the launcher.






share|improve this answer















After you download the source (currently the latest version of the 0.4 series is 0.4.4).



Extract the Tarball



tar -xvf keepassx-0.4.4.tar.gz


Fix the Source



The build process currently fails as standard in Ubuntu 18.04 due to a missing include directive. This needs to be added as follows:




  1. Open the source file keepassx/src/lib/random.cpp using a text editor.

  2. Add the line #include <unistd.h> immediately before the line #include <QCryptographicHash> and save the file.


After editing, the random.cpp file should look like:



...
#include <unistd.h>
#include <QCryptographicHash>
...


Install the Dependencies



sudo apt install qt4-default libxtst-dev build-essential


Build and Install



Ensure you are in the root folder of the source (~/Downloads/keepassx-0.4.4 for example).



qmake
make
sudo checkinstall make install


KeePassX V0.4.4 should now be available within the launcher.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 16 at 10:55

























answered Mar 16 at 10:24









gsxrukgsxruk

955138




955138








  • 1





    By the way using CheckInstall (sudo checkinstall make install) would be better as it creates deb-package of self-compiled application.

    – N0rbert
    Mar 16 at 10:38











  • @N0rbert thanks. I wasn't aware of that. I'll update the answer.

    – gsxruk
    Mar 16 at 10:55














  • 1





    By the way using CheckInstall (sudo checkinstall make install) would be better as it creates deb-package of self-compiled application.

    – N0rbert
    Mar 16 at 10:38











  • @N0rbert thanks. I wasn't aware of that. I'll update the answer.

    – gsxruk
    Mar 16 at 10:55








1




1





By the way using CheckInstall (sudo checkinstall make install) would be better as it creates deb-package of self-compiled application.

– N0rbert
Mar 16 at 10:38





By the way using CheckInstall (sudo checkinstall make install) would be better as it creates deb-package of self-compiled application.

– N0rbert
Mar 16 at 10:38













@N0rbert thanks. I wasn't aware of that. I'll update the answer.

– gsxruk
Mar 16 at 10:55





@N0rbert thanks. I wasn't aware of that. I'll update the answer.

– gsxruk
Mar 16 at 10:55


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126040%2fhow-to-compile-keepassx-0-4-under-ubuntu-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b