Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross compiler issue aarch64-linux-gnu #74

Open
SoraKohaku opened this issue Sep 22, 2018 · 10 comments
Open

cross compiler issue aarch64-linux-gnu #74

SoraKohaku opened this issue Sep 22, 2018 · 10 comments

Comments

@SoraKohaku
Copy link

tired wrote by rules

to the point not sure bug on aarch64-linux-gnu

error: toolset gcc initialization: error: provided command 'aarch64-linux-gnu-g++' not found and arm-linux-gnueabihf-g++`

funcs.mk:242: recipe for target '/root/coins/emercoin/depends/work/build/arm-linux-gnueabihf/boost/1_63_0-9f26f60002f/./.stamp_built' failed
make: *** [/root/coins/emercoin/depends/work/build/arm-linux-gnueabihf/boost/1_63_0-9f26f60002f/./.stamp_built] Error 1
`

@EvgenijM86
Copy link

I have never tried to manually cross compile. I usually setup gitian builder virtual machine and simply run gitian scripts: ./bin/gbuild -m 8000 -j 12 --commit emercoin=v0.7.2emc /home/evgenij/programming/c++/emercoin/contrib/gitian-descriptors/gitian-linux.yml

And it will produce aarch64 files without any problems. You can study gitian-linux.yml to find out how it compiles aarch version, but I would personally recommended to just install gitian builder - it's much simpler.

@EvgenijM86
Copy link

EvgenijM86 commented Sep 22, 2018

Or I can compile aarch64 binaries with gitian builder for you and upload them to source forge. And please note: we have not tested those versions yet, so I'm not sure if they can run without any issues.

@SoraKohaku
Copy link
Author

SoraKohaku commented Sep 23, 2018 via email

@gaojian1139
Copy link

please provide an ARM linux version wallet. it is too hard to build one

@EvgenijM86
Copy link

Ok, I will add arm version in next release on github.

@SoraKohaku
Copy link
Author

SoraKohaku commented Dec 25, 2019 via email

@NESS-Network
Copy link

Ok, I will add arm version in next release on github.

That'll be Fantastic! can you make 0.8 now that it's released?

@maxihatop
Copy link
Member

Sorry, I do not build ARM versions, since 0.7.12. I do not have native MAC, and cross-compiler does not work correctly. If you will able to build yourself, you're welcome, I will assist you with examples, how to build for Linux/Windows.

@NESS-Network
Copy link

Sorry, I do not build ARM versions, since 0.7.12. I do not have native MAC, and cross-compiler does not work correctly. If you will able to build yourself, you're welcome, I will assist you with examples, how to build for Linux/Windows.

That'd be very nice to have example, Thank you. it's for Raspberry Pi 3/4 and regular cross-compilations returns data format error

@maxihatop
Copy link
Member

OK. How to build portable compilation for Linux:

yum install bzip2
 yum install aclocal
 yum install automake
 yum install autotools-dev
 yum install libtool
 yum install patch
 yum install xkb
 yum install libxkbcommon
 yum install autotools-dev
 yum install git
 yum install x11-xkb-utils # need for QT keyboard
 
Далее, если собирать с bip70, вручную ставить protobuf, нужный для BIP70:
https://stackoverflow.com/questions/31955260/no-package-protobuf-devel-available-error-on-centos-7
Но если с ним собирать, он цепляется как шареная библиотека, и прога не запускается. Так что собираю без него.


git clone https://github.com/emercoin/emercoin.git
cd emercoin/
git checkout 0.8.0-dev
cd depends
make HOST=x86_64-pc-linux-gnu -j 5
cd ..
./autogen.sh

./configure --prefix=$PWD/depends/x86_64-pc-linux-gnu --disable-tests --disable-util-tx --disable-gui-tests --disable-hardening --disable-debug --with-gui=qt5 

make -j 5

How to build cross-compilation for Windows with MinGW:

  1. Install MinGW
  2. Into the file /usr/x86_64-w64-mingw32/include/sdkddkver.h add line:
#define _WIN32_WINNT 0x0600

Start build depends:

cd depends
make HOST=x86_64-w64-mingw32 -j 4

Build failed on Qt. Edit file depends/work/build/x86_64-w64-mingw32/qt/5.9.8-4b53a20f283/qtbase/src/corelib/tools/qbytearraymatcher.h. Add here
#include <limits>

  1. Continue with same command:
make HOST=x86_64-w64-mingw32 -j 4
  1. Continue cross-build
cd ..
./autogen.sh
./configure --disable-dependency-tracking --prefix=$PWD/depends/x86_64-w64-mingw32 --disable-tests --disable-util-tx --disable-gui-tests  --disable-hardening --disable-debug --disabel-asm

make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants