BCM7425-Qt5-eglfs: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(Convert ExpressionEngine section headers)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Building AppLibs/RefSW for Qt==
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}


# Locate document named “BroadcomReferencePlatformSetup.pdf” (Usually this will be inside a tar ball named on the lines of refsw_release_<chip-name>_<date>.tgz)
== Building AppLibs/RefSW for Qt ==
# Follow the instructions in “BroadcomReferencePlatformSetup.pdf” to setup the Linux build machine
# Locate document named "BroadcomReferencePlatformSetup.pdf" (Usually this will be inside a tar ball named on the lines of refsw_release_<chip-name>''<date>.tgz)
# Locate document named “AppLibsInstallationBuildGuide.pdf” (Usually this will be inside a tar ball named on the lines of applibs_release_&lt;date&gt;.tgz)
# Follow the instructions in "BroadcomReferencePlatformSetup.pdf" to setup the Linux build machine
# Follow the instructions in “AppLibsInstallationBuildGuide.pdf” to build Applibs
# 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==
== Qt5 eglfs/QPA ==


===Building Qt 5===
=== Building Qt 5 ===


# Obtain qt-5.0.0 from [[Building Qt 5 from Git|git]] ''[qt.io]'' (follow instructions in “Getting the source code”)
# Obtain qt-5.0.0 from [http://wiki.qt.io/Building_Qt_5_from_Git git] (follow instructions in "Getting the source code")
# Obtain 7425 specific files from [http://gitorious.org/qt-platform-mkspecs qt-platform-mkspecs git] ''[gitorious.org]'' (look for folder “5.0”)
# Obtain 7425 specific files from [http://gitorious.org/qt-platform-mkspecs qt-platform-mkspecs git] (look for folder "5.0")
# Copy folder named “linux-nxs-mipsel-uclibc-g++” from 7425 specific repo to &lt;qt-5.0.0-git&gt;/qtbase/mkspecs
# 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,
# Set following environment variables in the shell before configuring/building Qt,
#* <span class="caps">BCM</span>_APPLIBS_PATH=&lt;path-till-Applibs-folder&gt;/AppLibs
'''''' BCM_APPLIBS_PATH=<path-till-Applibs-folder>/AppLibs
#* <span class="caps">BCM</span>_NEXUS_PATH=&lt;path-till-Applibs-folder&gt;/nexus
'''''' BCM_NEXUS_PATH=<path-till-Applibs-folder>/nexus
#* <span class="caps">DEBUG</span>=n
'''''' DEBUG=n
#* for example,
'''''' for example,
#* $$ export <span class="caps">BCM</span>_APPLIBS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/AppLibs
'''''' $$ export BCM_APPLIBS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/AppLibs
#* $$ export <span class="caps">BCM</span>_NEXUS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/nexus
'''''' $$ export BCM_NEXUS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/nexus
# Apply patch “7425-eglfs.patch” from 7425 specific repo to &lt;qt-5.0.0-git&gt;/src
# Apply patch "7425-eglfs.patch" from 7425 specific repo to <qt-5.0.0-git>/src
#* $$ cd &lt;qt-5.0.0-git&gt;/src
'''''' $$ cd <qt-5.0.0-git>/src
#* $$ patch -p1 &lt; 7425nxs-eglfs.patch
'''''' $$ patch -p1 < 7425nxs-eglfs.patch
# Configure Qt in qtbase folder as,
# Configure Qt in qtbase folder as,
#* $$ configure -prefix /usr/local/qt-installs/qt5 -arch mips -qpa -xplatform linux-nxs-mipsel-uclibc-g++ \
'''''' $$ 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 -no-xcb
#* -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 -no-xcb
# After the build succeeds set following environment variables before building any opengl Qt Apps,
# After the build succeeds set following environment variables before building any opengl Qt Apps,
#* - set <span class="caps">QTDIR</span>=/usr/local/qt-installs/qt5
''''''- set QTDIR=/usr/local/qt-installs/qt5
#* - set <span class="caps">PATH</span>=/usr/local/qt-installs/qt5/bin:$PATH
#* - set PATH=/usr/local/qt-installs/qt5/bin:$PATH


'''<span class="caps">NOTE</span>:''' Before executing any Qt applications on target copy “qt-installs/qt5” on target at usr/local on target file system
'''NOTE:''' Before executing any Qt applications on target copy "qt-installs/qt5" on target at usr/local on target file system

Latest revision as of 15:38, 5 March 2015

This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

Building AppLibs/RefSW for Qt

  1. Locate document named "BroadcomReferencePlatformSetup.pdf" (Usually this will be inside a tar ball named on the lines of refsw_release_<chip-name><date>.tgz)
  2. Follow the instructions in "BroadcomReferencePlatformSetup.pdf" to setup the Linux build machine
  3. Locate document named "AppLibsInstallationBuildGuide.pdf" (Usually this will be inside a tar ball named on the lines of applibs_release<date>.tgz)
  4. Follow the instructions in "AppLibsInstallationBuildGuide.pdf" to build Applibs

Qt5 eglfs/QPA

Building Qt 5

  1. Obtain qt-5.0.0 from git (follow instructions in "Getting the source code")
  2. Obtain 7425 specific files from qt-platform-mkspecs git (look for folder "5.0")
  3. Copy folder named "linux-nxs-mipsel-uclibc-g+" from 7425 specific repo to <qt-5.0.0-git>/qtbase/mkspecs
  4. 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 ' for example, ' $$ export BCM_APPLIBS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/AppLibs ' $$ export BCM_NEXUS_PATH=/home/qtnokia/WorkDir/97425-P1/stb-rs_p2-al_p2dot1/nexus

  1. Apply patch "7425-eglfs.patch" from 7425 specific repo to <qt-5.0.0-git>/src

' $$ cd <qt-5.0.0-git>/src ' $$ patch -p1 < 7425nxs-eglfs.patch

  1. Configure Qt in qtbase folder as,

' $$ 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 -no-xcb

  1. After the build succeeds set following environment variables before building any opengl Qt Apps,

'- set QTDIR=/usr/local/qt-installs/qt5

    • - set PATH=/usr/local/qt-installs/qt5/bin:$PATH

NOTE: Before executing any Qt applications on target copy "qt-installs/qt5" on target at usr/local on target file system