Closed zekefast closed 1 year ago
It seems that the build is failing because something wasn't generated correctly by scripts/importLanguages.py
. The expected outcome should go something like this:
git submodule init && git submodule update
should checkout the i18n
submodule, where all of the translation data lives../scripts/importLanguages.py
scans through the i18n
submodule and creates the Qt translation files at translations/mozillavpn_<locale>.ts
for each language found and then builds translations/translations.pri
However, it sounds like the script was able to find enough of the locales to build translations/translations.pri
but it either failed to generate translations/mozillavpn_oc.ts
or placed it in the wrong location.
Could you provide us with a listing of the files in the translations
directory to see what got created there?
@oskirby Today I complete removed the repository, cloned it again with --recurse-submodules
and I repeated all the instructions from https://github.com/mozilla-mobile/mozilla-vpn-client#qt5 and https://github.com/mozilla-mobile/mozilla-vpn-client#initialization
For the locale generation I got the following output:
$ ./scripts/importLanguages.py
Step 0: Locate the lupdate and lconvert tools...
Step 1: Validate the XLIFF file...
OK - co added (100.0% translated)
OK - cy added (100.0% translated)
OK - de added (100.0% translated)
OK - dsb added (100.0% translated)
OK - el added (100.0% translated)
OK - en added (reference locale)
OK - en_CA added (100.0% translated)
OK - en_GB added (100.0% translated)
OK - es_AR added (100.0% translated)
OK - es_MX added (99.43% translated)
OK - fr added (100.0% translated)
OK - fy_NL added (100.0% translated)
OK - hsb added (100.0% translated)
OK - hu added (100.0% translated)
OK - ia added (100.0% translated)
OK - it added (100.0% translated)
OK - ja added (100.0% translated)
OK - nl added (100.0% translated)
OK - oc added (100.0% translated)
OK - pt_BR added (100.0% translated)
OK - ru added (100.0% translated)
OK - sk added (100.0% translated)
OK - sq added (100.0% translated)
OK - sv_SE added (100.0% translated)
OK - uk added (100.0% translated)
OK - zh_TW added (100.0% translated)
Step 2: Create folders and localization files for the languages...
Step 3: Write PRI file to import the locales that are ready...
Step 4: Generate the Js/C++ string definitions...
Step 5: Generate new ts files...
lupdate: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lupdate': No such file or directory
Step 5: Now merge translations into the files...
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory
Imported 26 locales
But when I ran compilation I got the next error:
$ make -j$(nproc)
make: *** No targets specified and no makefile found. Stop.
Here is the content of translations/
directory:
$ tree translations/
translations/
|-- co
| `-- locversion.plist
|-- cy
| `-- locversion.plist
|-- de
| `-- locversion.plist
|-- dsb
| `-- locversion.plist
|-- el
| `-- locversion.plist
|-- en
| `-- locversion.plist
|-- en_CA
| `-- locversion.plist
|-- en_GB
| `-- locversion.plist
|-- es_AR
| `-- locversion.plist
|-- es_MX
| `-- locversion.plist
|-- fr
| `-- locversion.plist
|-- fy_NL
| `-- locversion.plist
|-- generated
| |-- l18nstrings.h
| `-- l18nstrings_p.cpp
|-- hsb
| `-- locversion.plist
|-- hu
| `-- locversion.plist
|-- ia
| `-- locversion.plist
|-- it
| `-- locversion.plist
|-- ja
| `-- locversion.plist
|-- nl
| `-- locversion.plist
|-- oc
| `-- locversion.plist
|-- pt_BR
| `-- locversion.plist
|-- ru
| `-- locversion.plist
|-- servers-template.json
|-- servers.json
|-- servers.qrc
|-- sk
| `-- locversion.plist
|-- sq
| `-- locversion.plist
|-- strings.yaml
|-- sv_SE
| `-- locversion.plist
|-- translations.pri
|-- uk
| `-- locversion.plist
`-- zh_TW
`-- locversion.plist
27 directories, 33 files
Do you have an idea how to solve issue with the make
command and absent target?
➤ Andrea Marchesini commented:
Can we close this bug?
➤ Andrea Marchesini commented:
See the latest comments
Description
I found no binaries for Debian Buster, so decided to build it from source as suggested in "Other Linux distributions" section on the https://support.mozilla.org/en-US/kb/how-install-mozilla-vpn-linux-computer page.
I followed instructions in README.md.
I successfully compiled Qt5 using instructions. One thing that I had to do is to install
clang
andllvm
packages on my system which led to installation ofclang-7
andllvm-7
packages.from https://github.com/mozilla-mobile/mozilla-vpn-client/#initialization did not worked, but I assumed that I had to run
./scripts/generate_glean.py
instead.generate_clean.py
is absent at the given location.And instead of
python scripts/importLanguages.py
I ranpython3 scripts/importLanguages.py
which succeeded.After all of this I started building and
make -j$(nproc)
failed withMy Installed Package Versions
As was request in dependencies I installed them, but with some differences in versions.
wireguard
:1.0.20210223-1~bpo10+1
(requirement is>=1.0.20200513
)wireguard-tools
:1.0.20210223-1~bpo10+1
{{requirements is }}>=1.0.20200513`)resolvconf
:1.79
(requirement is>= 1.82
) NOTE: this is DOES NOT much version requirement, but I do not know how criticall is this. Could it be the cause of above errors?Environment
Issue
Could you please help me resolve this compilation errors so I can try the service?
┆Issue is synchronized with this Jira Bug ┆Reporter: Data Sync