Last active
August 28, 2022 04:54
-
-
Save Logic-gate/b7c3dd955288228e7219eeb46456e7de to your computer and use it in GitHub Desktop.
MegaSync Client Installation | Solus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://dev.solus-project.com/T163 | |
Clone it -- https://github.com/meganz/MEGAsync | |
> git clone https://github.com/meganz/MEGAsync.git | |
> cd MEGAsync | |
> git submodule update --init --recursive | |
Get crypto++ | I think it's already in the repo (cryptopp-devel) if not: | |
> wget https://www.cryptopp.com/cryptopp563.zip #Tested on version 5.6.3 | |
> mkdir ~/crypto && cd ~/crypto && unzip ~/Downloads/cryptopp563.zip | |
> make libcryptopp.so libcryptopp.a If anything goes wrong make clean. Note: only .so is needed..but what the heck. | |
> sudo make install PREFIX=/usr | |
make sure everything is set | |
> ld -lcryptopp | |
You should see something like this | |
>> ld: warning: cannot find entry symbol _start; not setting start address | |
>> /usr/lib64/libcryptopp.so: undefined reference to `pthread_key_create' | |
>> /usr/lib64/libcryptopp.so: undefined reference to `pthread_getspecific' | |
>> /usr/lib64/libcryptopp.so: undefined reference to `pthread_key_delete' | |
>> /usr/lib64/libcryptopp.so: undefined reference to `pthread_setspecific' | |
Export CFLAG for c-ares | |
> nano src/MEGASync/mega/contrib/build_sdk.sh | |
Add it before ./configure on line 501 | |
"export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2}"" | |
So that it looks 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 | |
Get qt5-devel -- We want qmake(5) not qmake-qt4 | |
> sudo eopkg it qt5-base-devel | |
OpenGl - needed due to dependency amplification | |
> sudo eopkg it libglu-devel | |
Configure | |
Head back to MEGA root -- /src | |
> ./configure | |
> qmake MEGA.pro | |
> lrelease MEGASync/MEGASync.pro | |
> make | |
That's it.. Exec located at MEGAsync/src/MEGASync/megasync | |
Additional setup for ease | |
> sudo cp megasync /usr/bin/megasync | |
> sudo nano /usr/share/applications/megasync.desktop and paste this | |
``` | |
[Desktop Entry] | |
Type=Application | |
Verion=2.9.8 | |
GenericName=File Synchronizer | |
Name=MEGASync | |
Comment=Easy Automated syncing between your computers and your MEGA cloud drive. | |
TryExec=megasync | |
Exec=megasync | |
Icon=mega | |
Terminal=False | |
Categories=Network;System; | |
StartupNotify=False | |
And finally to get the icon in the app tray | |
sudo cp MEGAsync/src/MEGASync/gui/images/app_128.png /usr/share/pixmaps/mega.png | |
``` | |
NOTES: | |
I have this setup on 2 solus boxes. Only one of them has the MEGA icon instead of the regular folder icon. Note sure why. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have forked and updated the gist here for Solus 3.99:
https://gist.github.com/jiawanyovan/27786d8b45414a7b3c272731fb6821a5
Missing components in my case are:
@dodecandrea, you may need to install system.devel as gleaned from the "Basics to Package Management" article on https://getsol.us/articles/package-management/basics/en/ :
sudo eopkg install -c system.devel