Bitcoin Forum
May 15, 2024, 01:40:57 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: For run -qt wallet program, should I compile again? at Ubuntu  (Read 147 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 11, 2018, 05:54:27 AM
 #1

If I clone bitcoin source code to my ubuntu Virtual os, should I compile it on my machine again for run -qt wallet program?

or just git clone and run just -qt is enough?
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
March 11, 2018, 09:25:17 AM
 #2

After just cloning the source code you won't be able to run it. You need to compile it first (source code -> object code) to be able to run it as a program.

Make sure you have all dependencies installed:
Code:
$ sudo apt-get install autoconf libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqt4-dev libqrencode-dev libtool

To compile:
Code:
$ git checkout v0.16.0
$ ./autogen.sh
$ ./configure CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" --with-gui
$ make

0xuser
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 14, 2018, 11:46:18 AM
 #3

You can just only transfer -qt file to your new OS and run it.

But it will be 100% woking only if you run
• the same version of OS
• on the same hardware
• with the same libs installed
If these options are not followed, there's a chance that you will have to recompile it (follow the steps provided by bob123).
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!