Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt && BeagleBoard
Qt 6.11 is out! See what's new in the release blog

Qt && BeagleBoard

Scheduled Pinned Locked Moved Mobile and Embedded
22 Posts 6 Posters 26.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    luca
    wrote on last edited by
    #13

    Ok, I'll try tomorrow, my beagleboard is now at office and I'm at home... :-)

    With NGW100 (buildroot) "-qws" wasn't required but I think it was because there is no display and I always developed console application.

    If I'll develop a working qt application for beagleboard, I'll write a wiki... ;-)

    1 Reply Last reply
    0
    • L Offline
      L Offline
      luca
      wrote on last edited by
      #14

      Finally I compiled QT successfully with Angstrom downloaded from both site:
      http://www.angstrom-distribution.org/narcissus/
      http://www.angstrom-distribution.org/demo/beagleboard/
      Probably tomorrow I'll explain how I've done...

      Now I'm interested in using opengl but I read the link posted by jbarron and it seems complicated because it require to build an Angstrom.

      Why doesn't Angstrom put the SGX driver in the image they supply?

      With the Angstrom sdk I downloaded, if I execute:
      @./configure -opensource -confirm-license -no-qt3support -release -nomake examples -nomake demos -static -embedded arm -little-endian -xplatform qws/linux-arm-g++@
      I get:
      @
      ...
      ...
      OpenGL support ...... no
      EGL support ......... yes <EGL/egl.h>
      OpenVG support ...... no
      ...
      ...
      @

      so it only detect EGL.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        luca
        wrote on last edited by
        #15

        Now I read in QT documentation the following sentence:
        [quote]Qt for Embedded Linux provides support for integrating OpenGL ES for drawing into a QGLWidget. The current implementation supports OpenGL and 2D painting within a QGLWidget. Using OpenGL to accelerate regular widgets and compositing top-level windows with OpenGL are not currently supported.[/quote]

        So I think that I don't need OpenGL integration for my application until I don't use QGLWidget...

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alexbravo
          wrote on last edited by
          #16

          Guys, I think we need to put this info on a Wiki. Any takers on doing this?
          I wanted to do it here (I actually cross-compile Qt to QNX), but my method is outdated now that Qt Creator is available: http://developer.qt.nokia.com/wiki/Using_Qt_Creator_for_cross-compiling_Qt_applications_from_Windows_to_UNIX-like_OSs/edit/revision/184

          So feel free to modify that that page. I'm sure many people will find it useful.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            luca
            wrote on last edited by
            #17

            Hi all,

            I'm continuing in try to compile qt4 with opengl support for beagleboard.

            I'm at this point:

            • I downloaded angstrom image and sdk from : http://www.angstrom-distribution.org/narcissus/ where I built the image with all SGX part.
            • get the qt4-4.6.3 source
            • edited the mkspecs/qws/linux-arm-g++/qmake.conf as needed:

            @
            QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
            QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE

            include(../../common/g++.conf)
            include(../../common/linux.conf)
            include(../../common/qws.conf)

            QMAKE_CC = /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc
            QMAKE_CXX = /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
            QMAKE_LINK = /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
            QMAKE_LINK_SHLIB = /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++

            #QMAKE_INCDIR = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include
            #QMAKE_LIBDIR = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib

            QMAKE_AR = /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-ar cqs
            QMAKE_OBJCOPY = /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-objcopy
            QMAKE_STRIP = /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-strip

            load(qt_config)
            @

            • configured qt with:
              @
              ./configure -opensource -confirm-license -no-qt3support -release -nomake examples -nomake demos -embedded arm -little-endian -xplatform qws/linux-arm-g++ -prefix /opt/qt4-4.6.3-beagle-shared-vnc -qt-gfx-vnc -opengl
              @
            • compiled with "make"

            while compiling I get an error:
            @
            /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++ -c -pipe -fno-exceptions -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_OPENGL_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_NO_FREETYPE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include/QtCore -I../../include/QtGui -I../../include -I../../include/QtOpenGL -I.rcc/release-shared-emb-arm -I../3rdparty/harfbuzz/src -I/usr/include -I.moc/release-shared-emb-arm -I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include -o .obj/release-shared-emb-arm/qgl.o qgl.cpp
            In file included from ../../include/QtCore/qurl.h:1,
            from ../../include/QtGui/private/../../../src/gui/text/qtextdocument_p.h:69,
            from ../../include/QtGui/private/qtextdocument_p.h:1,
            from ../../include/QtGui/private/../../../src/gui/text/qtextengine_p.h:70,
            from ../../include/QtGui/private/qtextengine_p.h:1,
            from ../../include/QtGui/private/../../../src/gui/text/qfontengine_p.h:60,
            from ../../include/QtGui/private/qfontengine_p.h:1,
            from gl2paintengineex/qpaintengineex_opengl2_p.h:63,
            from qgl.cpp:71:
            ../../include/QtCore/../../src/corelib/io/qurl.h:69: error: expected identifier before numeric constant
            ../../include/QtCore/../../src/corelib/io/qurl.h:69: error: expected `}’ before numeric constant
            ../../include/QtCore/../../src/corelib/io/qurl.h:69: error: expected unqualified-id before numeric constant
            ../../include/QtCore/../../src/corelib/io/qurl.h:81: error: ‘FormattingOption’ was not declared in this scope
            ../../include/QtCore/../../src/corelib/io/qurl.h:81: error: template argument 1 is invalid
            ../../include/QtCore/../../src/corelib/io/qurl.h:81: error: invalid type in declaration before ‘;’ token
            ../../include/QtCore/../../src/corelib/io/qurl.h:83: error: expected unqualified-id before ‘)’ token
            ../../include/QtCore/../../src/corelib/io/qurl.h:87: error: expected unqualified-id before ‘const’
            ….
            ….
            @

            it seems like if there are some defines (from X11 external header) that causes the error.

            How can I solve the problem?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              luca
              wrote on last edited by
              #18

              Hi all,

              I found that my problem with opengl in the beagleboard disappear with Qt 4.5.3-embedded .

              What do you think about?

              1 Reply Last reply
              0
              • Y Offline
                Y Offline
                yeyo
                wrote on last edited by
                #19

                I have exact problem as you. It seems to be a problem with "None" variable but don't know, how to fix it.

                My configure args: -embedded arm -xplatform qws/linux-arm-g++ -dbus -confirm-license -release -qt-gfx-transformed -qt-libjpeg -openssl-linked -phonon-backend -opengl es2 -plugin-gfx-simplegl -no-qt3support -nomake examples -nomake demos -opensource -DQT_QWS_CLIENTBLIT -DQT_NO_QWS_CURSOR

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  luca
                  wrote on last edited by
                  #20

                  Have you tried with the last Qt version (4.7.1) ?
                  I haven't that problem with the last Qt.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    ShihaoLiu
                    wrote on last edited by
                    #21

                    Hi:
                    I get an image of Angstrom from Narnussis, which contains the tool chain. Now, I want to cross compile the Qt X11 with the tool chain.

                    My qws/linux-arm-g++/qmake.conf file like this:

                    qmake configuration for building with arm-linux-g++

                    QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
                    QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE

                    include(../../common/g++.conf)
                    include(../../common/linux.conf)
                    include(../../common/qws.conf)

                    modifications to g++.conf

                    QMAKE_CC = /home/shihaoliu/projects/Angstrom/usr/bin/arm-angstrom-linux-gnueabi-gcc
                    QMAKE_CXX = /home/shihaoliu/projects/Angstrom/usr/bin/arm-angstrom-linux-gnueabi-g++
                    QMAKE_LINK = /home/shihaoliu/projects/Angstrom/usr/bin/arm-angstrom-linux-gnueabi-g++
                    QMAKE_LINK_SHLIB = /home/shihaoliu/projects/Angstrom/usr/bin/arm-angstrom-linux-gnueabi-g++

                    modifications to linux.conf

                    QMAKE_AR = /home/shihaoliu/projects/Angstrom/usr/bin/arm-angstrom-linux-gnueabi-ar cqs
                    QMAKE_OBJCOPY = /home/shihaoliu/projects/Angstrom/usr/bin/arm-angstrom-linux-gnueabi-objcopy
                    QMAKE_STRIP = /home/shihaoliu/projects/Angstrom/usr/bin/arm-angstrom-linux-gnueabi-strip

                    load(qt_config)

                    I get the messages: Basic XLib functionality test failed!
                    You might need to modify the include and library search paths by editing
                    QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in mkspecs/qws/linux-arm-g++.

                    Could you give me some advice to solve this problem?
                    Thanks a lot.

                    Shihao Liu

                    1 Reply Last reply
                    0
                    • Y Offline
                      Y Offline
                      yeyo
                      wrote on last edited by
                      #22

                      [quote author="Luca" date="1291405350"]Have you tried with the last Qt version (4.7.1) ?
                      I haven't that problem with the last Qt.[/quote]

                      I don't remember how i had solved it.. But anyway - thnx for hint!

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved