MEGAsync icon indicating copy to clipboard operation
MEGAsync copied to clipboard

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

Open mshakurov opened this issue 2 years ago • 3 comments

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?

mshakurov avatar Oct 11 '23 13:10 mshakurov

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
  1. get sources
  2. 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.

rl-mega avatar Oct 13 '23 13:10 rl-mega

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, page_size_ * num_pages, PROT_READ | PROT_WRITE, | ^~~~~~~~~

Best regards.

pasman1 avatar Nov 08 '23 16:11 pasman1

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!

rl-mega avatar Nov 10 '23 11:11 rl-mega