[Solved] Troubles building Feathercoin (FTC)from source - what can I do?
-
Hi there I’ve built the wallet a couple of times now on Ubuntu, I’ve got it working by doing this from the terminal:
[code]
sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoin-qt
sudo apt-get install git
sudo apt-get install qt4-qmake
sudo apt-get install qt4-dev-tools
sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8+±dev
sudo apt-get install libqrencode-dev
sudo apt-get install libboost-all-dev
git clone https://github.com/FeatherCoin/FeatherCoin.git
cd FeatherCoin
qmake ‘USE_UPNP=-’
make
chown yourusername feathercoin-qt
mv feathercoin-qt ~/feathercoin-qt
cd ~/
mkdir .feathercoin
nano ~/.feathercoin/feathercoin.conf
#### Put the below into your feathercoin.conf ####
server=1
daemon=1
gen=0
rpcuser=feathercoin
rpcpassword=feathercoinpasswordherekittens
rpcport=9337
port=9336
#### End ####
((Press ‘ctrl + x’, then ‘y’, then press the ‘enter key’ to save))
[/code]You should be able to simply launch feathercoin-qt from your home directory by simply double clicking it, or if you prefer to launch it from the terminal just type “./feathercoin-qt”
Installing bitcoin-qt ensures that the required qt files required to build any feathercoin-qt, litecoin-qt, etc, wallet successfully, at least for me. ^^
Hope this helps
Side note, if you insist on running the GUI/(qt) from a terminal I suggest you install screen and run it in a screen. As soon as you close your terminal you will close feathercoin-qt.
To do this simply do:[code]
sudo apt-get install screen
screen -S feathercoin-qt
./feathercoin-qt#Now press ctrl + a, then d to close the screen but keep the terminal session running#
#If you want to reconnect to this terminal simply write:#screen -x feathercoin
#From a/any terminal running on your machine#
#If you want to create more screens for other apps and terminal instance simply use screen -S screename#
#To find a list of current running screens just type:#screen -ls
#From a/any terminal running on your machine#
[/code]Someone is bound to chew me out for my usages of screen. But, it’s simple and does the job using -S, -x and -ls xD
-
Thanks, I followed your instructions but still get stuck at this error:
[code]
qmake USE_UPNP=-
make
…
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g+±64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Isrc/json -Isrc/qt -Isrc/qt/test -I. -I. -o qrcodedialog.o src/qt/qrcodedialog.cpp
src/qt/qrcodedialog.cpp:12:22: fatal error: qrencode.h: No such file or directory
[/code] -
[quote name=“bitcoinerS” post=“3809” timestamp=“1368654666”]
Thanks, I followed your instructions but still get stuck at this error:
[code]
qmake USE_UPNP=-
make
…
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g+±64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Isrc/json -Isrc/qt -Isrc/qt/test -I. -I. -o qrcodedialog.o src/qt/qrcodedialog.cpp
src/qt/qrcodedialog.cpp:12:22: fatal error: qrencode.h: No such file or directory
[/code]
[/quote]Seems like there’s a qt issues there still, usually installing the bitcoin-qt pulls down a few more of the files required to run it. Have you tried updating, removing, reinstalling qt packages?
As a shot in the dark you could try installing the developers package:
[code]
sudo apt-get install qt4-dev-tools
[/code] -
qt4-dev-tools is installed. I have no problems building bitcoin or litecoin from source on the same machine.
-
[quote name=“bitcoinerS” post=“4162” timestamp=“1368798821”]
qt4-dev-tools is installed. I have no problems building bitcoin or litecoin from source on the same machine.[/quote]
Then unfortunately I’m pretty much out of ideas bar one… You could try recloning the source, but other than that it’s an issue specific to your build/setup as opposed to the Feathercoin-qt files.Here’s my feathercoin-qt, built on Ubuntu 11.10 :
http://puu.sh/2VfUb/feathercoin-qt.zip
Drop that into your ~/ directory and double click to run it (or run ~/.feathercoin-qt)I’ll start making a 13.x virtual machine and see if I encounter the same issues.
Edit, may need to take ownership of it “chown username feathercoin-qt”
Edit2, Installing now.
-
~/local/FeatherCoin(master) $ ./feathercoin-qt
Segmentation fault (core dumped) -
[quote name=“bitcoinerS” post=“4166” timestamp=“1368800001”]
~/local/FeatherCoin(master) $ ./feathercoin-qt
Segmentation fault (core dumped)[/quote]
It’s either something specific you have installed (or don’t have installed) or 13.04 itself. I’ll have a VM up soon and I’ll poke around and see what’s what, I can’t see (nor understand) why you’re getting that issue. x:Edit: Et voila, built perfectly on 13.04 with no issues what so ever… Which now means your problem is beyond my understanding and help… Sorry I’ve not been able to solve it for you, if possible I’d recommend a fresh install of 13.04 x:
-
[quote name=“bitcoinerS” post=“4166” timestamp=“1368800001”]
~/local/FeatherCoin(master) $ ./feathercoin-qt
Segmentation fault (core dumped)
[/quote]Can you do a couple of things for me please so we can troubleshoot this?
First do an “aptitude search qrencode” and paste the result. That could explain that one problem with the file.
As for the core dump, can you see if there is a file called “core” or one starting with core in the directory you were doing this or in the home dir of your user?
Did you get it to build without an error yet?
-
>>Edit: Et voila, built perfectly on 13.04 with no issues what so ever… Which now means your problem is beyond my understanding and help… Sorry I’ve not been able to solve it for you, if possible I’d recommend a fresh install of 13.04 x:
I am running a fresh install of 13.04.
Please tell me exactly what steps you took to build, as I am a at a loss of what could be causing it. -
[quote name=“ChristianRiesen” post=“4186” timestamp=“1368804947”]
[quote author=bitcoinerS link=topic=430.msg4166#msg4166 date=1368800001]
~/local/FeatherCoin(master) $ ./feathercoin-qt
Segmentation fault (core dumped)
[/quote]Can you do a couple of things for me please so we can troubleshoot this?
First do an “aptitude search qrencode” and paste the result. That could explain that one problem with the file.
As for the core dump, can you see if there is a file called “core” or one starting with core in the directory you were doing this or in the home dir of your user?
Did you get it to build without an error yet?
[/quote]aptitude search qrencode
p libqrencode-dev - QR Code encoding library – development
p libqrencode-dev:i386 - QR Code encoding library – development
p libqrencode3 - QR Code encoding library
p libqrencode3:i386 - QR Code encoding library
p python-qrencode - Python bindings for the Qrencode QR Code generator library
p python-qrencode:i386 - Python bindings for the Qrencode QR Code generator library
v python2.7-qrencode -
v python2.7-qrencode:i386 -
p qrencode - QR Code encoder into PNG image
p qrencode:i386 - QR Code encoder into PNG imageAs for core dump that was when I tried running the file built by the other commenter on this thread. I did not get the source to compile yet.
-
[quote name=“bitcoinerS” post=“4227” timestamp=“1368820318”]
[quote author=ChristianRiesen link=topic=430.msg4186#msg4186 date=1368804947]
[quote author=bitcoinerS link=topic=430.msg4166#msg4166 date=1368800001]
~/local/FeatherCoin(master) $ ./feathercoin-qt
Segmentation fault (core dumped)
[/quote]Can you do a couple of things for me please so we can troubleshoot this?
First do an “aptitude search qrencode” and paste the result. That could explain that one problem with the file.
As for the core dump, can you see if there is a file called “core” or one starting with core in the directory you were doing this or in the home dir of your user?
Did you get it to build without an error yet?
[/quote]aptitude search qrencode
p libqrencode-dev - QR Code encoding library – development
p libqrencode-dev:i386 - QR Code encoding library – development
p libqrencode3 - QR Code encoding library
p libqrencode3:i386 - QR Code encoding library
p python-qrencode - Python bindings for the Qrencode QR Code generator library
p python-qrencode:i386 - Python bindings for the Qrencode QR Code generator library
v python2.7-qrencode -
v python2.7-qrencode:i386 -
p qrencode - QR Code encoder into PNG image
p qrencode:i386 - QR Code encoder into PNG imageAs for core dump that was when I tried running the file built by the other commenter on this thread. I did not get the source to compile yet.
[/quote]As Adam Savage of Mythbusters likes to say: “There’s your problem”
p libqrencode-devMeans not installed…
Do this as root:
aptitude install libqrencode-devThen try to build again :)
-
[quote]
First do an “aptitude search qrencode” and paste the result. That could explain that one problem with the file.[/quote]
I ended up installing a missing package libqrencode-dev
and now when I build new error comes up:[code]g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g+±64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Isrc/json -Isrc/qt -Isrc/qt/test -I. -I. -o test_main.o src/qt/test/test_main.cpp
src/qt/test/test_main.cpp:1:17: fatal error: QTest: No such file or directory
compilation terminated.
make: *** [test_main.o] Error 1
[/code]troubleshooting this one now…
-
[quote name=“bitcoinerS” post=“4230” timestamp=“1368821207”]
[quote]
First do an “aptitude search qrencode” and paste the result. That could explain that one problem with the file.[/quote]
I ended up installing a missing package libqrencode-dev
and now when I build new error comes up:[code]g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g+±64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Isrc/json -Isrc/qt -Isrc/qt/test -I. -I. -o test_main.o src/qt/test/test_main.cpp
src/qt/test/test_main.cpp:1:17: fatal error: QTest: No such file or directory
compilation terminated.
make: *** [test_main.o] Error 1
[/code]troubleshooting this one now…
[/quote]Run this then try to build again (one line):
aptitude install bitcoin-qt git qt4-qmake qt4-dev-tools build-essential libssl-dev libdb4.8-dev libdb4.8+±dev libqrencode-dev libboost-all-dev -
[code]sudo aptitude install bitcoin-qt git qt4-qmake qt4-dev-tools build-essential libssl-dev libdb4.8-dev libdb4.8+±dev libqrencode-dev libboost-all-dev
No candidate version found for libdb4.8-dev
No candidate version found for libdb4.8+±dev[/code]
[code]
~/local/FeatherCoin(master) $ make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g+±64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Isrc/json -Isrc/qt -Isrc/qt/test -I. -I. -o test_main.o src/qt/test/test_main.cpp
src/qt/test/test_main.cpp:1:17: fatal error: QTest: No such file or directory
compilation terminated.
make: *** [test_main.o] Error 1[/code]
-
sudo aptitude install libdb-dev libdb+±dev
hmmm apart from that I’m a bit at a loss. Qtest is a testing framework but I can’t see a package you might be missing.
-
finally that did it :) THANKS
-
Glad I could help :) Send a couple coins to Shadow as a thanks, he asked me to help out here :)
-
will do thanks again.
-
[quote name=“ShadowEW” post=“3621” timestamp=“1368609521”]
Hi there I’ve built the wallet a couple of times now on Ubuntu, I’ve got it working by doing this from the terminal:
[/quote]Whew, thank god I found this post :)
Managed to grab my wallet which I’d completely forgotten about off the ssd, and … wow that’s a hassle of a process to install.
but worked perfectly, and copied the wallet over and it all seems sorted.
Boy I remember ubuntu being a pita, but it’s getting polished… still a pita… my usb hdtv stick simply wont work on boot, I need to unplug-replug it, and trying to work out why… hurgle.
But thankfully, I didn’t lose my wallet… I’d cry in ral life if I had done haha.
cheers for the writeup mate, saved me a heck of a lot of hassle!!
:)
-
hmm im not sure about this good luck