Unsolved QT installation failed on arm71
-
I am working on board on which linux installed having arm71 architecture , I tried to install QT(qt-opensource-linux-x64-5.13.0.run) but I got the error "cannot execute binary file: Exec format error’" .Although arm71 is 32 bit architecture but I couldn't find Qt opensource for linux x32 bit .I need to install QT ? any help ?
-
Hi FRKhan,
I think the binary is compiled for x86_64, therefore it does not run on ARM; you can check it using this command:
file qt-opensource-linux-x64-5.13.0.run
-
@lenticularis Actually arm71 is 32 bit architecture . I didn't find any QT Link for Linux 32 bit architecture
-
Hi and welcome to devnet,
@frkhan said in QT installation failed on arm71:
@lenticularis Actually arm71 is 32 bit architecture . I didn't find any QT Link for Linux 32 bit architecture
Because the pre-built packages for 32bit have be stopped a long time ago due to very low number of downloads.
Excluding Android, note that there are no pre-built package for ARM, either 64 or 32 bit. You have to build Qt yourself if you don't use a version coming with your distribution.
-
@sgaist Thanks for info . I am newbie . would highly appreciate if you direct me to some link/tutorial for building QT version of my interest
-
Sure thing, it's all in the dedicated chapter in Qt's documentation.
Note that you can also build only the modules you need beside qtbase. You'll save time and space.
-
@frkhan I understand what you are saying, the thing is that x64 is a common abbreviation for the Intel x86-64 architecture (sometimes called AMD64), which is different from ARM.
-
@SGaist Thank you very much. I cross compiled qt-4.8.7 with gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux cross compiler. I created .img file of the installed folder and mounted on root of my target device. then i created a simple application on my host system for the target device with same cross compiler and qmake. I checked my executable as follow
file <myexe> <myexe>: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.1.1, BuildID[sha1]=67324567f3bc1d67e9bc876e670ed6e8fcd3a061, not stripped
The image file on which qt is installed is mounted on /mnt/
Now when i try to execute my executable file, something appears but vanishes instantly with following error on terminal ( I tried ./myexe and ./myexe -qws but got same error message)
Fontconfig warning:ignoring C.UTF-8: not a valid language tag ./myexe: symbol lookup error: ./myexe: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent
I'm feeling that i'm missing some path setting but i have no clue about that. I have searched this error but nothing resolved it.
-
Run ldd on your executable. You will likely see the distribution provided Qt rather than the one you cross-compiled.
-
@SGaist here is the output og ldd <myexe>
libQtGui.so.4 => /usr/local/Qt-4.8.7-arm/lib/libQtGui.so.4 (0xb682d000) libQtNetwork.so.4 => /usr/local/Qt-4.8.7-arm/lib/libQtNetwork.so.4 (0xb6773000) libQtCore.so.4 => /usr/local/Qt-4.8.7-arm/lib/libQtCore.so.4 (0xb64ea000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb64b2000) libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6407000) libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb639b000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6379000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6292000) libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6287000) librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6279000) /lib/ld-linux-armhf.so.3 (0x7f5d1000)
besides this, I have tried a few approaches. I used my cross-compiler and root file system running on SD card.
https://medium.com/@amirmann/how-to-cross-compile-qt-for-raspberry-pi-3-on-linux-ubuntu-for-beginners-75acf2a078c
this removed the undefined symbol error but gives this error when i ran my exe on target board./myexe QWSSocket::connectToLocalFile could not connect:: No such file or directory QWSSocket::connectToLocalFile could not connect:: No such file or directory QWSSocket::connectToLocalFile could not connect:: No such file or directory QWSSocket::connectToLocalFile could not connect:: No such file or directory QWSSocket::connectToLocalFile could not connect:: No such file or directory QWSSocket::connectToLocalFile could not connect:: No such file or directory No Qt for Embedded Linux server appears to be running. If you want to run this program as a server, add the "-qws" command-line option. ./myexe -qws Qt for Embedded Linux data directory is not owned by user 0: /tmpqtembedded-0 aborted
here is some other information of my target system that can be relevant
apt-cache policy libqt4-declarative Installed: 4:4.8.5-dfsg-5ubuntu2 Candidate: 4:4.8.5-dfsg-5ubuntu2 ran on target strings /usr/lib/arm-linux-gnueabihf/libQtDeclarative.so.4 | egrep 'qwsEvent|x11Event' _ZN7QWidget8**x11**EventEP7_XEvent athar@athar-HP-Z420-Workstation:/usr/local/Qt-4.8.7-arm/lib$ strings libQtDeclarative.so.4 | egrep 'qwsEvent|x11Event' _ZN7QWidget8**qws**EventEP8QWSEvent file myexe myexe: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-, for GNU/Linux 3.1.1, BuildID[sha1]=e473e432126aa63423a95cbfcce7dec29632255a, not stripped root@athar-HP-Z420-Workstation:/usr/local# egrep -r qwsEvent Qt-4.8.7-arm/* Binary file Qt-4.8.7-arm/demos/composition/composition matches Binary file Qt-4.8.7-arm/demos/mainwindow/mainwindow matches Binary file Qt-4.8.7-arm/demos/embeddeddialogs/embeddeddialogs matches Binary file Qt-4.8.7-arm/demos/textedit/textedit matches Binary file Qt-4.8.7-arm/demos/deform/deform matches Binary file Qt-4.8.7-arm/demos/books/books matches Binary file Qt-4.8.7-arm/demos/gradients/gradients matches Binary file Qt-4.8.7-arm/demos/sub-attaq/sub-attaq matches Binary file Qt-4.8.7-arm/demos/browser/browser matches Binary file Qt-4.8.7-arm/demos/spreadsheet/spreadsheet matches Binary file Qt-4.8.7-arm/demos/pathstroke/pathstroke matches Binary file Qt-4.8.7-arm/demos/embedded/flickable/flickable matches Binary file Qt-4.8.7-arm/demos/embedded/anomaly/anomaly matches Binary file Qt-4.8.7-arm/demos/embedded/raycasting/raycasting matches Binary file Qt-4.8.7-arm/demos/embedded/fluidlauncher/fluidlauncher matches Binary file Qt-4.8.7-arm/demos/embedded/embeddedsvgviewer/embeddedsvgviewer matches Binary file Qt-4.8.7-arm/demos/embedded/weatherinfo/weatherinfo matches Binary file Qt-4.8.7-arm/demos/embedded/digiflip/digiflip matches Binary file Qt-4.8.7-arm/demos/embedded/flightinfo/flightinfo matches Binary file Qt-4.8.7-arm/demos/embedded/desktopservices/desktopservices matches Binary file Qt-4.8.7-arm/demos/embedded/lightmaps/lightmaps matches Binary file Qt-4.8.7-arm/demos/embedded/styledemo/styledemo matches Binary file Qt-4.8.7-arm/demos/affine/affine matches Binary file Qt-4.8.7-arm/demos/undo/undo matches Binary file Qt-4.8.7-arm/demos/declarative/snake/snake matches Binary file Qt-4.8.7-arm/demos/declarative/flickr/flickr matches Binary file Qt-4.8.7-arm/demos/declarative/webbrowser/webbrowser matches Binary file Qt-4.8.7-arm/demos/declarative/minehunt/minehunt matches Binary file Qt-4.8.7-arm/demos/declarative/rssnews/rssnews matches Binary file Qt-4.8.7-arm/demos/declarative/samegame/samegame matches Binary file Qt-4.8.7-arm/demos/declarative/twitter/twitter matches Binary file Qt-4.8.7-arm/demos/declarative/calculator/calculator matches Binary file Qt-4.8.7-arm/demos/declarative/photoviewer/photoviewer matches Binary file Qt-4.8.7-arm/demos/chip/chip matches Binary file Qt-4.8.7-arm/examples/mainwindows/menus/menus matches Binary file Qt-4.8.7-arm/examples/mainwindows/mdi/mdi matches Binary file Qt-4.8.7-arm/examples/mainwindows/dockwidgets/dockwidgets matches Binary file Qt-4.8.7-arm/examples/mainwindows/sdi/sdi matches Binary file Qt-4.8.7-arm/examples/mainwindows/recentfiles/recentfiles matches Binary file Qt-4.8.7-arm/examples/mainwindows/application/application matches Binary file Qt-4.8.7-arm/examples/graphicsview/diagramscene/diagramscene matches Binary file Qt-4.8.7-arm/examples/graphicsview/padnavigator/padnavigator matches Binary file Qt-4.8.7-arm/examples/graphicsview/portedcanvas/portedcanvas matches Binary file Qt-4.8.7-arm/examples/graphicsview/dragdroprobot/dragdroprobot matches Binary file Qt-4.8.7-arm/examples/graphicsview/portedasteroids/portedasteroids matches Binary file Qt-4.8.7-arm/examples/graphicsview/elasticnodes/elasticnodes matches Binary file Qt-4.8.7-arm/examples/script/context2d/context2d matches Binary file Qt-4.8.7-arm/examples/webkit/formextractor/formextractor matches Binary file Qt-4.8.7-arm/examples/webkit/webftpclient/webftpclient matches Binary file Qt-4.8.7-arm/examples/webkit/domtraversal/domtraversal matches Binary file Qt-4.8.7-arm/examples/webkit/webplugin/webplugin matches Binary file Qt-4.8.7-arm/examples/webkit/fancybrowser/fancybrowser matches Binary file Qt-4.8.7-arm/examples/webkit/simplewebplugin/simplewebplugin matches Binary file Qt-4.8.7-arm/examples/webkit/simpleselector/simpleselector matches Binary file Qt-4.8.7-arm/examples/webkit/previewer/previewer matches Binary file Qt-4.8.7-arm/examples/threads/mandelbrot/mandelbrot matches Binary file Qt-4.8.7-arm/examples/richtext/textobject/textobject matches Binary file Qt-4.8.7-arm/examples/richtext/orderform/orderform matches Binary file Qt-4.8.7-arm/examples/richtext/syntaxhighlighter/syntaxhighlighter matches Binary file Qt-4.8.7-arm/examples/richtext/calendar/calendar matches Binary file Qt-4.8.7-arm/examples/animation/moveblocks/moveblocks matches Binary file Qt-4.8.7-arm/examples/animation/states/states matches Binary file Qt-4.8.7-arm/examples/animation/animatedtiles/animatedtiles matches Binary file Qt-4.8.7-arm/examples/animation/easing/easing matches Binary file Qt-4.8.7-arm/examples/animation/appchooser/appchooser matches Binary file Qt-4.8.7-arm/examples/animation/stickman/stickman matches Binary file Qt-4.8.7-arm/examples/sql/sqlwidgetmapper/sqlwidgetmapper matches Binary file Qt-4.8.7-arm/examples/sql/drilldown/drilldown matches Binary file Qt-4.8.7-arm/examples/sql/masterdetail/masterdetail matches Binary file Qt-4.8.7-arm/examples/sql/cachedtable/cachedtable matches Binary file Qt-4.8.7-arm/examples/itemviews/simplewidgetmapper/simplewidgetmapper matches Binary file Qt-4.8.7-arm/examples/itemviews/simpledommodel/simpledommodel matches Binary file Qt-4.8.7-arm/examples/itemviews/frozencolumn/frozencolumn matches Binary file Qt-4.8.7-arm/examples/itemviews/chart/chart matches Binary file Qt-4.8.7-arm/examples/itemviews/customsortfiltermodel/customsortfiltermodel matches Binary file Qt-4.8.7-arm/examples/itemviews/puzzle/puzzle matches Binary file Qt-4.8.7-arm/examples/itemviews/pixelator/pixelator matches Binary file Qt-4.8.7-arm/examples/itemviews/editabletreemodel/editabletreemodel matches Binary file Qt-4.8.7-arm/examples/itemviews/addressbook/addressbook matches Binary file Qt-4.8.7-arm/examples/itemviews/basicsortfiltermodel/basicsortfiltermodel matches Binary file Qt-4.8.7-arm/examples/itemviews/combowidgetmapper/combowidgetmapper matches Binary file Qt-4.8.7-arm/examples/itemviews/fetchmore/fetchmore matches Binary file Qt-4.8.7-arm/examples/tutorials/modelview/7_selections/mv_selections matches Binary file Qt-4.8.7-arm/examples/tutorials/modelview/6_treeview/mv_tree matches Binary file Qt-4.8.7-arm/examples/tutorials/modelview/5_edit/mv_edit matches Binary file Qt-4.8.7-arm/examples/tutorials/addressbook/part6/part6 matches Binary file Qt-4.8.7-arm/examples/tutorials/addressbook/part4/part4 matches Binary file Qt-4.8.7-arm/examples/tutorials/addressbook/part5/part5 matches Binary file Qt-4.8.7-arm/examples/tutorials/addressbook/part7/part7 matches Binary file Qt-4.8.7-arm/examples/tutorials/addressbook/part1/part1 matches Binary file Qt-4.8.7-arm/examples/tutorials/addressbook/part2/part2 matches Binary file Qt-4.8.7-arm/examples/tutorials/addressbook/part3/part3 matches Binary file Qt-4.8.7-arm/examples/painting/imagecomposition/imagecomposition matches Binary file Qt-4.8.7-arm/examples/painting/concentriccircles/concentriccircles matches Binary file Qt-4.8.7-arm/examples/painting/svggenerator/svggenerator matches Binary file Qt-4.8.7-arm/examples/painting/painterpaths/painterpaths matches Binary file Qt-4.8.7-arm/examples/painting/svgviewer/svgviewer matches Binary file Qt-4.8.7-arm/examples/painting/basicdrawing/basicdrawing matches Binary file Qt-4.8.7-arm/examples/painting/fontsampler/fontsampler matches Binary file Qt-4.8.7-arm/examples/painting/transformations/transformations matches Binary file Qt-4.8.7-arm/examples/xml/streambookmarks/streambookmarks matches Binary file Qt-4.8.7-arm/examples/xml/saxbookmarks/saxbookmarks matches Binary file Qt-4.8.7-arm/examples/xml/dombookmarks/dombookmarks matches Binary file Qt-4.8.7-arm/examples/xml/rsslisting/rsslisting matches Binary file Qt-4.8.7-arm/examples/multimedia/videowidget/videowidget matches Binary file Qt-4.8.7-arm/examples/multimedia/audiodevices/audiodevices matches Binary file Qt-4.8.7-arm/examples/multimedia/audiooutput/audiooutput matches Binary file Qt-4.8.7-arm/examples/multimedia/audioinput/audioinput matches Binary file Qt-4.8.7-arm/examples/multimedia/videographicsitem/videographicsitem matches Binary file Qt-4.8.7-arm/examples/statemachine/eventtransitions/eventtransitions matches Binary file Qt-4.8.7-arm/examples/statemachine/rogue/rogue matches Binary file Qt-4.8.7-arm/examples/statemachine/trafficlight/trafficlight matches Binary file Qt-4.8.7-arm/examples/layouts/basiclayouts/basiclayouts matches Binary file Qt-4.8.7-arm/examples/layouts/borderlayout/borderlayout matches Binary file Qt-4.8.7-arm/examples/layouts/dynamiclayouts/dynamiclayouts matches Binary file Qt-4.8.7-arm/examples/layouts/flowlayout/flowlayout matches Binary file Qt-4.8.7-arm/examples/uitools/multipleinheritance/multipleinheritance matches Binary file Qt-4.8.7-arm/examples/linguist/arrowpad/arrowpad matches Binary file Qt-4.8.7-arm/examples/linguist/trollprint/trollprint matches Binary file Qt-4.8.7-arm/examples/desktop/screenshot/screenshot matches Binary file Qt-4.8.7-arm/examples/desktop/systray/systray matches Binary file Qt-4.8.7-arm/examples/touch/pinchzoom/pinchzoom matches Binary file Qt-4.8.7-arm/examples/touch/fingerpaint/fingerpaint matches Binary file Qt-4.8.7-arm/examples/draganddrop/puzzle/puzzle matches Binary file Qt-4.8.7-arm/examples/draganddrop/fridgemagnets/fridgemagnets matches Binary file Qt-4.8.7-arm/examples/draganddrop/dropsite/dropsite matches Binary file Qt-4.8.7-arm/examples/draganddrop/delayedencoding/delayedencoding matches Binary file Qt-4.8.7-arm/examples/draganddrop/draggableicons/draggableicons matches Binary file Qt-4.8.7-arm/examples/draganddrop/draggabletext/draggabletext matches Binary file Qt-4.8.7-arm/examples/ipc/localfortuneserver/localfortuneserver matches Binary file Qt-4.8.7-arm/examples/ipc/localfortuneclient/localfortuneclient matches Binary file Qt-4.8.7-arm/examples/ipc/sharedmemory/sharedmemory matches Binary file Qt-4.8.7-arm/examples/effects/blurpicker/blurpicker matches Binary file Qt-4.8.7-arm/examples/effects/lighting/lighting matches Binary file Qt-4.8.7-arm/examples/effects/fademessage/fademessage matches Binary file Qt-4.8.7-arm/examples/tools/treemodelcompleter/treemodelcompleter matches Binary file Qt-4.8.7-arm/examples/tools/inputpanel/inputpanel matches Binary file Qt-4.8.7-arm/examples/tools/echoplugin/echoplugin matches Binary file Qt-4.8.7-arm/examples/tools/undoframework/undoframework matches Binary file Qt-4.8.7-arm/examples/tools/completer/completer matches Binary file Qt-4.8.7-arm/examples/tools/i18n/i18n matches Binary file Qt-4.8.7-arm/examples/tools/codecs/codecs matches Binary file Qt-4.8.7-arm/examples/tools/settingseditor/settingseditor matches Binary file Qt-4.8.7-arm/examples/tools/customcompleter/customcompleter matches Binary file Qt-4.8.7-arm/examples/tools/plugandpaint/plugandpaint matches Binary file Qt-4.8.7-arm/examples/tools/styleplugin/styleplugin matches Binary file Qt-4.8.7-arm/examples/tools/regexp/regexp matches Binary file Qt-4.8.7-arm/examples/declarative/positioners/positioners matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/spinner/spinner matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/dialcontrol/dialcontrol matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/main/main matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/searchbox/searchbox matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/flipable/flipable matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/scrollbar/scrollbar matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/tabwidget/tabwidget matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/slideswitch/slideswitch matches Binary file Qt-4.8.7-arm/examples/declarative/ui-components/progressbar/progressbar matches Binary file Qt-4.8.7-arm/examples/declarative/touchinteraction/pincharea/pincharea matches Binary file Qt-4.8.7-arm/examples/declarative/touchinteraction/mousearea/mousearea-example/mouseareaexample matches Binary file Qt-4.8.7-arm/examples/declarative/touchinteraction/gestures/experimental-gestures/experimentalgestures matches Binary file Qt-4.8.7-arm/examples/declarative/sqllocalstorage/sqllocalstorage matches Binary file Qt-4.8.7-arm/examples/declarative/animation/basics/property-animation/property-animation matches Binary file Qt-4.8.7-arm/examples/declarative/animation/basics/color-animation/color-animation matches Binary file Qt-4.8.7-arm/examples/declarative/animation/behaviors/behavior-example/behavior-example matches Binary file Qt-4.8.7-arm/examples/declarative/animation/states/states matches Binary file Qt-4.8.7-arm/examples/declarative/animation/easing/easing matches Binary file Qt-4.8.7-arm/examples/declarative/i18n/i18n matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/webview/newwindows/newwindows matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/webview/inlinehtml/inlinehtml matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/webview/alerts/alerts matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/webview/autosize/autosize matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/webview/googlemaps/googlemaps matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/parallax/parallax matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/gridview-example/gridview matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/objectlistmodel/objectlistmodel matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/abstractitemmodel/abstractitemmodel matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/stringlistmodel/stringlistmodel matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/listview/highlight/highlight matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/listview/expandingdelegates/expandingdelegates matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/listview/sections/sections matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/listview/highlightranges/highlightranges matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/listview/dynamiclist/dynamiclist matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/visualitemmodel/visualitemmodel matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/pathview-example/pathview matches Binary file Qt-4.8.7-arm/examples/declarative/modelviews/package/package matches Binary file Qt-4.8.7-arm/examples/declarative/threading/workerscript/workerscript matches Binary file Qt-4.8.7-arm/examples/declarative/threading/threadedlistmodel/threadedlistmodel matches Binary file Qt-4.8.7-arm/examples/declarative/keyinteraction/focus/focus matches Binary file Qt-4.8.7-arm/examples/declarative/toys/dynamicscene/dynamicscene matches Binary file Qt-4.8.7-arm/examples/declarative/toys/tic-tac-toe/tic-tac-toe matches Binary file Qt-4.8.7-arm/examples/declarative/toys/clocks/clocks matches Binary file Qt-4.8.7-arm/examples/declarative/toys/corkboards/corkboards matches Binary file Qt-4.8.7-arm/examples/declarative/toys/tvtennis/tvtennis matches Binary file Qt-4.8.7-arm/examples/declarative/text/fonts/hello/hello matches Binary file Qt-4.8.7-arm/examples/declarative/text/fonts/fonts/fonts matches Binary file Qt-4.8.7-arm/examples/declarative/text/fonts/banner/banner matches Binary file Qt-4.8.7-arm/examples/declarative/text/fonts/availableFonts/availableFonts matches Binary file Qt-4.8.7-arm/examples/declarative/text/textselection/textselection matches Binary file Qt-4.8.7-arm/examples/declarative/imageelements/shadows/shadows matches Binary file Qt-4.8.7-arm/examples/declarative/imageelements/borderimage/borderimage matches Binary file Qt-4.8.7-arm/examples/declarative/imageelements/image/image matches Binary file Qt-4.8.7-arm/examples/declarative/cppextensions/networkaccessmanagerfactory/.obj/release-shared-emb-arm/moc_qmlapplicationviewer.o matches Binary file Qt-4.8.7-arm/examples/declarative/cppextensions/networkaccessmanagerfactory/networkaccessmanagerfactory matches Binary file Qt-4.8.7-arm/examples/declarative/cppextensions/qgraphicslayouts/qgraphicslinearlayout/.obj/release-shared-emb-arm/moc_qmlapplicationviewer.o matches Binary file Qt-4.8.7-arm/examples/declarative/cppextensions/qgraphicslayouts/qgraphicslinearlayout/qgraphicslinearlayout matches Binary file Qt-4.8.7-arm/examples/declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/.obj/release-shared-emb-arm/moc_qmlapplicationviewer.o matches Binary file Qt-4.8.7-arm/examples/declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/qgraphicsgridlayout matches Binary file Qt-4.8.7-arm/examples/declarative/cppextensions/referenceexamples/extended/extended matches Binary file Qt-4.8.7-arm/examples/declarative/cppextensions/referenceexamples/extended/.obj/release-shared-emb-arm/main.o matches Binary file Qt-4.8.7-arm/examples/widgets/groupbox/groupbox matches Binary file Qt-4.8.7-arm/examples/widgets/spinboxes/spinboxes matches Binary file Qt-4.8.7-arm/examples/widgets/imageviewer/imageviewer matches Binary file Qt-4.8.7-arm/examples/widgets/sliders/sliders matches Binary file Qt-4.8.7-arm/examples/widgets/icons/icons matches Binary file Qt-4.8.7-arm/examples/widgets/lineedits/lineedits matches Binary file Qt-4.8.7-arm/examples/widgets/tablet/tablet matches Binary file Qt-4.8.7-arm/examples/widgets/digitalclock/digitalclock matches Binary file Qt-4.8.7-arm/examples/widgets/windowflags/windowflags matches Binary file Qt-4.8.7-arm/examples/widgets/tooltips/tooltips matches Binary file Qt-4.8.7-arm/examples/widgets/calendarwidget/calendarwidget matches Binary file Qt-4.8.7-arm/examples/widgets/shapedclock/shapedclock matches Binary file Qt-4.8.7-arm/examples/widgets/tetrix/tetrix matches Binary file Qt-4.8.7-arm/examples/widgets/scribble/scribble matches Binary file Qt-4.8.7-arm/examples/widgets/wiggly/wiggly matches Binary file Qt-4.8.7-arm/examples/widgets/styles/styles matches Binary file Qt-4.8.7-arm/examples/widgets/analogclock/analogclock matches Binary file Qt-4.8.7-arm/examples/widgets/charactermap/charactermap matches Binary file Qt-4.8.7-arm/examples/widgets/calculator/calculator matches Binary file Qt-4.8.7-arm/examples/widgets/movie/movie matches Binary file Qt-4.8.7-arm/examples/widgets/stylesheet/stylesheet matches Binary file Qt-4.8.7-arm/examples/widgets/validators/validators matches Binary file Qt-4.8.7-arm/examples/widgets/codeeditor/codeeditor matches Binary file Qt-4.8.7-arm/examples/qws/mousecalibration/mousecalibration matches Binary file Qt-4.8.7-arm/examples/qws/simpledecoration/simpledecoration matches Binary file Qt-4.8.7-arm/examples/network/qftp/qftp matches Binary file Qt-4.8.7-arm/examples/network/broadcastsender/broadcastsender matches Binary file Qt-4.8.7-arm/examples/network/multicastsender/multicastsender matches Binary file Qt-4.8.7-arm/examples/network/threadedfortuneserver/threadedfortuneserver matches Binary file Qt-4.8.7-arm/examples/network/googlesuggest/googlesuggest matches Binary file Qt-4.8.7-arm/examples/network/multicastreceiver/multicastreceiver matches Binary file Qt-4.8.7-arm/examples/network/torrent/torrent matches Binary file Qt-4.8.7-arm/examples/network/network-chat/network-chat matches Binary file Qt-4.8.7-arm/examples/network/fortuneclient/fortuneclient matches Binary file Qt-4.8.7-arm/examples/network/fortuneserver/fortuneserver matches Binary file Qt-4.8.7-arm/examples/network/broadcastreceiver/broadcastreceiver matches Binary file Qt-4.8.7-arm/examples/network/loopback/loopback matches Binary file Qt-4.8.7-arm/examples/network/http/http matches Binary file Qt-4.8.7-arm/examples/network/blockingfortuneclient/blockingfortuneclient matches Binary file Qt-4.8.7-arm/examples/qtconcurrent/imagescaling/imagescaling matches Binary file Qt-4.8.7-arm/examples/gestures/imagegestures/imagegestures matches Binary file Qt-4.8.7-arm/examples/dialogs/tabdialog/tabdialog matches Binary file Qt-4.8.7-arm/examples/dialogs/standarddialogs/standarddialogs matches Binary file Qt-4.8.7-arm/examples/dialogs/extension/extension matches Binary file Qt-4.8.7-arm/examples/dialogs/configdialog/configdialog matches Binary file Qt-4.8.7-arm/examples/dialogs/classwizard/classwizard matches Binary file Qt-4.8.7-arm/examples/dialogs/findfiles/findfiles matches Binary file Qt-4.8.7-arm/examples/dialogs/licensewizard/licensewizard matches Qt-4.8.7-arm/include/Qt/qwidget.h: virtual bool qwsEvent(QWSEvent *); Qt-4.8.7-arm/include/Qt/qapplication.h: virtual bool qwsEventFilter(QWSEvent *); Qt-4.8.7-arm/include/Qt/qgraphicswidget.h: //virtual bool qwsEvent(QWSEvent *event); Qt-4.8.7-arm/include/QtGui/qwidget.h: virtual bool qwsEvent(QWSEvent *); Qt-4.8.7-arm/include/QtGui/qapplication.h: virtual bool qwsEventFilter(QWSEvent *); Qt-4.8.7-arm/include/QtGui/qgraphicswidget.h: //virtual bool qwsEvent(QWSEvent *event); Binary file Qt-4.8.7-arm/lib/libQtSvg.so.4.8.7 matches Binary file Qt-4.8.7-arm/lib/libQtGui.so.4.8.7 matches Binary file Qt-4.8.7-arm/lib/libQtWebKit.so.4.9.4 matches Binary file Qt-4.8.7-arm/lib/libQtScriptTools.so.4.8.7 matches Binary file Qt-4.8.7-arm/lib/libQtDeclarative.so.4.8.7 matches Binary file Qt-4.8.7-arm/lib/libQt3Support.so.4.8.7 matches Binary file Qt-4.8.7-arm/tests/qt4/tst_hybridPixmap/hybridPixmap matches root@athar-HP-Z420-Workstation:/usr/local# egrep -r x11Event Qt-4.8.7-arm/* Qt-4.8.7-arm/include/Qt/qwidget.h: virtual bool x11Event(XEvent *); Qt-4.8.7-arm/include/Qt/qapplication.h: virtual bool x11EventFilter(XEvent *); Qt-4.8.7-arm/include/Qt/qgraphicswidget.h: //virtual bool x11Event(XEvent *event); Qt-4.8.7-arm/include/Qt/qx11embed_x11.h: bool x11Event(XEvent *); Qt-4.8.7-arm/include/Qt/qx11embed_x11.h: bool x11Event(XEvent *); Qt-4.8.7-arm/include/QtGui/qwidget.h: virtual bool x11Event(XEvent *); Qt-4.8.7-arm/include/QtGui/qapplication.h: virtual bool x11EventFilter(XEvent *); Qt-4.8.7-arm/include/QtGui/qgraphicswidget.h: //virtual bool x11Event(XEvent *event); Qt-4.8.7-arm/include/QtGui/qx11embed_x11.h: bool x11Event(XEvent *); Qt-4.8.7-arm/include/QtGui/qx11embed_x11.h: bool x11Event(XEvent *);
Last two command resulted the same while executed on target board.
-
Did you run ldd on your target ?
In any case, did you install your cross-compiler Qt on your target ? -
@SGaist said in QT installation failed on arm71:
Did you run ldd on your target ?
Yes. here is the output
analog@analog:~$ ldd NewProj libQtGui.so.4 => /usr/local/Qt-4.8.7-arm/lib/libQtGui.so.4 (0xb682d000) libQtNetwork.so.4 => /usr/local/Qt-4.8.7-arm/lib/libQtNetwork.so.4 (0xb6773000) libQtCore.so.4 => /usr/local/Qt-4.8.7-arm/lib/libQtCore.so.4 (0xb64ea000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb64b2000) libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6407000) libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb639b000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6379000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6292000) libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6287000) librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6279000) /lib/ld-linux-armhf.so.3 (0x7f5d1000)
@SGaist said in QT installation failed on arm71:
In any case, did you install your cross-compiler Qt on your target ?
I cross compiled Qt4.8.7 and installed in /usr/local/qt on my host PC. I then copied the /usr/local/qt folder in my target at /usr/local/qt-arm
-
@FRKhan said in QT installation failed on arm71:
in my target at /usr/local/qt-arm
If there's no typo, something is not matching since ldd is showing Qt libraries are taken from another folder: /usr/local/Qt-4.8.7-arm/lib so it seems you have another installation of Qt in your device...
-
One thing to do: copy the Qt installation folder in the exact same subdirectory on your target than on your desktop machine.
-
Thank you guys for your time.
@Pablo-J-Rogina said in QT installation failed on arm71:
If there's no typo, something is not matching since ldd is showing Qt libraries are taken from another folder: /usr/local/Qt-4.8.7-arm/lib so it seems you have another installation of Qt in your device...
yes that was typo. It is /usr/local/Qt-4.8.7-arm
@SGaist said in QT installation failed on arm71:
One thing to do: copy the Qt installation folder in the exact same subdirectory on your target than on your desktop machine.
I did it. deployed application but nothing appeared. not even any error. I found this thread. I open console terminal (CNTRL+ALT+F1) and my application executed successfully. I did not enabled virtual frame buffer or vnc while configuring qt sources.
Although i somehow executed application on my target but i didn't understand one thing. How qt application executes on host system when compiled using host kit? i mean why that doesn't depends upon virtual framebuffer on vnc?
Secondly, Qt virtual buffer documentation says we should not use it on release application but on debug applications only. If this is true the what is the most optimized approach to deploy the qt application on production release? -
If you are building with your host kit then it's going to use your host infrastructure. Likely the XCB backend.
The virtual framebuffer is a tool that allows you to visualise your application the way it would be on your target without the need to have it available.
-
@SGaist Thank you
@SGaist said in QT installation failed on arm71:
The virtual framebuffer is a tool that allows you to visualise your application the way it would be on your target without the need to have it available.
Ok. than what is the best way to deploy the application. My target board is running XUnuntu. When i deploy my application, it appears in destined folder when does not run until i go to console terminal. I have to do (CNTRL+ALT+F1) and run ./app -qws.
what i want is, when i double click on my application executable, it should launch. Like built-in calculator. When i click on calculator icon, it's window appears. is it possible for qt application?
-
Do you have a window manager on your target ?
-
@SGaist
yes. My target is Picozed SDR board which is running Xubuntu with HDMI display. It has Xfce desktop environment. We can install other tools as well. It has most of the desktop environment available. -
Then why are you using a Qt version built for embedded without window manager ?