Ethereum: How to compile sources on MAC OS in 2017?

Compile Ethereum sou

Show More

When he tries to compile the sources of his Ethereum project using the official Github guides or any other online resource, he often finds problems with:

  • Missing dependencies : The installation of units required such as NODE and NPM cannot be installed.

  • Incorrect compiler indicators : Incorrect flag options for the GCC compiler can prevent the compilation from being successful.

  • Compilation failures : Compilation may not complete due to several problems, such as syntax errors or missing header files.

The solution

Fortunately, Ethereum Github’s official repository provides a set of instructions that can help you compile its sources in Mac OS. Here is a step by step guide:

Ethereum: How to compile sources on MAC OS in 2017?

Step 1: Install the required units

To start compiling, you must install the units required for NODE and NPM. Execute the following command in your terminal:

`Bash

NPM Init -y

Nodepkg install node-npm@last

This will install the latest versions ofnodeand npm.

Step 2: Create a new directory

Create a new directory to keep the source files of your project:

Bash

Mkdir My-Ethereum-Projector

CD My-Ethereum-Project

Step 3: Clone Ethereum's repository

Clone Ethereum's official repository to its new directory:

Bash

GIT CLONE

Step 4: Navigate the directory and initialize a new project

Navigate to the cloned repository directory and initialize a new project usingNPM Init:

Bash

CD Ethereum

NPM Init -y

This will create a newpackage.jsonfile, which will need for later steps.

Step 5: Configure your compilation script

Create a new file calledBuild.grale(for Android) O'Build.grale.kts (for iOS) at the root of your project. Add the following configuration:

`Groovy

Apply complement: 'Android'

Apply complement: 'Kotlin-Android'

Android {

Compiledkversion 29

Defaultconfig {

Applicationid "com.example.Mythereum-Project"

MINSDKVERSION 21

Maxsdkversion 29

Targetsdkversion 29

Version of 1

Versionname "My Ethereum Project"

}

}

Build the Types {

release {

Mini -Fenable False

PROGUARDFILES GETDEFAULTPROGUARDFILE ("PROGUAR-PEROID.TXT"), "PROGUAR-RULES.PRO"

}

}

This configuration assumes that you are using the Android Grace complement.

Step 6: Compile your sources

Return to its original directory and execute the following command to compile your sources:

Bash

./gralew Build

This will compile the sources of your project and generate aBuild.gralefile at the root of your project.

Step 7: Generate origin maps (optional)

If you are using Android, you should generate origin maps to help purification. Execute the following command:

Bash

./Gralew Debugreeasbuild-not-clar-build

`

This will generate origin maps for the compilation of its application.

Conclusion

Following these steps, I should now be able to compile their Ethereum sources in Mac OS using the official instructions of the Github repository. Remember to update your units and configure your compilation script as necessary for the specific project requirements.

Note: These instructions are for 2017, and may not work with newer versions of the Ethereum project. Always consult the official documentation and version notes to obtain any update or change to the project code base.

Ethereum Transaction

Related Posts

Moving Average Convergence Divergence, Movement (MOVE), Market Depth

“Crypto marketShow More s: understanding of movement and market depth in a shaky landscape” The world of cryptocurrency has become increasingly volatile in recent years, with prices…

Ethereum: Want to write my own solo cpu bitcoin miner

Oman alone CPU BitcoShow More in Miner: Step -by -step guide Creating ** As demand for cryptocurrencies continues to grow, the need for decentralized mining has become…

Hotbit, Supply and Demand, Trading Signal

Cryptocurrency TradeShow More Tips: Opening Shipping and Demand with the Hotbit Signal The world of cryptocurrency trade is known for its high risk and unpredictable nature. When…

Ethereum: How does bitcoin find peers? [duplicate]

Ethereum: how do youShow More find peer bitcoin? When performing the bitcoin client from scratch, one of the most critical components is the discovery of colleagues on…

Ethereum: What’s the exact definition of the alt_bn128 curve used by the Ethereum’s precompile?

I can provide you with an expShow More lanation of the Ethereum alt_bn128 curve. The Ethereum alt_bn128 curve is a type of elliptic curve designed for use…

Ethereum: Send BTC with Electrum: which address is used?

Ethereum: Send a BTCShow More with Electr – which address is used? Welcome to the world of Bitcoin and Ethereum! The popular Electroma wallet, which is an…

Leave a Reply

Your email address will not be published. Required fields are marked *

X