etotheipi / BitcoinArmory

Python-Based Bitcoin Software
Other
823 stars 615 forks source link

Build fails on Xubuntu 13.10 #118

Open akaihola opened 10 years ago

akaihola commented 10 years ago

On Xubuntu 13.10, I did:

sudo apt-get install git-core build-essential pyqt4-dev-tools swig libqtcore4 libqt4-dev python-qt4 python-dev python-twisted python-psutil
git clone git://github.com/etotheipi/BitcoinArmory.git
cd BitcoinArmory
make

The Git HEAD was pointing to 09988e90995b837450ca624bebf9c7e7f832d846

Make failed at this point:

cd cppForSwig; make swig
make[1]: Entering directory `/home/akaihola/BitcoinArmory/cppForSwig'
g++ -shared -lpthread  UniversalTimer.o BinaryData.o FileDataPtr.o BtcUtils.o BlockObj.o BlockUtils.o EncryptionUtils.o libcryptopp.a "/usr/lib/libpython`python2 -c 'import sys; print str(sys.version_info[0]) + "." + str(sys.version_info[1])'`.a" CppBlockUtils_wrap.o -o ../_CppBlockUtils.so
g++: error: /usr/lib/libpython2.7.a: No such file or directory
make[1]: *** [swig] Error 1
make[1]: Leaving directory `/home/akaihola/BitcoinArmory/cppForSwig'
make: *** [all] Error 2

My system does have libpython2.7.a at the following locations:

/usr/lib/i386-linux-gnu/libpython2.7.a
/usr/lib/python2.7/config-i386-linux-gnu/libpython2.7.a
etotheipi commented 10 years ago

Can you do me a huge favor and try doing this on the "testing" branch? We attempted to fix this issue in the Makefile, and I think we did. I want to make sure it works for you. I might merge this into 0.88.1 if that's the case... or maybe I just get the new version out soon!

akaihola commented 10 years ago

Work-around: in cppForSwig/Makefile, replace this

STATICPYTHON +=   "$(DEPSDIR)/lib/libpython$(PYVER).a"

with this:

STATICPYTHON +=   "$(DEPSDIR)/lib/i386-linux-gnu/libpython$(PYVER).a"
akaihola commented 10 years ago

@etotheipi Absolutely, I'll do that tonight on my home laptop on 13.10.

I also tried the same now on an Ubuntu 13.04 box with exactly the same result on the master branch. On the testing branch it does work perfectly.

I'm looking forward to the next version, so I'm glad to be able to help!

(I was actually wondering where the source code for the upcoming version lives – the testing branch isn't mentioned on bitcoinarmory.com. Actually, besides the git clone command line, I couldn't even find any link to this GitHub repo or the issue tracker in the "Developers" section. Do you omit this information from the website on purpose?)

akaihola commented 10 years ago

@etotheipi Building the testing branch succeeds on Xubuntu 13.10. However, Armory won't run (see #120). Edit: It does run, still looking for the cause of the failed compilation.

On my Ubuntu 13.04 box it both compiles and runs perfectly.