meganz / MEGAsync

Easy automated syncing between your computers and your MEGA Cloud Drive
Other
1.58k stars 278 forks source link

Build from source error (Debian 11): configure: error: unicode/uchar.h header not found or not usable #854

Open mshakurov opened 8 months ago

mshakurov commented 8 months ago

Just installed Debian 11.

Build from source. I follow the instructions: https://github.com/meganz/MEGAsync/blob/master/README.linux.md

Have problems: 1) Section "APT Libraries", package "qt5-default" doesn't exists. 2) Section "Build everything", step "./configure -g -q -i". After "running: ./configure" I see error: .... checking for unicode/uchar.h... no configure: error: unicode/uchar.h header not found or not usable ERROR! Please check log files. Exiting..

What am I doing wrong?

rl-mega commented 8 months ago

Hi! Thanks for reporting this. You are not doing anything wrong, the instructions are out of date (sorry!). Please follow these instructions:

  1. install dependencies (except qt5-default)
  2. new dependency: libicu-dev
    sudo apt install libicu-dev
  3. get sources
  4. build:
    cd <repo root>/src/MEGASync/mega/
    ./autogen.sh
    ./configure
    cd ../..
    qmake MEGASync/MEGASync.pro
    lrelease MEGASync/MEGASync.pro
    make

    Grab a coffee, a tea, or whatever you want; the executable megasync will be created.

We will update the instructions soon! Have a good day.

pasman1 commented 8 months ago

Hi.

Is it possible to build on RasbOS 12 (bookworm) aarch64 ? I have an error: MEGASync/google_breakpad/common/memory.h:118:15: error: sys_mmap2 was not declared in this scope 118 | void a = sys_mmap2(NULL, pagesize num_pages, PROT_READ | PROT_WRITE, | ^~~~~

Best regards.

rl-mega commented 7 months ago

Hi pasman1, I'm sorry to say building for this arch is currently broken... and I can't tell you when it will be fixed. Have a good day!