DevicesBroadcom97425BCM7425-Qt5-eglfs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
h1. Building AppLibs/RefSW for Qt | |||
# Locate document named ''' | # Locate document named '''"BroadcomReferencePlatformSetup.pdf&quot;''' (Usually this will be inside a tar ball named on the lines of refsw_release_<chip-name&gt;''<date&gt;.tgz)<br /># Follow the instructions in '''"BroadcomReferencePlatformSetup.pdf&quot;''' to setup the Linux build machine<br /># Locate document named '''"AppLibsInstallationBuildGuide.pdf&quot;''' (Usually this will be inside a tar ball named on the lines of applibs_release''<date&gt;.tgz) | ||
# Follow the instructions in ''' | # Follow the instructions in '''"AppLibsInstallationBuildGuide.pdf&quot;''' to build Applibs | ||
# Locate document named ''' | |||
# Follow the instructions in ''' | |||
=Qt5 eglfs/QPA= | = Qt5 eglfs/QPA = | ||
==Building Qt 5== | == Building Qt 5 == | ||
# Obtain qt-5.0.0 from [ | # Obtain qt-5.0.0 from [http://wiki.qt.io/Building_Qt_5_from_Git git] (follow instructions in "Getting the source code&quot;)<br /># Obtain 7425 specific files from [http://gitorious.org/qt-platform-mkspecs qt-platform-mkspecs git ] (look for folder "5.0&quot;)<br /># Copy folder named "linux-nxs-mipsel-uclibc-g+''" from 7425 specific repo to <qt-5.0.0-git&gt;/qtbase/mkspecs<br /># Set following environment variables in the shell before configuring/building Qt,<br />'''''' BCM_APPLIBS_PATH=<path-till-Applibs-folder&gt;/AppLibs<br />'''''' BCM_NEXUS_PATH=<path-till-Applibs-folder&gt;/nexus<br />'''''' DEBUG=n<br /><code><br />$ export BCM_APPLIBS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/AppLibs<br />$ export BCM_NEXUS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/nexus<br /></code> | ||
# Obtain 7425 specific files from [http://gitorious.org/qt-platform-mkspecs qt-platform-mkspecs git ] (look for folder | <br /># Apply patch "7425-eglfs.patch&quot; from 7425 specific repo to <qt-5.0.0-git&gt;/src<br /><code><br />$ cd <qt-5.0.0-git&gt;/src<br />$ patch -p1 < 7425nxs-eglfs.patch<br /></code> | ||
# Copy folder named | <br /># Configure Qt in qtbase folder as,<br /><code><br />$ configure -prefix /usr/local/qt-installs/qt5 -arch mips -qpa -xplatform linux-nxs-mipsel-uclibc-g''+ -depths 16,24,32 -no-largefile -opensource -verbose -system-zlib -system-libpng -system-libjpeg -system-freetype -fast -opengl -confirm-license -release -make libs -no-wayland <s>no-xcb<br /></code> | ||
# Set following environment variables in the shell before configuring/building Qt, | <br /># After the build succeeds set following environment variables before building any opengl Qt Apps,<br /><code><br /></s> set QTDIR=/usr/local/qt-installs/qt5<br />- set PATH=/usr/local/qt-installs/qt5/bin:$PATH<br /></code> | ||
# | |||
* NOTE: Before executing any Qt applications on target copy "qt-installs/qt5&quot; on target at usr/local on target file system | |||
* |
Revision as of 10:09, 24 February 2015
h1. Building AppLibs/RefSW for Qt
- Locate document named "BroadcomReferencePlatformSetup.pdf" (Usually this will be inside a tar ball named on the lines of refsw_release_<chip-name><date>.tgz)
# Follow the instructions in "BroadcomReferencePlatformSetup.pdf" to setup the Linux build machine
# Locate document named "AppLibsInstallationBuildGuide.pdf" (Usually this will be inside a tar ball named on the lines of applibs_release<date>.tgz) - Follow the instructions in "AppLibsInstallationBuildGuide.pdf" to build Applibs
Qt5 eglfs/QPA
Building Qt 5
- Obtain qt-5.0.0 from git (follow instructions in "Getting the source code")
# Obtain 7425 specific files from qt-platform-mkspecs git (look for folder "5.0")
# Copy folder named "linux-nxs-mipsel-uclibc-g+" from 7425 specific repo to <qt-5.0.0-git>/qtbase/mkspecs
# Set following environment variables in the shell before configuring/building Qt,
' BCM_APPLIBS_PATH=<path-till-Applibs-folder>/AppLibs
' BCM_NEXUS_PATH=<path-till-Applibs-folder>/nexus
' DEBUG=n<br />$ export BCM_APPLIBS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/AppLibs<br />$ export BCM_NEXUS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/nexus<br />
# Apply patch "7425-eglfs.patch" from 7425 specific repo to <qt-5.0.0-git>/src
<br />$ cd <qt-5.0.0-git&gt;/src<br />$ patch -p1 < 7425nxs-eglfs.patch<br />
# Configure Qt in qtbase folder as,
<br />$ configure -prefix /usr/local/qt-installs/qt5 -arch mips -qpa -xplatform linux-nxs-mipsel-uclibc-g''+ -depths 16,24,32 -no-largefile -opensource -verbose -system-zlib -system-libpng -system-libjpeg -system-freetype -fast -opengl -confirm-license -release -make libs -no-wayland <s>no-xcb<br />
# After the build succeeds set following environment variables before building any opengl Qt Apps,
<br /></s> set QTDIR=/usr/local/qt-installs/qt5<br />- set PATH=/usr/local/qt-installs/qt5/bin:$PATH<br />
- NOTE: Before executing any Qt applications on target copy "qt-installs/qt5" on target at usr/local on target file system