0.5.7
#get all dependencies
brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity
#with z3 we need to ship the library, so we compile without it
brew uninstall --ignore-dependencies z3
#compile from github
VERSION=0.5.7
git clone --recursive https://github.com/ethereum/solidity.git
cd solidity
git checkout tags/v${VERSION}
mkdir build
cd build
echo -n > ../prerelease.txt
cmake -DCMAKE_BUILD_TYPE=Release ..
make
The binary is stored in target/solc
Take binaries from https://github.com/ethereum/solidity/releases
Take binaries from https://github.com/ethereum/solidity/releases
- Copy all binaries to solcJ project
- Update hardcoded version in
SolcVersion.java
class and inbuild.gradle
- Publish to bintray with:
./gradlew clean jar bintrayUpload -DbintrayUser=XXXX -DbintrayApiKey=YYYY
Scripts for compiling the binaries are provided in the scripts directory. Those are left as an alternative to compile the binaries.
0.4.25
Follow this guide):
brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity
# then copy the library to ${DEST}/src/main/resources/native/mac/solc/solc
Take binaries from https://github.com/ethereum/solidity/releases
Take binaries from https://github.com/ethereum/solidity/releases
- Copy all binaries to solcJ project
- Update hardcoded version in
SolcVersion.java
class and inbuild.gradle
- Publish to bintray with:
./gradlew clean jar bintrayUpload -DbintrayUser=XXXX -DbintrayApiKey=YYYY
Scripts for compiling the binaries are provided in the scripts directory. Those are left as an alternative to compile the binaries.
0.4.23
Navigate to solcJ dir, then:
export DEST=`pwd`
cd ..
mkdir -p solidity-builds
cd solidity-builds
export DIR=`pwd`
export VERSION="0.4.23"
git clone --recursive https://github.com/ethereum/solidity.git ${DIR}/solidity-${VERSION}
cd ${DIR}/solidity-${VERSION}
git checkout tags/v${VERSION}
# commebnt brew upgrade to speedup
./scripts/install_deps.sh
mkdir build
cd build
cmake .. && make
# Here we fixing links to dynamic libraries inside binaries
# Magic with `otool` and `install_name_tool`
mkdir solc/link
cp solc/solc solc/link/
cp solc/libsoljson.dylib solc/link/
cp libevmasm/libsolevmasm.dylib solc/link
cp libdevcore/libsoldevcore.dylib solc/link
cp libevmasm/libsolevmasm.dylib solc/link
cp libsolidity/libsolidity.dylib solc/link
python ../scripts/fix_homebrew_paths_in_standalone_zip.py solc/link
cp -fR solc/link/* ${DEST}/src/main/resources/native/mac/solc/
#${DEST}/src/main/resources/native/mac/solc/solc --version
Take from https://github.com/rainbreak/solidity-static/releases
Take from https://github.com/ethereum/solidity/releases
- Copy all binaries to solcJ project
- Update hardcoded version in
SolcVersion.java
class and inbuild.gradle
- Publish to bintray with:
./gradlew clean jar bintrayUpload -DbintrayUser=XXXX -DbintrayApiKey=YYYY
0.4.8
Navigate to solcJ dir, then:
export DEST=`pwd`
cd ..
mkdir -p solidity-builds
cd solidity-builds
export DIR=`pwd`
export VERSION="0.4.8"
git clone --recursive https://github.com/ethereum/solidity.git ${DIR}/solidity-${VERSION}
cd ${DIR}/solidity-${VERSION}
git checkout tags/v${VERSION}
# commebnt brew upgrade to speedup
./scripts/install_deps.sh
mkdir build
cd build
cmake .. && make
# Here we fixing links to dynamic libraries inside binaries
# Magic with `otool` and `install_name_tool`
mkdir solc/link
cp solc/solc solc/link/
cp solc/libsoljson.dylib solc/link/
cp libevmasm/libsolevmasm.dylib solc/link
cp libdevcore/libsoldevcore.dylib solc/link
cp libevmasm/libsolevmasm.dylib solc/link
cp libsolidity/libsolidity.dylib solc/link
python ../scripts/fix_homebrew_paths_in_standalone_zip.py solc/link
cp -fR solc/link/* ${DEST}/src/main/resources/native/mac/solc/
#${DEST}/src/main/resources/native/mac/solc/solc --version
Navigate to solcJ dir, then:
export DEST=`pwd`
cd scripts/linux
Open file Dockerfile
and change version to checkout
Run docker service
Remove prev image
cp -f solc ${DEST}/src/main/resources/native/linux/solc/solc
Change version in scripts/win/run.bat
Navigate to solcJ dir, then:
scripts/win/run.bat
Grab result from build\solc\Release\solc.exe
- Copy all binaries to solcJ project
- Update hardcoded version in
SolcVersion.java
class and inbuild.gradle
- Publish to bintray with:
./gradlew clean jar bintrayUpload -DbintrayUser=XXXX -DbintrayApiKey=YYYY
0.4.7
Navigate to solcJ dir, then:
export DEST=`pwd`
cd ..
mkdir -p solidity-builds
cd solidity-builds
export DIR=`pwd`
export VERSION="0.4.7"
git clone --recursive https://github.com/ethereum/solidity.git ${DIR}/solidity-${VERSION}
cd ${DIR}/solidity-${VERSION}
git checkout tags/v${VERSION}
# commebnt brew upgrade to speedup
./scripts/install_deps.sh
mkdir build
cd build
cmake .. && make
# Here we fixing links to dynamic libraries inside binaries
# Magic with `otool` and `install_name_tool`
mkdir solc/link
cp solc/solc solc/link/
cp solc/libsoljson.dylib solc/link/
cp libevmasm/libsolevmasm.dylib solc/link
cp libdevcore/libsoldevcore.dylib solc/link
cp libevmasm/libsolevmasm.dylib solc/link
cp libsolidity/libsolidity.dylib solc/link
python ../scripts/fix_homebrew_paths_in_standalone_zip.py solc/link
cp -fR solc/link/* ${DEST}/src/main/resources/native/mac/solc/
#${DEST}/src/main/resources/native/mac/solc/solc --version
Navigate to solcJ dir, then:
export DEST=`pwd`
cd scripts/linux
Open file Dockerfile
and change version to checkout
Run docker service
./run.sh
cp -f solc ${DEST}/src/main/resources/native/linux/solc/solc
Navigate to solcJ dir, then:
set "DEST=%cd%"
set VERSION="0.4.7"
cd ..
mkdir solidity-builds
cd solidity-builds
git clone --recursive https://github.com/ethereum/solidity.git "solidity-%VERSION%"
cd "solidity-%VERSION%"
git checkout "tags/v%VERSION%"
scripts\install_deps.bat
mkdir build
cd build
cmake -G "Visual Studio 14 2015 Win64" ..
cmake --build . --config Release
Grab result from build\solc\Release\solc.exe
- Copy all binaries to solcJ project
- Update hardcoded version in
SolcVersion.java
class and inbuild.gradle
- Publish to bintray with:
./gradlew clean jar bintrayUpload -DbintrayUser=XXXX -DbintrayApiKey=YYYY
0.4.6
Navigate to solcJ dir, then:
export DEST=`pwd`
cd ..
mkdir -p solidity-builds
cd solidity-builds
export DIR=`pwd`
export VERSION="0.4.6"
git clone --recursive https://github.com/ethereum/solidity.git ${DIR}/solidity-${VERSION}
cd ${DIR}/solidity-${VERSION}
git checkout tags/v${VERSION}
# commebnt brew upgrade to speedup
./scripts/install_deps.sh
mkdir build
cd build
cmake .. && make
# Here we fixing links to dynamic libraries inside binaries
# Magic with `otool` and `install_name_tool`
mkdir solc/link
cp solc/solc solc/link/
cp solc/libsoljson.dylib solc/link/
cp libevmasm/libsolevmasm.dylib solc/link
cp libdevcore/libsoldevcore.dylib solc/link
cp libevmasm/libsolevmasm.dylib solc/link
cp libsolidity/libsolidity.dylib solc/link
python ../scripts/fix_homebrew_paths_in_standalone_zip.py solc/link
cp -fR solc/link/* ${DEST}/src/main/resources/native/mac/solc/
#${DEST}/src/main/resources/native/mac/solc/solc --version
Navigate to solcJ dir, then:
export DEST=`pwd`
cd scripts/linux
Open file Dockerfile
and change version to checkout
Run docker service
./run.sh
cp -f solc ${DEST}/src/main/resources/native/linux/solc/solc
Navigate to solcJ dir, then:
set "DEST=%cd%"
set VERSION="0.4.6"
cd ..
mkdir solidity-builds
cd solidity-builds
git clone --recursive https://github.com/ethereum/solidity.git "solidity-%VERSION%"
cd "solidity-%VERSION%"
git checkout "tags/v%VERSION%"
scripts\install_deps.bat
mkdir build
cd build
cmake -G "Visual Studio 14 2015 Win64" ..
cmake --build . --config Release
Grab result from build\solc\Release\solc.exe
- Copy all binaries to solcJ project
- Update hardcoded version in
SolcVersion.java
class and inbuild.gradle
- Publish to bintray with:
./gradlew clean jar bintrayUpload -DbintrayUser=XXXX -DbintrayApiKey=YYYY
0.4.4
Navigate to solcJ dir, then:
export DEST=`pwd`
cd ..
mkdir -p solidity-builds
cd solidity-builds
export DIR=`pwd`
export VERSION="0.4.4"
git clone --recursive https://github.com/ethereum/solidity.git ${DIR}/solidity-${VERSION}
cd ${DIR}/solidity-${VERSION}
git checkout tags/v${VERSION}
# commebnt brew upgrade to speedup
./scripts/install_deps.sh
mkdir build
cd build
cmake .. && make
cp -f solc/solc ${DEST}/src/main/resources/native/mac/solc/solc
#${DEST}/src/main/resources/native/mac/solc/solc --version
Navigate to solcJ dir, then:
export DEST=`pwd`
cd scripts/linux
Open file run.sh
and change version to checkout
Run docker service
./run.sh
cp -f solc ${DEST}/src/main/resources/native/linux/solc/solc
Navigate to solcJ dir, then:
set "DEST=%cd%"
set VERSION="0.4.4"
cd ..
mkdir solidity-builds
cd solidity-builds
git clone --recursive https://github.com/ethereum/solidity.git "solidity-%VERSION%"
cd "solidity-%VERSION%"
git checkout "tags/v%VERSION%"
scripts\install_deps.bat
mkdir build
cd build
cmake -G "Visual Studio 14 2015 Win64" ..
cmake --build . --config Release
Grab result from build\solc\Release\solc.exe
- Copy all binaries to solcJ project
- Update hardcoded version in
SolcVersion.java
class and inbuild.gradle
- Publish to bintray with:
./gradlew clean jar bintrayUpload -DbintrayUser=XXXX -DbintrayApiKey=YYYY
0.4.3
https://github.com/rainbeam/solidity-static/
- Follow wiki
- add dlls
- verify on blank Win7 without installed VC distribution packages (even once)
Follow wiki
0.4.2
https://github.com/rainbeam/solidity-static/
https://github.com/ethereum/solidity/releases/tag/v0.4.2
brew install cpp-ethereum
brew linkapps cpp-ethereum
which solc