Qt && BeagleBoard
-
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... ;-)
-
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.
-
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...
-
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/184So feel free to modify that that page. I'm sure many people will find it useful.
-
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_RELEASEinclude(../../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/libQMAKE_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-stripload(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?
-
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
-
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_RELEASEinclude(../../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-stripload(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