Sunday, July 04, 2010

problems faced with Qt everywhere for Mini 2440

After applying what i said in this post , some problems occurred
1.arm-none-linux-gnueabi: command not found
solution:
 -in terminal:
gedit .bashrc
 -in  .bashrc make sure that those line are there , if not there add them:
export PATH=/usr/local/arm/4.3.2/bin:$PATH
export PATH=/usr/local/arm/4.3.2/arm-none-linux-gnueabi/bin:$PATH 
save .bashrc and exit all the open linux terminals.

then in qt-everywhere directoy browse to the mkspecs/qws/linux-arm-g++/ then edit the qmake.conf
replace all the contents of this file with the following:

  1. #  
  2. # qmake configuration for building with arm-linux-g++  
  3. #  
  4.   
  5. include(../../common/g++.conf)  
  6. include(../../common/linux.conf)  
  7. include(../../common/qws.conf)  
  8.   
  9.   
  10.   
  11. # modifications to g++.conf  
  12. QMAKE_CC                = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc  
  13. -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0   
  14.   
  15. QMAKE_CXX               = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++  
  16. -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0   
  17.   
  18. QMAKE_LINK              = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++  
  19. -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0   
  20.   
  21. QMAKE_LINK_SHLIB        = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++  
  22. -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0   
  23.   
  24.   
  25.   
  26. # modifications to linux.conf  
  27. QMAKE_AR                = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-ar cqs  
  28. QMAKE_OBJCOPY           = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-objcopy  
  29. QMAKE_STRIP             = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-strip  
  30.   
  31.   
  32.   
  33. QMAKE_CFLAGS    += -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t  
  34. -mtune=arm920t  
  35. QMAKE_CXXFLAGS    += -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t  
  36. -mtune=arm920t  
  37.   
  38.   
  39. load(qt_config)  

then save the file and close it.
finally browse to the Qt-everywhere directory in the terminal and  configure with these options

./configure -release -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt-4.6.2_arm -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -nomake examples -optimized-qmake -no-openssl -nomake tools
then make .. then make install .. tada .. you'll find Qt-everywhere's output folder in /usr/local/ under the name
Qt-4.6.2_arm
good luck with your steps
--------------------------------------------------------------------------------------------
the code above was formatted using this tool
it seems to be great online tool

0 comments: