Broadcom97425/BCM7425-Qt5-eglfs: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
==Building AppLibs/RefSW for Qt==
[[Category:Devices]]


# 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 “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==
# Locate document named &quot;BroadcomReferencePlatformSetup.pdf&amp;quot; (Usually this will be inside a tar ball named on the lines of refsw_release_&lt;chip-name&amp;gt;''&lt;date&amp;gt;.tgz)<br /># Follow the instructions in &quot;BroadcomReferencePlatformSetup.pdf&amp;quot; to setup the Linux build machine<br /># Locate document named &quot;AppLibsInstallationBuildGuide.pdf&amp;quot; (Usually this will be inside a tar ball named on the lines of applibs_release''&lt;date&amp;gt;.tgz)
# Follow the instructions in &quot;AppLibsInstallationBuildGuide.pdf&amp;quot; to build Applibs


===Building Qt 5===
== Qt5 eglfs/QPA ==


# Obtain qt-5.0.0 from [[Building Qt 5 from Git|git]] ''[qt.io]'' (follow instructions in “Getting the source code”)
=== Building Qt 5 ===
# Obtain 7425 specific files from [http://gitorious.org/qt-platform-mkspecs qt-platform-mkspecs git] ''[gitorious.org]'' (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
# Set following environment variables in the shell before configuring/building Qt,<br /> for example,<br />
# Apply patch “7425-eglfs.patch” from 7425 specific repo to &lt;qt-5.0.0-git&gt;/src<br />
# Configure Qt in qtbase folder as,<br />
# After the build succeeds set following environment variables before building any opengl Qt Apps,<br />


&lt;b&gt;<span class="caps">NOTE</span>:&lt;/b&gt; Before executing any Qt applications on target copy “qt-installs/qt5” on target at usr/local on target file system
# Obtain qt-5.0.0 from &quot;git&amp;quot;:http://wiki.qt.io/Building_Qt_5_from_Git (follow instructions in &quot;Getting the source code&amp;quot;)
# Obtain 7425 specific files from &quot;qt-platform-mkspecs git&amp;quot;:http://gitorious.org/qt-platform-mkspecs (look for folder &quot;5.0&amp;quot;)
# Copy folder named &quot;linux-nxs-mipsel-uclibc-g+''&quot; from 7425 specific repo to &lt;qt-5.0.0-git&amp;gt;/qtbase/mkspecs<br /># Set following environment variables in the shell before configuring/building Qt,<br /><code>BCM_APPLIBS_PATH=&lt;path-till-Applibs-folder&amp;gt;/AppLibs<br />BCM_NEXUS_PATH=&lt;path-till-Applibs-folder&amp;gt;/nexus<br />DEBUG=n</code><br />for example,<br /><code>$$ 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</code><br /># Apply patch &quot;7425-eglfs.patch&amp;quot; from 7425 specific repo to &lt;qt-5.0.0-git&amp;gt;/src<br /><code>$$ cd &lt;qt-5.0.0-git&amp;gt;/src<br />$$ patch -p1 &lt; 7425nxs-eglfs.patch</code><br /># Configure Qt in qtbase folder as,<br /><code>$$ 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</code><br /># After the build succeeds set following environment variables before building any opengl Qt Apps,<br /><code></s> set QTDIR=/usr/local/qt-installs/qt5<br /> - set PATH=/usr/local/qt-installs/qt5/bin:$PATH</code>


===Categories:===
&lt;b&amp;gt;NOTE:&lt;/b&amp;gt; Before executing any Qt applications on target copy &quot;qt-installs/qt5&amp;quot; on target at usr/local on target file system
 
* [[:Category:Devices|Devices]]

Revision as of 09:59, 24 February 2015


Building AppLibs/RefSW for Qt

  1. 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)
    # Follow the instructions in "BroadcomReferencePlatformSetup.pdf&quot; to setup the Linux build machine
    # Locate document named "AppLibsInstallationBuildGuide.pdf&quot; (Usually this will be inside a tar ball named on the lines of applibs_release
    <date&gt;.tgz)
  2. Follow the instructions in "AppLibsInstallationBuildGuide.pdf&quot; to build Applibs

Qt5 eglfs/QPA

Building Qt 5

  1. Obtain qt-5.0.0 from "git&quot;:http://wiki.qt.io/Building_Qt_5_from_Git (follow instructions in "Getting the source code&quot;)
  2. Obtain 7425 specific files from "qt-platform-mkspecs git&quot;:http://gitorious.org/qt-platform-mkspecs (look for folder "5.0&quot;)
  3. Copy folder named "linux-nxs-mipsel-uclibc-g+" from 7425 specific repo to <qt-5.0.0-git&gt;/qtbase/mkspecs
    # Set following environment variables in the shell before configuring/building Qt,
    BCM_APPLIBS_PATH=&lt;path-till-Applibs-folder&amp;gt;/AppLibs<br />BCM_NEXUS_PATH=&lt;path-till-Applibs-folder&amp;gt;/nexus<br />DEBUG=n
    

    for example,
    $$ 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
    

    # Apply patch "7425-eglfs.patch&quot; from 7425 specific repo to <qt-5.0.0-git&gt;/src
    $$ cd &lt;qt-5.0.0-git&amp;gt;/src<br />$$ patch -p1 &lt; 7425nxs-eglfs.patch
    

    # 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 <s>no-xcb
    

    # After the build succeeds set following environment variables before building any opengl Qt Apps,
    </s> set QTDIR=/usr/local/qt-installs/qt5<br /> - set PATH=/usr/local/qt-installs/qt5/bin:$PATH
    

<b&gt;NOTE:</b&gt; Before executing any Qt applications on target copy "qt-installs/qt5&quot; on target at usr/local on target file system