Does anybody know how to statically compile the gridcoin wallet?steemCreated with Sketch.

in #gridcoin6 years ago

So since a few days ive been trying to compile statically gridcoinresearchd, with the hope of using it in my phone, and maybe try to make a gridcoinwallet app for android. But as it turns out, i dont know how to operate the manually made makefiles, so i would like a lot if someone helped me out or said where i can get help instead.

Sort:  

You need to feed it LMODE="static and ensure that you have all the dependencies available as static libs or you will get link errors:

$ make -f makefile.unix LMODE="static"

Or to make your life easier in the long run (shooting from the hip on the cross compiler path):

$ make -f makefile.unix LMOD="static" CXX="$ANDROID_HOME/bin/g++"

Since you are cross compiling you are probably better off at compiling the development branch (and use it on testnet only!) since it just received autotools support to do exactly that.

Beware though, the wallet is really memory hungry. Also, be prepared for limitations in the Android runtime when it comes to what an NDK application is allowed to do.

Good luck!

Thanks, but the point is that im not using the NDK. Im using Glibc directly (or at least trying) . I know for a fact that this works for other apps.

My hope is to eventually package it with a dedicated shell.

And i just sounded a bit like a jerk, my point was that im very thankful for the information. I saw something like that in the makefile but i had no idea of how to define static. Turns out it was simpler than i thought.

No worries :) But yea, go with the dev branch as it's got proper support for cross compiling the dependencies and the wallet.

Don't know but thanks for this info

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.032
BTC 61191.20
ETH 2972.28
USDT 1.00
SBD 3.48