A library of i18n routines written in Javascript.
In order to run a test on QT/QML environment, You need to some settings in advance.
You need to install QT on your machine first. Qt Downloads
To run Qt 6.0+ on Linux machine, The Ubuntu version requires 20.04
. link.
When you checkout iLib sources, Default values in qt/build.properties
is QTBIN=/opt/qt55/bin
.
If you install different locations, You need to modify this file.
If your machine still doesn’t point QT where you want, Please modify default.conf
the following way.
qtchooser: a wrapper used to select between Qt development binary versions
a. Check current system status first by qtchooser command
> qtchooser –print-env
b. Modify defult.conf
It’s a system-wide configuration file. If it is provided, the settings from it will be automatically used in case nothing else is selected.
> sudo vi /usr/lib/x86_64-linux-gnu/qtchooser/default.conf
i.e)
/home/goun/Qt_6.3/6.3.0/gcc_64/bin
/home/goun/Qt_6.3/6.3.0/gcc_64
You need to check LD_LIBRARY_PATH
and QT_PLUGIN_PATH
. You could set options in ~/.bashrc
file.
i.e)
export LD_LIBRARY_PATH=/home/goun/Qt_6.3/6.3.0/gcc_64/lib
export QT_PLUGIN_PATH=/home/goun/Qt_6.3/6.3.0/gcc_64/plugins
Executing the below command under qt/ directory.
The difference between the two test commands is whether JS files are minified or not.
> ant test.all
or
> ant test.all.compiled
If you faced an error as below,
- cannot find -lGL `
- /usr/bin/ld: cannot find -lpgm
You might need to install the packages below:
> sudo apt-get install libnetpbm10-dev
> sudo apt-get install libglu1-mesa-dev
When you faced errors as below,
/bin/qmlscene: relocation error: symbol _ZN10QQmlEngine4exitEi, version Qt_5 not defined in file libQt5Qml.so.5 with link time reference
Failed to load platform plugin ”xcb“
You might need to check LD_LIBRARY_PATH
.
I’ve set that option in ~/.bashrc file
.
export LD_LIBRARY_PATH=/home/goun/Qt5.9.0/5.9/gcc_64/lib
If you want to know regarding How to use iLib on QT/QML. Please visit this page.