Debian Codegraph @

mkspecs/devices/linux-jetson-tx1-g++/qmake.conf

raw
1 #
2 # qmake configuration for Jetson TX1 boards running 64-bit Linux For Tegra
3 # (tested with R24.2, sample root filesystem)
4 #
5 # Note that this environment has been tested with X11 only.
6 #
7 # A typical configure line might look like the following:
8 #
9 # configure \
10 # -device linux-jetson-tx1-g++ \
11 # -device-option CROSS_COMPILE=/opt/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- \
12 # -sysroot /opt/Linux_for_Tegra/rootfs
13 #
14 # Note that this builds for GLX + OpenGL. To use EGL + OpenGL ES instead, pass
15 # -opengl es2 and ensure the rootfs has the headers (rootfs/usr/include/EGL,
16 # GLES2, GLES3), which may not be the case out of the box.
17 #
18 # Check the configure output carefully, some features may be disabled due to the
19 # rootfs not having the necessary dev files.
20 #
21 # If getting cryptic linker errors from static libs like libm.a, check that the
22 # symlinks libm.so, libz.so, etc. under rootfs/usr/lib/aarch64-linux-gnu are not
23 # broken. If they are, due to using absolute paths, change them so that they are
24 # relative to rootfs.
25
26 include(../common/linux_device_pre.conf)
27
28 QMAKE_INCDIR_POST += \
29 $$[QT_SYSROOT]/usr/include \
30 $$[QT_SYSROOT]/usr/include/aarch64-linux-gnu
31
32 QMAKE_LIBDIR_POST += \
33 $$[QT_SYSROOT]/usr/lib \
34 $$[QT_SYSROOT]/lib/aarch64-linux-gnu \
35 $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu
36
37 QMAKE_RPATHLINKDIR_POST += \
38 $$[QT_SYSROOT]/usr/lib \
39 $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu \
40 $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu/tegra \
41 $$[QT_SYSROOT]/lib/aarch64-linux-gnu
42
43 DISTRO_OPTS += aarch64
44 COMPILER_FLAGS += -mtune=cortex-a57.cortex-a53 -march=armv8-a
45
46 # When configured with -opengl es2, eglfs will be functional with its
47 # dummy fullscreen X11 backend, in addition to xcb.
48 EGLFS_DEVICE_INTEGRATION = eglfs_x11
49
50 include(../common/linux_arm_device_post.conf)
51 load(qt_config)