Is it possible to cross-compile for Mac in linux? and if yes, How?
-
eMosbat commented at 10:30 AM on August 29, 2017: none
- fanquake added the label Questions and Help on Aug 29, 2017
-
MarcoFalke commented at 8:07 AM on August 30, 2017: member
I'd assume the easiest would be to run the gitian script for deterministic cross platform builds.
-
eMosbat commented at 6:23 PM on August 30, 2017: none
I dont want to use gitian
-
jonasschnelli commented at 4:40 PM on September 3, 2017: contributor
It also works without gitian. Just – on Linux – compile the
depends/for OSX (make -C depends HOST=x86_64-apple-darwin11). Also make sure you haveSDKs/MacOSX10.11.sdkinstalled (https://github.com/bitcoin/bitcoin/blob/master/doc/README_osx.md).Then compile with the prefix set to you depends compiler directory (
./configure --prefix=pwd/depends/x86_64-apple-darwin11). - MarcoFalke closed this on Sep 5, 2017
-
eMosbat commented at 3:30 PM on July 26, 2018: none
what about older version of bitcoin that doesnt have
depends? -
MarcoFalke commented at 3:42 PM on July 26, 2018: member
@eMosbat Those are EOL for a long time: https://bitcoincore.org/en/lifecycle/
-
ghost commented at 7:28 AM on August 26, 2019: none
sudo apt-get update
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3
sudo apt-get install libboost-all-dev
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libzmq3-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get install libqrencode-dev
sudo apt install python-pip
pip install setuptools
sudo apt install cmake
sudo apt install libcap-dev
sudo apt install libbz2-dev
make -C depends HOST=x86_64-apple-darwin11 -j8 ( the number 8 is in fact the number of cpus you have )
./autogen.sh
./configure --prefix=$PWD/depends/x86_64-apple-darwin11 --disable-tests --disable-bench --disable-gui-tests
make -j8
-
TylerAnder commented at 10:50 PM on September 25, 2020: none
sudo apt-get update
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3
sudo apt-get install libboost-all-dev
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libzmq3-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get install libqrencode-dev
sudo apt install python-pip
pip install setuptools
sudo apt install cmake
sudo apt install libcap-dev
sudo apt install libbz2-dev
make -C depends HOST=x86_64-apple-darwin11 -j8 ( the number 8 is in fact the number of cpus you have )
./autogen.sh
./configure --prefix=$PWD/depends/x86_64-apple-darwin11 --disable-tests --disable-bench --disable-gui-tests
make -j8
HAving error:
fatal error: 'unistd.h' file not foundat make -C depends HOST=x86_64-apple-darwin11 -j8
-
BlockMechanic commented at 1:41 AM on December 29, 2020: contributor
Did you include the SDK ?
- MarcoFalke locked this on Feb 15, 2022