embeded/raspberry pi2015. 3. 24. 17:19

일단은.. Qt 5.3 에서 기본적으로 설정되어있는 내용으로

Raspberry pi는 1, ARM11 용으로 설정되어 있다.


qt-everywhere-opensource-src-5.3.2/qtbase/mkspecs/devices/linux-rasp-pi-g++$ cat qmake.conf

#

# qmake configuration for Broadcom's Raspberry PI

# http://wiki.qt-project.org/Devices/RaspberryPi


include(../common/linux_device_pre.conf)


QT_QPA_DEFAULT_PLATFORM = wayland


QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib


QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib

QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2


QMAKE_INCDIR_EGL        = $$[QT_SYSROOT]/opt/vc/include \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux

QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}


QMAKE_LIBS_EGL          = -lEGL -lGLESv2


contains(DISTRO, squeeze) {

    #Debian Squeeze: Legacy everything

    QMAKE_LIBS_OPENGL_ES2   = -lGLESv2 -lEGL

    QT_QPA_DEFAULT_PLATFORM = eglfs

} else:contains(DISTRO, arch) {

    #On principle: no wizardry required

} else {

    #This is not strictly necessary

    DISTRO_OPTS += deb-multi-arch

    DISTRO_OPTS += hard-float

}


QMAKE_CFLAGS           += \

                          -marm \

                          -mfpu=vfp \

                          -mtune=arm1176jzf-s \

                          -march=armv6zk \

                          -mabi=aapcs-linux


QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS


EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp

EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host


include(../common/linux_arm_device_post.conf)


load(qt_config) 


$ ./configure -opensource -confirm-license -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf-


   Configure summary


Building on:   linux-g++ (i386, CPU features:)

Building for:  devices/linux-rasp-pi-g++ (arm, CPU features:)

Platform notes:


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


Build options:

  Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis no-harfbuzz no-pkg-config pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config zlib

  Build parts ............ libs examples

  Mode ................... release

  Using C++11 ............ yes

  Using PCH .............. yes

  Target compiler supports:

    iWMMXt/Neon .......... no/auto


Qt modules and options:

  Qt D-Bus ............... no

  Qt Concurrent .......... yes

  Qt GUI ................. yes

  Qt Widgets ............. yes

  Large File ............. yes

  QML debugging .......... yes

  Use system proxies ..... no


Support enabled for:

  Accessibility .......... yes

  ALSA ................... no

  CUPS ................... no

  Evdev .................. yes

  FontConfig ............. no

  FreeType ............... yes (bundled copy)

  Glib ................... no

  GTK theme .............. no

  HarfBuzz ............... no

  Iconv .................. yes

  ICU .................... no

  Image formats:

    GIF .................. yes (plugin, using bundled copy)

    JPEG ................. yes (plugin, using bundled copy)

    PNG .................. yes (in QtGui, using bundled copy)

  journald ............... no

  mtdev .................. no

  Networking:

    getaddrinfo .......... yes

    getifaddrs ........... yes

    IPv6 ifname .......... yes

    OpenSSL .............. no

  NIS .................... yes

  OpenGL / OpenVG:

    EGL .................. no

    OpenGL ............... no

    OpenVG ............... no

  PCRE ................... yes (bundled copy)

  pkg-config ............. no

  PulseAudio ............. no

  QPA backends:

    DirectFB ............. no

    EGLFS ................ no

    KMS .................. no

    LinuxFB .............. yes

    XCB .................. no

  Session management ..... yes

  SQL drivers:

    DB2 .................. no

    InterBase ............ no

    MySQL ................ no

    OCI .................. no

    ODBC ................. no

    PostgreSQL ........... no

    SQLite 2 ............. no

    SQLite ............... yes (plugin, using bundled copy)

    TDS .................. no

  udev ................... no

  xkbcommon .............. no

  zlib ................... yes (bundled copy)


NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.

Configure with '-qreal float' to create a build that is binary compatible with 5.1.

Info: creating super cache file /home/minimonk/src/qt-everywhere-opensource-src-5.3.2/.qmake.super


Qt is now configured for building. Just run 'make'.

Once everything is built, you must run 'make install'.

Qt will be installed into /usr/local/Qt-5.3.2


Prior to reconfiguration, make sure you remove any leftovers from

the previous build. 


커널이 i7에서 3분 걸리던게.. 1시간 20분 걸렸으니

i7에서 30분 넘게 걸리던 qt 컴파일은... 10시간 이려나?! -_-a


+

그냥 걸어놓고 내려놨는데

다시 확인하니 20:54:36 컴파일 완료

거의 3시간 반 정도 걸린듯?

Posted by 구차니