enzo66
🌏 Compiling Megasync
I've been using megasync for quite a while with no problems, it's a bit complicated to get running, here is a brief note of my experinece in case it might by useful to you or others.
The following are packages are needed before compiling megasync:
sudo eopkg it system.devel linux-current-headers openssl-devel cryptopp-devel qt5-x11extras-devel bzip2-devel libsodium-devel c-ares-devel libmediainfo-devel qt5-base-devel qt5-tools-devel libglu-devel libraw-devel qt5-svg-devel sqlite3-devel libx11-devel git
Steps before compiling
cd
git clone https://github.com/meganz/MEGAsync.git
cd ~/MEGAsync
git submodule update --init --recursive
Then this line needs to be added to added to:
~/MEGAsync/src/MEGASync/mega/contrib/build_sdk.sh
in the cloned MEGAsync folder:
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2}"
(around line 664) so that when edited the surrounding lines look like this:
package_extract $name $cares_file $cares_dir
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2}"
package_configure $name $cares_dir $install_dir "$cares_params"
package_build $name $cares_dir
package_install $name $cares_dir $install_dir
Compiling
cd ~/MEGAsync/src
./configure
qmake MEGA.pro
lrelease MEGASync/MEGASync.pro
make
It takes a long time, if the compilation is successful you'll find the megasync
binary here:
~/MEGAsync/src/MEGASync/megasync
Copy it to /usr/bin/
and ensure the executable bit is set.
If all is well, you can now add it to autostart from Budgie Settings (~/.config/autostart/
).