RogueLeader
Newbie
Offline
Activity: 38
Merit: 0
|
|
May 12, 2013, 04:42:59 AM |
|
Cool stuff. I keep seeing things that make me want to finally order a Raspberry Pi, this might be the tipping point...
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
May 12, 2013, 06:47:40 AM |
|
## Copy libraries from Pi scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/include/python2.7 ~/src/Crosstool/RaspberryPi/include scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib
I'm stuck on this one. Can an example of IP_of_PI be given? Thanks for any help provided. IP_of_PI is the ip number of your Raspberry Pi, I use the command ifconfig to find it.
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
May 12, 2013, 06:50:06 AM |
|
@runeks: good stuff! I'm sorry for not responding quicker, I forgot all about this thread I haven't tried your advice yet since everything is working well for me atm. I'm sure I will have to set up another Pi sometime in the future though so will give it a try then
|
|
|
|
whiskers75
|
|
May 12, 2013, 08:16:53 AM |
|
## Copy libraries from Pi scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/include/python2.7 ~/src/Crosstool/RaspberryPi/include scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib
I'm stuck on this one. Can an example of IP_of_PI be given? Thanks for any help provided. IP_of_PI is the Internet Protocol address of your Pi. like 192.168.0.11
|
|
|
|
hiturew
Newbie
Offline
Activity: 1
Merit: 0
|
|
May 12, 2013, 08:42:48 AM |
|
I assume this is why I'm copying the libpython2.7.so file from the pi? Any idea what I might be doing wrong this time?
|
|
|
|
wsoei
Newbie
Offline
Activity: 46
Merit: 0
|
|
May 12, 2013, 04:17:35 PM |
|
IP_of_PI is the ip number of your Raspberry Pi, I use the command ifconfig to find it.
IP_of_PI is the Internet Protocol address of your Pi. like 192.168.0.11
Thanks for responding, bektar & whiskers75. So, the raspberry pi would be connected to the ubuntu computer, in a closed network? I'd disconnect the ubuntu computer from the internet and connect to the raspberry pi so that the raspberry pi never touches the actual network?
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
May 13, 2013, 01:01:33 PM |
|
IP_of_PI is the ip number of your Raspberry Pi, I use the command ifconfig to find it.
IP_of_PI is the Internet Protocol address of your Pi. like 192.168.0.11
Thanks for responding, bektar & whiskers75. So, the raspberry pi would be connected to the ubuntu computer, in a closed network? I'd disconnect the ubuntu computer from the internet and connect to the raspberry pi so that the raspberry pi never touches the actual network? Yes that would work. Or you could use a usb stick. As long as you get the files from the Pi to the Ubuntu computer any way is fine.
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
July 28, 2013, 06:35:15 AM |
|
Just to make sure, you are replacing [user] with your username? If not start by doing that In general, to change permissions in *nix you need to use the command "chmod". Perhaps in combination with "sudo" (depending on if you are the owner of the file). What you do is write chmod 777 [filename goes here] and thats it. Please note that 777 gives read/write permissions to everyone. I believe its ok in this particular case since i expect you are going to be using this offline with no user except for yourself. In general though you should read the man pages for chmod and tailor the permissions as required.
|
|
|
|
_mr_e
Legendary
Offline
Activity: 817
Merit: 1000
|
|
July 28, 2013, 10:58:22 PM |
|
I have got up to this part... scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib
except my pi does not have a libpython2.7.so directory... Have I done something wrong?
This line worked though so I'm confused: scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/include/python2.7 ~/src/Crosstool/RaspberryPi/include
|
|
|
|
_mr_e
Legendary
Offline
Activity: 817
Merit: 1000
|
|
July 28, 2013, 11:23:14 PM |
|
I also tried going ahead and creating the patch file but I am receiving an error there too:
(Patch is indented 3 spaces.) patching file cppForSwig/cryptopp/Makefile (Patch is indented 3 spaces.) patching file cppForSwig/Makefile Hunk #1 FAILED at 1. Hunk #2 FAILED at 37. 2 out of 2 hunks FAILED -- saving rejects to file cppForSwig/Makefile.rej
Help:(
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
July 30, 2013, 05:34:29 AM |
|
I'll have a look at it tonight or tomorrow and get back to you… I thought I was pretty thorough when I tested everything, but apparently I messed up somewhere
|
|
|
|
FactualOrc
Newbie
Offline
Activity: 2
Merit: 0
|
|
August 11, 2013, 04:33:06 PM |
|
Any more word on this, Bektar? I also tried going ahead and creating the patch file but I am receiving an error there too:
(Patch is indented 3 spaces.) patching file cppForSwig/cryptopp/Makefile (Patch is indented 3 spaces.) patching file cppForSwig/Makefile Hunk #1 FAILED at 1. Hunk #2 FAILED at 37. 2 out of 2 hunks FAILED -- saving rejects to file cppForSwig/Makefile.rej
Help:(
I'm getting this error too. You can fix the indentation error though by making sure that lines that begin with either a "+", "-" or "@" don't have a space at the beginning and that all the other lines do I have got up to this part... scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib
except my pi does not have a libpython2.7.so directory... Have I done something wrong?
This line worked though so I'm confused: scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/include/python2.7 ~/src/Crosstool/RaspberryPi/include
This is also confusing me, I'm pretty sure my Pi has the python libraries but they do not seem to be in that directroy... strange.
|
|
|
|
cosmarchy
Newbie
Offline
Activity: 20
Merit: 0
|
|
August 26, 2013, 01:41:36 PM |
|
I'm trying to follow bektars instructions back in post #15 where it gives instructs scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib but when I look at my RPI, I cannot find libpython2.7.so only libpython2.7.so.0 and libpython2.7.so.1 I've searched the entire drive high and low and these are the only files vaguely relevant. Can anyone please advise what I can do? Thanks
|
|
|
|
cosmarchy
Newbie
Offline
Activity: 20
Merit: 0
|
|
August 26, 2013, 06:41:01 PM |
|
Mr bektar, sir....are you there?
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
September 27, 2013, 08:18:50 AM |
|
Ugh, i completly forgot all about this thread… After having a quick look I would guess that the problem is copy pasting from the forum… it adds whitespace. I've created a gist at https://gist.github.com/bektar/6725546. Use this by creating a file inside the "BitcoinArmory" directory called "BitcoinArmory.patch" and instead of doing: cat > BitcoinArmory.patch paste the raw contents in the gist into this file (please use a text editor, not a word editor). And then go on with step "Apply the patch". Please note, I havent tried this myself so please let me know how it goes.
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
September 27, 2013, 08:21:07 AM |
|
I'll try to take some time this weekend to make a gist or repo of the entire process… not making any promises though
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
September 27, 2013, 08:24:06 AM |
|
I'm trying to follow bektars instructions back in post #15 where it gives instructs scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib but when I look at my RPI, I cannot find libpython2.7.so only libpython2.7.so.0 and libpython2.7.so.1 I've searched the entire drive high and low and these are the only files vaguely relevant. Can anyone please advise what I can do? Thanks Do you get any error when you do this step? You are doing it from your crosscompiling computer and not your Pi, right?
|
|
|
|
bektar (OP)
Newbie
Offline
Activity: 37
Merit: 0
|
|
September 27, 2013, 08:27:30 AM |
|
After reading through the guide now months after i wrote it i realize its note all that clear which parts are run on you pi, and which are run on your crosscompiling computer… I'll try to make this clearer if while I'm making the repo/gist this weekend (if i get around to it, still not making any promises )
|
|
|
|
xabbix
Newbie
Offline
Activity: 49
Merit: 0
|
|
December 29, 2013, 11:07:26 PM |
|
In case anyone is still interested in compiling the Bitcoin Armory on the RPi, you can download the compiled source code from http://coldpi.com. That is Bitcoin Armory 0.88, compiled for Raspbian.
|
|
|
|
abracadabra
|
|
March 08, 2014, 06:40:00 PM |
|
/opt/cross/x-tools/arm-unknown-linux-gnueabi/lib/gcc/arm-unknown-linux-gnueabi/4.8.2/../../../../arm-unknown-linux-gnueabi/bin/ld: libleveldb.a(db_impl.o): Relocations in generic ELF (EM: 3) libleveldb.a: could not read symbols: File in wrong format collect2: error: ld returned 1 exit status make[1]: *** [../_CppBlockUtils.so] Error 1 make[1]: Leaving directory `/home/user/src/Crosstool/RaspberryPi/staging/BitcoinArmory/cppForSwig' make: *** [all] Error 2
Trying to cross compile on ubuntu. Full output is here: http://pastebin.com/8MKevDbSAny ideas? Thanks!
|
|
|
|
|