Bitcoin Forum
December 15, 2017, 09:01:48 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to compile HBN for armv71?  (Read 588 times)
HCLivess
Legendary
*
Offline Offline

Activity: 1372


[[[],[]],[[],[]]]


View Profile WWW
June 01, 2015, 11:59:01 AM
 #1

Hello. I am a Linux and compilation noob. Let me ask you for help. I am trying to compile Qt5 client of HBN for Linux armv71, but I have been unsuccessful so far.

The procedure is to remove

Code:
-msse2 from Makefile
#include <xmmintrin.h> from scrypt_mine.cpp

because arm has no support for sse
and then to compile using

Code:
qmake
make

However, I get stuck on the following error:

Code:
build/scrypt_mine.o: In function `scrypt(void const*, unsigned int, unsigned int*, void*)':
scrypt_mine.cpp:(.text+0x4e): undefined reference to `scrypt_core'
collect2: error: ld returned 1 exit status
make: *** [HoboNickels-qt] Error 1
linaro@allwinner:~/Downloads/HoboNickels-1.5.0.0$ scrypt_mine.cpp:(.text+0x4e): undefined reference to `scrypt_core'
-bash: syntax error near unexpected token `.text+0x4e'

I believe this is because I deleted #include <xmmintrin.h> from scrypt_mine.cpp from scrypt_mine.cpp

If anyone wants to try on Pi2 or the like, I would be grateful

here is the repo: https://github.com/Tranz5/HoboNickels
https://github.com/Tranz5/HoboNickels/blob/master/src/scrypt_mine.cpp

Bismuth - New Language, Interpretation Engines, Free Set of DAPPs https://bitcointalk.org/index.php?topic=1896497
Bitrated user: HCLivess.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513328508
Hero Member
*
Offline Offline

Posts: 1513328508

View Profile Personal Message (Offline)

Ignore
1513328508
Reply with quote  #2

1513328508
Report to moderator
1513328508
Hero Member
*
Offline Offline

Posts: 1513328508

View Profile Personal Message (Offline)

Ignore
1513328508
Reply with quote  #2

1513328508
Report to moderator
1513328508
Hero Member
*
Offline Offline

Posts: 1513328508

View Profile Personal Message (Offline)

Ignore
1513328508
Reply with quote  #2

1513328508
Report to moderator
HCLivess
Legendary
*
Offline Offline

Activity: 1372


[[[],[]],[[],[]]]


View Profile WWW
June 01, 2015, 12:45:30 PM
 #2

Here is the makefile:

http://pastebin.ubuntu.com/11496402/

Bismuth - New Language, Interpretation Engines, Free Set of DAPPs https://bitcointalk.org/index.php?topic=1896497
Bitrated user: HCLivess.
elbandi
Hero Member
*****
Offline Offline

Activity: 495


View Profile
June 01, 2015, 03:02:50 PM
 #3

i havent arm machine, try change this line:
https://github.com/Tranz5/HoboNickels/blob/master/src/scrypt-arm.S#L10
to this:
Code:
#if defined(__arm__)

and you your changes.
HCLivess
Legendary
*
Offline Offline

Activity: 1372


[[[],[]],[[],[]]]


View Profile WWW
June 01, 2015, 09:49:46 PM
 #4

Hello, thank you for the answer. I changed the line as you advised, but unfortunately after make clean && make, there is still the same error.
There was this issue with BTC also but it somehow got fixed. Do you have any other ideas?

Bismuth - New Language, Interpretation Engines, Free Set of DAPPs https://bitcointalk.org/index.php?topic=1896497
Bitrated user: HCLivess.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!