[Guide] Beginners guide to compiling feathercoin for Linux / Ubuntu
-
I found getting a novice to compile a wallet for Linux needs help, I have extracted a guide to compiling a Feathercoin wallet from the virtualbox / test set up guide / walk through.
I found it very interesting and satisfying to compile source code, and the GitHub development environment is superb and well worth learning about. Good luck.
In an Ubuntu Linux Distribution
Open a Terminal
sudo apt-get update
sudo apt-get upgrade
sudo reboot (optional)
sudo apt-get install build-essential libssl-dev libdb5.1-dev libdb5.1+±dev libboost-all-dev git
sudo apt-get install libqtgui4
sudo apt-get install libminiupnpc-dev
sudo apt-get install qttools5-dev-tools qttools5-dev
sudo apt-get install qrencode
sudo apt-get install libqrencode-devNext: Close Terminal
>>>>
Install QT-Creator (Software center)
Open a Terminal
git clone https://github.com/FeatherCoin/FeatherCoin.git
Run QT-Creator
[or for the beta test version of Feathercoin : git clone https://github.com/FeatherCoin/Feathercoin-0.8.5.git]
Run QT-Creator
File - open file or project ( /Home/user/Feathercoin/feathercoin-qt.pro)
Change output names and choose debug or release. See below to build release with QR codes.
From the QT Creator - Build Menu run each of these options.
Build -> Clean
Build -> qmake
Build -> BuildPress button 4. Compile output. > To watch the build messages and complete
>>>>>>>
To enable QR codes on Receive mouse right click.
In QR Creator - click projects button
Under build steps, Click QMake details
Then add USE_QRCODE=1
You can then change the {version} to release or debug and set USE_QRCODE=1
.
You can change which version is Compiled by clicking the (project name) button at the bottom left of the QT_Creator window.Go through the build process, to build the version with QRcodes enabled.
>>>>>>>>>>
To rebuild, delete or rename the compiled version directory e.g. feathercoin-qt, and optionally the git clone directory to re download the source code. Then recompile the program.
-
Nice guide, but u do not need to reboot linux system if you didnt update kernel.
-
[quote name=“MindaugasC” post=“37996” timestamp=“1385836169”]
Nice guide, but u do not need to reboot linux system if you didnt update kernel.
[/quote]I have added the word (optional) to the guide. :)
-
[quote]sudo apt-get install libminiupnpc-dev[/quote]
[quote]De volgende pakketten hebben niet-voldane vereisten:
libminiupnpc-dev : Vereisten: libminiupnpc8 (= 1.6-3ubuntu1) maar 1.6-precise2 zal geïnstalleerd worden
E: Kan problemen niet verhelpen, u houdt defecte pakketten vast.[/quote]I am sure this is something to do with my ubuntu install. Do you maybe know whats going on ?
-
Darlings, it didn’t work for me. Is it because I use Mint 15 ?
I assumed the instructions would work for Mint too, but I don’t get the options for QTcreator here
[color=maroon]Menu -> Build > open file or project /Home/User/Feathercoin/Bitcoin-qt.pro
Change output names and choose debug or release. See below to build release with QR codes.
From the QT Creator - Build Menu run each of these options.Build -> Clean
Build -> qmake
Build -> Build[/color]The build menu is greyed out.
I tried to just run the feathercoin-qt-pro file with QTcreator but to no avail. Worked for litecoin though!
How can I enjoy the glorious world of feathercoin on linux, and stay away from stinky old windows ?
-
I compiling qrencode-3.4.3 on windows 7, I encountered an compily error.
qrspec.c:553: undefined reference to `_imp__pthread_mutex_lock`
rscode.c:237: undefined reference to `_imp__pthread_mutex_unlock`How to solve this issue ?
-
I edited Makefile file,add “CFLAGS = -Wall -g -O2 -lpthread”, it work. :) make install success.
I compiling 0.8.5-master-0.8 with MinGW 4.6.2 in windows 7 SP1 32bit. But mingw32-make -f Makefile.Release, I encountered an compily error. :-\g++ -Wl -Wl,–large-address-aware -Wl,-s -mthreads -Wl,-subsystem,windows -o release/feathercoin-qt.exe object_script.feathercoin-qt.Release -L’c:/Qt/4.8.5/lib’ -lmingwthrd -lmingw32 -lqtmain build/bitcoin-qt_res.o -lqrencode D:/FTC/FeatherCoin-master/Feathercoin-0.8.5-master-0.8/src/leveldb/libleveldb.a D:/FTC/FeatherCoin-master/Feathercoin-0.8.5-master-0.8/src/leveldb/libmemenv.a -lshlwapi -LC:\boost_1_53_0\stage\lib -LC:\db-4.8.30.NC\build_unix -LC:\openssl-1.0.1e -lssl -lcrypto -ldb_cxx -lws2_32 -lmswsock -lole32 -loleaut32 -luuid -lgdi32 -lboost_system-mgw46-mt-s-1_53 -lboost_filesystem-mgw46-mt-s-1_53 -lboost_program_options-mgw46-mt-s-1_53 -lboost_thread-mgw46-mt-s-1_53 -lboost_chrono-mgw46-mt-s-1_53 -lQtGui4 -lQtNetwork4 -lQtCore4
c:\qrencode-3.4.3/qrspec.c:530: undefined reference to `_imp__pthread_mutex_lock’
c:\qrencode-3.4.3/qrspec.c:536: undefined reference to `_imp__pthread_mutex_unlock’ -
I had solved this issue. I need to edit Makefile.Release , add " -lpthread". :)
LIBS = -L’c:/Qt/4.8.5/lib’ -lmingwthrd -lmingw32 -lqtmain build/bitcoin-qt_res.o -lqrencode D:/FTC/FeatherCoin-master/Feathercoin-0.8.5-master-0.8/src/leveldb/libleveldb.a D:/FTC/FeatherCoin-master/Feathercoin-0.8.5-master-0.8/src/leveldb/libmemenv.a -lshlwapi -LC:\boost_1_53_0\stage\lib -LC:\db-4.8.30.NC\build_unix -LC:\openssl-1.0.1e -lssl -lcrypto -ldb_cxx -lws2_32 -lmswsock -lole32 -loleaut32 -luuid -lgdi32 -lboost_system-mgw46-mt-s-1_53 -lboost_filesystem-mgw46-mt-s-1_53 -lboost_program_options-mgw46-mt-s-1_53 -lboost_thread-mgw46-mt-s-1_53 -lboost_chrono-mgw46-mt-s-1_53 -lQtGui4 -lQtNetwork4 -lQtCore4 -lpthread
-
lizhi, well done.
-
I’ve updated the build guides to make them clearer as step guides. In particular it wasn’t clear you had to open the project file from the Github source download folder, before doing a QT-Creator build.
File : open file or project e.g… /Home/User/Feathercoin/Feathercoin.pro
Build -> Clean
Build -> qmake
Build -> Build -
Hi maybe these are typos ?
You have–
[color=maroon]File - open file or project ( /Home/User/Feathercoin/Bitcoin-qt.pr)[/color]
and
[color=maroon]File : open file or project e.g… /Home/User/Feathercoin/Feathercoin.pro[/color]
But I have neither - what I have is, after running the git clone, is–
[color=navy]/Home/user/Feathercoin[/color]
and in that I have
[color=navy]Home/user/Feathercoin/feathercoin-qt.pro[/color]
so I choose the feathercoin-qt.pro instead because it’s the only similar one and try that but the build menu is still greyed out.
Do I have to run the ‘configure’ step next instead ?
I’ve got a tick box for Qt 4.8.4(qt4) - should I tick that and hit configure project ?An how do I change the output name ?
I’ve got a couple more tick boxes for ‘debug’ and ‘release’ so do I just choose one of those ?
I took a guess and unticked ‘debug’, hit configure and followed the steps in the build menu - the options are a little different from the ones in the guide above so I picked the closest ones I could see
Build -> Clean Project “feathercoin-qt”
Build -> Run qmake
Build -> Build Project “feathercoin-qt”But next I don’t see the
“Press button 4. Compile output. > To watch the build messages and complete”
I’ve got two sets of buttons down the left of QTcreator, the second set has a “build project feathercoin-qt” button at fourth place so I hit that as another guess, and now I’ve got this folder
Home/user/build-feathercoin-qt-Desktop-Debug
inside that I’ve got
Home/user/build-feathercoin-qt-Desktop-Debug/build
- which is empty - and a makefile
I don’t now what’s going on here, I’m a build and make noob, am I missing something obvious ?
-
Can’t this be done just using ‘make’ ?
That seemed to work for other coin clients.
-
[quote name=“Icingsugar” post=“44405” timestamp=“1387053002”]
Can’t this be done just using ‘make’ ?That seemed to work for other coin clients.
[/quote]There are several options to compile the wallet and wrapper described the designer approach.
you also could try to compile by changing into the directory containing the feathercoin-qt.pro file, do a 'qmake ’ followed by a ‘make’.
can be “USE_UPNP=1 USE_QRCODE=1”, but not required for the comilation and basic operation of the wallet.