Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: wsxdrfv on March 11, 2018, 05:54:27 AM



Title: For run -qt wallet program, should I compile again? at Ubuntu
Post by: wsxdrfv on March 11, 2018, 05:54:27 AM
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?


Title: Re: For run -qt wallet program, should I compile again? at Ubuntu
Post by: bob123 on March 11, 2018, 09:25:17 AM
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


Title: Re: For run -qt wallet program, should I compile again? at Ubuntu
Post by: 0xuser on May 14, 2018, 11:46:18 AM
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).