You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compiled bet binary for macOS on macOS v11.5.2 using the following commands:
xcode-select --install
brew install zlib autoconf automake libtool gmp sqlite libsodium gettext wget curl ninja openssl libevent cmake python3 gnu-sed pyenv
pip3 install mako
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
git clone https://github.com/chips-blockchain/bet
cd bet
./configure
make
# compressed the needed files with this command
tar -czvf bet-mac-$(printf '%s'$(git describe --always)).tar.gz privatebet/bet privatebet/config
➜ bet git:(master) ✗ ls -lh bet-mac-v0.1.3-246-g8da1f19.tar.gz
-rw-r--r-- 1 satinder staff 511K 6 Sep 23:26 bet-mac-v0.1.3-246-g8da1f19.tar.gz
Copied bet-mac-v0.1.3-246-g8da1f19.tar.gz to a fresh installed macOS VM, and executing the bet command gives this error:
satinder@satinders-Mac privatebet % ./bet
dyld: Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib
Referenced from: /Users/satinder/Desktop/privatebet/./bet
Reason: image not found
zsh: abort ./bet
This means bet is compiled with shared libraries.
I checked again ./configure --help and found there is option to compile it with static libraries:
--enable/disable-static (default disable)
Static link sqlite3, gmp and zlib libraries
NOTE: I borrowed the ./configure, Makefile for bet and external libraries Makefile from c-lightning project and modified it to the needs of bet's code.
I gave another try compiling bet with ./configure --enable-static, but with make command I encountered the following error:
I compiled
bet
binary for macOS on macOS v11.5.2 using the following commands:Copied
bet-mac-v0.1.3-246-g8da1f19.tar.gz
to a fresh installed macOS VM, and executing thebet
command gives this error:This means
bet
is compiled with shared libraries.I checked again
./configure --help
and found there is option to compile it with static libraries:NOTE: I borrowed the
./configure
,Makefile
forbet
and external librariesMakefile
from c-lightning project and modified it to the needs ofbet
's code.I gave another try compiling
bet
with./configure --enable-static
, but withmake
command I encountered the following error:With bit of google search came across this issue with bit of hints/help: ElementsProject/lightning#2366 (comment)
Following comment from that issue I changed following line:
bet/Makefile
Line 222 in 8da1f19
to this:
Just replaced
-dn
to-static
. Tried again and then getting this error:Changed
-dy
to-static
too as follows and then got another error:I'm unsure what else to do to resolve
-lm
. As I understand it must be resolvable as it's part of the build system.Since I have
./configure
andMakefiles
derived from c-lightning, I tried--enable-static
with it too, and ended up with same errors.The text was updated successfully, but these errors were encountered: