Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Compiling Qt5 in Linux AM335x

$
0
0

Hello,

I need some help in getting Qt5 up and running in my AM335x Development System. My hardware is AM335x Starter kit. I have the sdk + graphics sdk installed. I am able to modify and compile kernel. Qt 4.8 packed within sdk also works fine.

I am now trying to compilet Qt5 and having some trouble with it. These are the steps I followed. (Ref: http://tigraphics.blogspot.de/2013/01/qt-500-final-dec-2012-available-on-ti.html

)

1. git clone qtmaster repository and download everything.

2. clear QMAKESPEC environment variable

3. copy linux-arm-gnueabi-ti-g++ folder into qtbase/mkspecs as specified in https://github.com/prabindh/qt-configs/blob/master/qt5_1.0_Dec12/README

4. Apply qttestbrowser patch from the same link

5. set the rootfs and toolchain path as follows in the qmake.conf file

ROOTFS_PATH=/home/rammy/ti-sdk-am335x-evm-05.07.00.00/targetNFS
TOOLCHAIN_PREFIX=/home/rammy/ti-sdk-am335x-evm-05.07.00.00/linux-devkit/bin/arm-arago-linux-gnueabi

(my sdk is installed in /home/rammy/ti-sdk-am335x-evm-05.07.00.00/ and I have a working NFS root partition at the ROOTFS_PATH. I am able to boot with tftp and nfs with this system)

6. ./configure -prefix /home/rammy/qt5_install -release -make libs -xplatform linux-arm-gnueabi-ti-g++ -opengl es2 -confirm-license -opensource -icu -no-xcb -make examples -verbose

Output:


ICU auto-detection... ()
/home/rammy/ti-sdk-am335x-evm-05.07.00.00/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -c -pipe -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-ti-g++ -I. -I/home/rammy/ti-sdk-am335x-evm-05.07.00.00/targetNFS/usr/include -I/home/rammy/ti-sdk-am335x-evm-05.07.00.00/targetNFS/usr/include/glib-2.0 -I/home/rammy/ti-sdk-am335x-evm-05.07.00.00/targetNFS/usr/lib/glib-2.0/include/ -I/home/rammy/ti-sdk-am335x-evm-05.07.00.00/targetNFS/usr/include/libxml2/ -I/home/rammy/ti-sdk-am335x-evm-05.07.00.00/targetNFS/usr/include/freetype2 -I/home/rammy/ti-sdk-am335x-evm-05.07.00.00/targetNFS/usr/include/dbus-1.0 -I/home/rammy/ti-sdk-am335x-evm-05.07.00.00/targetNFS/usr/include/dbus-1.0/dbus -o icu.o icu.cpp
icu.cpp:42:28: fatal error: unicode/utypes.h: No such file or directory
compilation terminated.
make: *** [icu.o] Error 1
ICU disabled.
The ICU library support cannot be enabled.
Turn on verbose messaging (-v) to /home/rammy/qt5/qtbase/configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to /home/rammy/qt5/qtbase/configure to continue.
*** qtbase/configure exited with non-zero status.

I am also attaching the full output as a text file below this message.

Now if i configure without -icu flag, I get a successful output as follows:

Configure summary

Building on: linux-g++ (i386, CPU features:)
Building for: linux-arm-gnueabi-ti-g++ (arm, CPU features:)
Platform notes:

- Also available for Linux: linux-kcc linux-icc linux-cxx

qmake vars .......... styles += mac fusion windows DEFINES += QT_NO_XCB PRECOMPILED_DIR = .pch/release-shared OBJECTS_DIR = .obj/release-shared MOC_DIR = .moc/release-shared RCC_DIR = .rcc/release-shared UI_DIR = .uic/release-shared sql-drivers = sql-plugins = sqlite qmake switches .........

Build options:
Configuration .......... accessibility alsa audio-backend c++11 clock-gettime clock-monotonic concurrent cross_compile egl eglfs evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config largefile libudev linuxfb medium-config minimal-config mremap neon nis no-pkg-config opengl opengles2 openssl pcre png qpa qpa release rpath shared small-config system-jpeg system-png system-zlib v8 v8snapshot 
Build parts ............ libs examples
Mode ................... release
Using C++11 ............ yes
Using PCH .............. no
Target compiler supports:
iWMMXt/Neon .......... no/yes

Qt modules and options:
Qt D-Bus ............... no
Qt Concurrent .......... yes
Qt GUI ................. yes
Qt Widgets ............. yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
QML debugging .......... yes
Use system proxies ..... no

Support enabled for:
Accessibility .......... yes
ALSA ................... yes
CUPS ................... no
FontConfig ............. no
Iconv .................. yes
ICU .................... no
Image formats:
GIF .................. plugin
JPEG ................. plugin (system)
PNG .................. yes (system)
Glib ................... no
GStreamer

 .............. no
GTK theme .............. no
Large Files ............ yes
Networking:
getaddrinfo .......... yes
getifaddrs ........... yes
IPv6 ifname .......... yes
OpenSSL .............. yes (loading libraries at run-time)
NIS .................... yes
OpenGL ................. yes (OpenGL ES 2.x)
OpenVG ................. no
PCRE ................... yes (qt)
pkg-config ............. no
PulseAudio ............. no
QPA backends:
DirectFB ............. no
EGLFS ................ yes
KMS .................. no
LinuxFB .............. yes
XCB .................. no
Session management ..... auto
SQL drivers:
DB2 .................. no
InterBase ............ no
MySQL ................ no
OCI .................. no
ODBC ................. no
PostgreSQL ........... no
SQLite 2 ............. no
SQLite ............... plugin (qt)
TDS .................. no
udev ................... yes
xkbcommon .............. no
zlib ................... yes (system)

This output is not identical to the one in README. In first look I dont have glib and dbus support.

Now my questions:

1. Are glib and dbus important ?

2. How do i get icu library support ?

It would be great if someone could point me in the right direction.

Thanks very much.

Ram

(Please visit the site to view this file)

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>