Karma Community

How to compile KARMA coin wallet in Linux's Ubuntu

Offline KarmaWho

  • **
  • 73
  • +0/-0
  • "Actions and Reactions"
How to compile KARMA coin wallet in Linux's Ubuntu
« on: January 26, 2015, 03:20:05 am »
Linux Ubuntu wallet build for Karma coin

1. First - Qt-developments dependencies to be able to build the Qt-wallet for karma

Quote
From our source code documentations installs the package for qt4 wallet
https://github.com/karmateam/karma/blob/master-0.8/doc/readme-qt.rst

for Ubuntu >= 12.04 (please read the 'Berkely DB version warning' from the link):

   
Code: [Select]
sudo apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \
    libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
    libssl-dev libdb++-dev libminiupnpc-dev

   
2. Building/Compiling the Karma Qt-Wallet

You will need Git for this. To get git

   
Code: [Select]
sudo apt-get install git
Now downloading/cloning the source code:

   
Code: [Select]
git clone https://github.com/karmateam/karma.git   
Go into the created directory
   
Code: [Select]
cd karma    

To make sure you have installed Karma-Qt.pro in the Karma directory you can check it with

   
Code: [Select]
ls
   
Following files/directories should be listed:
   
   
Code: [Select]
contrib  COPYING  doc  INSTALL  karma-qt.pro  README.md  share  src
   
3. Compiling

Now we are ready to compile. Please read the documentation on the link provided above to learn how to optimize your wallet config before you install it

Building the wallet with out UPnP support

   
Code: [Select]
qmake "USE_UPNP=-"
you might see some errors , ignore them
   
after ready for the next command

   
Code: [Select]
make   
you should have now compiled your wallet.

4. Running the wallet

you can run it on terminal by

   
Code: [Select]
./karma-qt   
Or you can double click the Karma-qt in the folder if you are using the desktop GUI

In the GUI the Karma folder where the executable file is located is under home\username\karma\karma

To access the wallet.dat , you will need to go to home directory and "control+h" to bring up all the hidden files and you should see a .karma folder. inside this folder will will find the wallet.dat



WARNING!! Read all the documentation to choose option before you compile.


Build configuration options
UPnP port forwarding

To use UPnP for port forwarding behind a NAT router (recommended, as more connections overall allow for a faster and more stable karma experience), pass the following argument to qmake:

   
Code: [Select]
qmake "USE_UPNP=1"
(in Qt Creator, you can find the setting for additional qmake arguments under "Projects" -> "Build Settings" -> "Build Steps", then click "Details" next to qmake)

This requires miniupnpc for UPnP port mapping. It can be downloaded from http://miniupnp.tuxfamily.org/files/. UPnP support is not compiled in by default.

Set USE_UPNP to a different value to control this:
Code: [Select]
USE_UPNP=- no UPnP support, miniupnpc not required;
USE_UPNP=0 (the default) built with UPnP, support turned off by default at runtime;
USE_UPNP=1 build with UPnP support turned on by default at runtime.
   
Notification support for recent (k)ubuntu versions

To see desktop notifications on (k)ubuntu versions starting from 10.04, enable usage of the FreeDesktop notification interface through DBUS using the following qmake option:

   
Code: [Select]
qmake "USE_DBUS=1"   
Generation of QR codes

libqrencode may be used to generate QRCode images for payment requests. It can be downloaded from http://fukuchi.org/works/qrencode/index.html.en, or installed via your package manager. Pass the USE_QRCODE flag to qmake to control this:
Code: [Select]
USE_QRCODE=0 (the default) No QRCode support - libarcode not required
USE_QRCODE=1 QRCode support enabled

   
   



« Last Edit: February 18, 2015, 05:52:49 am by KarmaWho »

Offline admin

  • *****
  • 2
  • +0/-0
Re: How to compile WDC wallet in Linux's Ubuntu
« Reply #1 on: January 26, 2015, 07:27:48 am »

Great Job !!

Offline zeropk2

  • *
  • 2
  • +0/-0
  • Karma Sweeper
Re: How to compile KARMA coin wallet in Linux's Ubuntu
« Reply #2 on: February 27, 2015, 09:04:50 pm »
a have problem no sync?

Offline KarmaWho

  • **
  • 73
  • +0/-0
  • "Actions and Reactions"

Offline zeropk2

  • *
  • 2
  • +0/-0
  • Karma Sweeper
Re: How to compile KARMA coin wallet in Linux's Ubuntu
« Reply #4 on: February 28, 2015, 04:44:45 pm »
thanks