Skip to content

Commit caa3b00

Browse files
committed
Fix gcc version incompatbility with boost libs
1 parent baca1bf commit caa3b00

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

build.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ set -ex
44
export CC=gcc-4.9
55
export CXX=g++-4.9
66

7+
export BOOST_VERSION2=1.55.0
8+
export BOOST_ROOT2="$HOME/boost-build"
9+
10+
# Install Boost
11+
wget https://github.com/cpp3ds/3ds-tools/releases/download/r1/boost-libs.tar.xz
12+
tar xaf boost-libs.tar.xz
13+
#mkdir -p $BOOST_ROOT2
14+
#wget -O boost-trunk.tar.bz2 https://sourceforge.net/projects/boost/files/boost/$BOOST_VERSION2/boost_${BOOST_VERSION2//\./_}.tar.bz2/download
15+
#tar jxf boost-trunk.tar.bz2 --strip-components=1 -C $BOOST_ROOT2
16+
#( cd $BOOST_ROOT2; ./bootstrap.sh --with-libraries=program_options > build.log 2>&1 || cat build.log )
17+
#( cd $BOOST_ROOT2/libs/test; bjam -sTOOLS=gcc49 -sBUILD=boost_unit_test_framework )
18+
#( cd $BOOST_ROOT2; sudo ./b2 threading=multi install )
19+
20+
# Build nihstro
21+
git clone https://github.com/neobrain/nihstro.git
22+
cd nihstro && cmake -DBoost_USE_STATIC_LIBS=ON -DBOOST_LIBRARYDIR=$TRAVIS_BUILD_DIR/boost-libs -DBoost_DEBUG=ON . && VERBOSE=1 make -j4 nihstro-assemble && cd -
23+
724
# Build makerom (commit 80d3d99)
825
git clone https://github.com/profi200/Project_CTR.git
926
cd Project_CTR/makerom && git reset --hard 80d3d99 && make -j4 && cd -
@@ -15,7 +32,3 @@ cd 3dstools && ./autogen.sh && ./configure && make -j4 && cd -
1532
# Build latest bannertool
1633
git clone https://github.com/Steveice10/bannertool.git
1734
cd bannertool && cmake . && make -j4 && cd -
18-
19-
# Build nihstro
20-
git clone https://github.com/neobrain/nihstro.git
21-
cd nihstro && cmake -DBoost_USE_STATIC_LIBS=ON . && make -j4 && cd -

0 commit comments

Comments
 (0)