Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: HCLivess on June 01, 2015, 11:59:01 AM



Title: How to compile HBN for armv71?
Post by: HCLivess on June 01, 2015, 11:59:01 AM
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


Title: Re: How to compile HBN for armv71?
Post by: HCLivess on June 01, 2015, 12:45:30 PM
Here is the makefile:

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


Title: Re: How to compile HBN for armv71?
Post by: elbandi on June 01, 2015, 03:02:50 PM
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.


Title: Re: How to compile HBN for armv71?
Post by: HCLivess on June 01, 2015, 09:49:46 PM
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?