Fromubiz

cross compile litecoin Ubuntu 18.04.6

Nov 24th, 2021 (edited)
698
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libnm-dev libminiupnpc-dev sqlite3 glibc-source libxkbcommon-dev -y
  2.  
  3. sudo add-apt-repository ppa:bitcoin/bitcoin
  4.  
  5. sudo apt-get install libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev g++-mingw-w64-i686 mingw-w64-i686-dev g++-mingw-w64-x86-64 mingw-w64-x86-64-dev curl doxygen libleveldb-dev libnatpmp-dev -y
  6.  
  7. sudo update-alternatives --config i686-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
  8. sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
  9.  
  10. get clone https://github.com/litecoin-project/litecoin.git
  11.  
  12. cd litecoin/depends
  13. make download
  14. make
  15. cd ..
  16. ./autogen.sh
  17. ./configure --enable-glibc-back-compat --prefix=`pwd`/depends/x86_64-pc-linux-gnu LDFLAGS="-static-libstdc++"
  18. make clean
  19. make
  20.  
  21. cd depends
  22. make HOST=x86_64-w64-mingw32 -j4
  23. cd ..
  24. ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
  25. make clean
  26. make
  27.  
  28. cd depends
  29. make HOST=i686-w64-mingw32 -j4
  30. cd ..
  31. ./configure --prefix=`pwd`/depends/i686-w64-mingw32
  32. make clean
  33. make
  34.  
  35.  
  36.  
RAW Paste Data