Skip to content

Commit

Permalink
Seasocks does not seem to build (issues with the provided Cmake). Wor…
Browse files Browse the repository at this point in the history
…karound for it so we get to the end.
  • Loading branch information
giuliomoro committed Apr 27, 2020
1 parent 276b113 commit 4e0cfb7
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions scripts/chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ make install UNAME=${BELA_KERNEL_VERSION}
make clean UNAME=${BELA_KERNEL_VERSION}

# install seasocks (websocket library)
cd /opt/seasocks
echo "~~~~ Building Seasocks ~~~~"
mkdir build
cd build
cmake .. -DDEFLATE_SUPPORT=OFF -DUNITTESTS=OFF
make -j${CORES} seasocks seasocks_so
/usr/bin/cmake -P cmake_install.cmake
cd /root
rm -rf /opt/seasocks/build
ldconfig
#cd /opt/seasocks
#echo "~~~~ Building Seasocks ~~~~"
#mkdir build
#cd build
#cmake .. -DDEFLATE_SUPPORT=OFF -DUNITTESTS=OFF
#make -j${CORES} seasocks seasocks_so
#/usr/bin/cmake -P cmake_install.cmake
#cd /root
#rm -rf /opt/seasocks/build
#ldconfig

echo "~~~~ Installing Bela ~~~~"
cd /root/Bela
Expand All @@ -100,6 +100,10 @@ make idestartup

mkdir -p /root/Bela/projects
cp -rv /root/Bela/IDE/templates/basic /root/Bela/projects/
# fix for missing seasocks
> core/WSServer.cpp
sed -i s/-lseasocks//g Makefile

make -j${CORES} all PROJECT=basic AT=
make -j${CORES} lib
make -j${CORES} -f Makefile.libraries all
Expand Down

0 comments on commit 4e0cfb7

Please sign in to comment.