From: Yang Lei <y34...@gmail.com> Reply-To: "beagleboard@googlegroups.com" <beagleboard@googlegroups.com> Date: Saturday, December 13, 2014 at 1:55 PM To: "beagleboard@googlegroups.com" <beagleboard@googlegroups.com> Subject: [beagleboard] Qt 5.4 on BBB OpenGL: Linux is dead after execute examples. Keyboard and mouse have no response.
> Hello everyone > > I¹m new on Qt on arm linux. I¹m trying to cross compile the newest version Qt > 5.4 for Beaglebone Black(BBB). I think I almost successed because I finished > configure and make of Qt 5.4 based on root file system on BBB. When I try to > run an example, the GUI shows up but the linux is dead and there is no > response from keyboard and mouse. The only thing I can do is to reset BBB. > Could someone help me with this problem? I will describe my steps as follow: > > 1. Build Ubuntu SD card > > For this step, I followed the following website: > https://eewiki.net/display/linuxonarm/BeagleBone+Black > <https://eewiki.net/display/linuxonarm/BeagleBone+Black> > > Kernel version: > Linux arm 3.18.0-bone1 #1 Mon Dec 8 23:08:59 EST 2014 armv71 armv71 armv71 > GNU/Linux > > Root file system: > Ubuntu 14.04.1 LTS > > Cross compiler: > arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.9-2014.09 Linaro GCC > 4.9-2014.09) 4.9.2 20140904 (prerelease) > > The SD card just works fine. > > 2. Build and install SGX driver > Also, I followed the SGX part of the following website > https://eewiki.net/display/linuxonarm/BeagleBone+Black > <https://eewiki.net/display/linuxonarm/BeagleBone+Black> > > The demo program OGLES2ChameleonMan works fine. > > 3. Build Qt 5.4 > (1) Download Qt 5.4 source qt-everywhere-opensource-src-5.4.0.tar.gz > http://download.qt-project.org/archive/qt/5.4/5.4.0/single/ > <http://download.qt-project.org/archive/qt/5.4/5.4.0/single/> > > (2) Configure Qt 5.4 > copy the newest cross compiler library to root file system (otherwise the > configure has errors) > 1. sudo cp -r <some > dir>/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc > /* <some dir>/rootfs > edit /qtbase/mkspecs/devices/linux-beaglebone-g++/qmake.conf > 1. Ln 29: COMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon > -mfloat-abi=hard > 2. > 3. Ln 39: QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/include/OGLES2 > configure > 1. sudo ./configure -prefix /home/ubuntu/Qt > <http://qt-project.org/doc/Qt.html> -device linux-beaglebone-g++ > -device-option > CROSS_COMPILE=/home/albert/arm-dev/kernel_dev/bb-kernel/dl/gcc-linaro-arm-linu > x-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf- -sysroot > /media/albert/rootfs -release -opensource -confirm-license -opengl es2 -v > configure result > 1. Configure summary > 2. > 3. > 4. > 5. Building on: linux-g++ (x86_64, CPU features: mmx sse sse2) > 6. > 7. Building for: devices/linux-beaglebone-g++ (arm, CPU features: neon) > 8. > 9. Platform notes: > 10. > 11. > 12. > 13. - Also available for Linux: linux-kcc linux-icc linux-cxx > 14. > 15. > 16. > 17. qmake vars .......... styles += mac fusion windows DEFINES += QT_NO_MTDEV > DEFINES += QT_NO_LIBUDEV QMAKE_X11_PREFIX = /usr sql-drivers = sql-plugins = > sqlite qmake switches ......... > 18. > 19. > 20. > 21. Build options: > 22. > 23. Build parts ............ libs examples > 24. > 25. Mode ................... release > 26. > 27. Using C++11 ............ yes > 28. > 29. Using gold linker....... yes > 30. > 31. Using PCH .............. yes > 32. > 33. Target compiler supports: > 34. > 35. Neon ................. yes > 36. > 37. > 38. > 39. Qt <http://qt-project.org/doc/Qt.html> modules and options: > 40. > 41. Qt <http://qt-project.org/doc/Qt.html> D-Bus ............... runtime > 42. > 43. Qt <http://qt-project.org/doc/Qt.html> Concurrent .......... yes > 44. > 45. Qt <http://qt-project.org/doc/Qt.html> GUI ................. yes > 46. > 47. Qt <http://qt-project.org/doc/Qt.html> Widgets ............. yes > 48. > 49. Large File ............. yes > 50. > 51. QML debugging .......... yes > 52. > 53. Use system proxies ..... no > 54. > 55. > 56. > 57. Support enabled for: > 58. > 59. Accessibility .......... yes > 60. > 61. ALSA ................... no > 62. > 63. CUPS ................... no > 64. > 65. Evdev .................. yes > 66. > 67. FontConfig ............. no > 68. > 69. FreeType ............... yes (bundled copy) > 70. > 71. Glib ................... no > 72. > 73. GTK theme .............. no > 74. > 75. HarfBuzz ............... yes (bundled copy) > 76. > 77. Iconv .................. yes > 78. > 79. ICU .................... no > 80. > 81. Image formats: > 82. > 83. GIF .................. yes (plugin, using bundled copy) > 84. > 85. JPEG ................. yes (plugin, using bundled copy) > 86. > 87. PNG .................. yes (in QtGui > <http://qt-project.org/doc/QtGui.html> , using bundled copy) > 88. > 89. journald ............... no > 90. > 91. mtdev .................. no > 92. > 93. Networking: > 94. > 95. getaddrinfo .......... yes > 96. > 97. getifaddrs ........... yes > 98. > 99. IPv6 ifname .......... yes > 100. > 101. OpenSSL .............. no > 102. > 103. NIS .................... yes > 104. > 105. OpenGL / OpenVG: > 106. > 107. EGL .................. yes > 108. > 109. OpenGL ............... yes (OpenGL ES 2.0+) > 110. > 111. OpenVG ............... no > 112. > 113. PCRE ................... yes (bundled copy) > 114. > 115. pkg-config ............. no > 116. > 117. PulseAudio ............. no > 118. > 119. QPA backends: > 120. > 121. DirectFB ............. no > 122. > 123. EGLFS ................ yes > 124. > 125. KMS .................. no > 126. > 127. LinuxFB .............. yes > 128. > 129. XCB .................. no > 130. > 131. Session management ..... yes > 132. > 133. SQL drivers: > 134. > 135. DB2 .................. no > 136. > 137. InterBase ............ no > 138. > 139. MySQL ................ no > 140. > 141. OCI .................. no > 142. > 143. ODBC ................. no > 144. > 145. PostgreSQL ........... no > 146. > 147. SQLite 2 ............. no > 148. > 149. SQLite ............... yes (plugin, using bundled copy) > 150. > 151. TDS .................. no > 152. > 153. udev ................... no > 154. > 155. xkbcommon .............. no > 156. > 157. zlib ................... yes (bundled copy) > make and make install just work fine. > > 4. Run Qt examples > Before run Qt examples, again, I need to copy some cross compiler¹s lib file > into SD card, otherwise it has errors when execute program. > 1. sudo cp -r <some > dir>/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib > <some dir>/rootfs/home/ubuntu > On BBB, I neet to export LD_LIBRARY_PATH > 1. export LD_LIBRARY_PATH=/rootfs/home/ubuntu > Now, I can run Qt examples > 1. cd /Qt <http://qt-project.org/doc/Qt.html> /examples/quick/demos/stocqt > 2. > 3. ./stocqt Try ./stocqt -platform eglfs Regards, John > At this moment, the GUI shows on the screen. However, there is no mouse cursor > and the keyboard doesn¹t response. I can still see the terminal¹s text cursor > flashing. The only thing I can do now is to reset BBB. I also tried several > other examples and all yield the same result. No mouse cursor and keyboard > response. > > Does any one know what should I do to fix this problem? Thanks! > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to beagleboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.