omega-gg / MotionBox

Video Browser for Motion Freedom
http://omega.gg/MotionBox
GNU General Public License v3.0
112 stars 14 forks source link

Cannot install on armbian #36

Open arkhanlk opened 3 years ago

arkhanlk commented 3 years ago

Hi! First of all, thanks for the help so far!

Now, my situation: I have a rk322x which is pretty slow for everything on android but videos. So, I installed Ubuntu 20.04 on it (Armbian project). Kernel is 4.4, DE is Lubuntu. I have run on terminal, "sudo sh build.sh linux all"

First issue: the /3rdparty/install.sh looks for qt4 installation and attempts to download it if not found. However, qt4 is no longer available in apt install, so it will never be able to continue if it is not previously installed (which is actually not recommended). First solution: I edit the said file and removed the qt4 mentions and managed to continue because it does look for qt5, which is available in apt install, and it continues the installation.

Second issue: deploying lib(s), line 247 of the original install.sh file. It starts to search and to copy a bunch of libs that are non-existent on my armhf system. They are not part of a particular package, at least not one I could find, so I cannot proceed. This is the error in the terminal, "DEPLOYING lib(s) cp: cannot stat '/lib/i386-linux-gnu/libz.so.1': No such file or directory"

A possible solution is to find these libs files on multiple packages for arm architecture and insert/use them as needed. Here is this part of the code and below is how my install(.txt, for uploading) looks like after removing the qt4 part:

echo ""
echo "DEPLOYING lib(s)"

mkdir -p "$libs"

sudo cp "$base"/libz.so.1 "$libs"

if [ $host = "ubuntu18" ]; then

    sudo cp "$lib"/libicudata.so.60 "$libs"
    sudo cp "$lib"/libicui18n.so.60 "$libs"
    sudo cp "$lib"/libicuuc.so.60   "$libs"

    sudo cp "$lib"/libdouble-conversion.so.1 "$libs"
else
    sudo cp "$lib"/libicudata.so.66 "$libs"
    sudo cp "$lib"/libicui18n.so.66 "$libs"
    sudo cp "$lib"/libicuuc.so.66   "$libs"

    sudo cp "$lib"/libdouble-conversion.so.3 "$libs"

    # NOTE: Required for Ubuntu 20.04.
    sudo cp "$lib"/libpcre2-16.so.0 "$libs"
fi

sudo cp "$lib"/libpng16.so.16       "$libs"
sudo cp "$lib"/libharfbuzz.so.0     "$libs"
sudo cp "$lib"/libxcb-xinerama.so.0 "$libs"

install.txt

Thanks and best!

3unjee commented 3 years ago

This is related to the following in install.sh:

#--------------------------------------------------------------------------------------------------
# Linux

base32="/lib/i386-linux-gnu"
base64="/lib/x86_64-linux-gnu"

lib32="/usr/lib/i386-linux-gnu"
lib64="/usr/lib/x86_64-linux-gnu"

include32="/usr/include/i386-linux-gnu"
include64="/usr/include/x86_64-linux-gnu"

What's the name of your gnu include folder in /usr/include ?