Results 1 to 3 of 3

Thread: Byte Order Error Cross-Compiling

  1. #1

    Default Byte Order Error Cross-Compiling

    I'm trying to cross-compile Qt for ARM. I'm using CodeSourcery for the toolchain, and included it in the PATH. I get an error I can not for the life of me figure out. Any help or ideas would be greatly appreciated. Here is the output with verbose messaging on (sorry it's so long, but I figured it was best to include everything):

    coolwebb@ubuntu:~/Qt-Gumstix/qt-everywhere-opensource-src-4.6.3$ ./configure -release -embedded arm -v
    Which edition of Qt do you want to use ?

    Type 'c' if you want to use the Commercial Edition.
    Type 'o' if you want to use the Open Source Edition.

    o

    Determining system architecture... (Linux:2.6.31-22-generic:i686)
    32-bit Intel 80x86 (i386)
    'arm' is supported
    'i386' is supported
    System architecture: 'arm'
    Host architecture: 'i386'

    You have not explicitly asked to use pkg-config and are cross-compiling.
    pkg-config will not be used to automatically query cflag/lib parameters for
    dependencies

    Precompiled-headers support disabled.
    /home/coolwebb/Qt-Gumstix/qt-everywhere-opensource-src-4.6.3/config.tests/unix/fvisibility.test: line 18: arm-linux-g++: command not found
    Symbol visibility control disabled.

    This is the Qt for Embedded Linux Open Source Edition.

    You are licensed to use this software under the terms of
    the Lesser GNU General Public License (LGPL) versions 2.1.
    You are also licensed to use this software under the terms of
    the GNU General Public License (GPL) versions 3.

    Type '3' to view the GNU General Public License version 3.
    Type 'L' to view the Lesser GNU General Public License version 2.1.
    Type 'yes' to accept this license offer.
    Type 'no' to decline this license offer.

    Do you accept the terms of either license? yes

    Creating qmake. Please wait...
    make: Nothing to be done for `first'.
    floatmath auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o floatmath.o floatmath.cpp
    make: arm-linux-g++: Command not found
    make: *** [floatmath.o] Error 127
    floatmath disabled.
    mmx auto-detection... ()
    arm-linux-g++ -c -pipe -mmmx -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o mmx.o mmx.cpp
    make: arm-linux-g++: Command not found
    make: *** [mmx.o] Error 127
    mmx disabled.
    3dnow auto-detection... ()
    arm-linux-g++ -c -pipe -m3dnow -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o 3dnow.o 3dnow.cpp
    make: arm-linux-g++: Command not found
    make: *** [3dnow.o] Error 127
    3dnow disabled.
    sse auto-detection... ()
    arm-linux-g++ -c -pipe -msse -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o sse.o sse.cpp
    make: arm-linux-g++: Command not found
    make: *** [sse.o] Error 127
    sse disabled.
    sse2 auto-detection... ()
    arm-linux-g++ -c -pipe -msse2 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o sse2.o sse2.cpp
    make: arm-linux-g++: Command not found
    make: *** [sse2.o] Error 127
    sse2 disabled.
    neon auto-detection... ()
    arm-linux-g++ -c -pipe -mfpu=neon -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o neon.o neon.cpp
    make: arm-linux-g++: Command not found
    make: *** [neon.o] Error 127
    neon disabled.
    zlib auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o zlib.o zlib.cpp
    make: arm-linux-g++: Command not found
    make: *** [zlib.o] Error 127
    zlib disabled.
    libjpeg auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o libjpeg.o libjpeg.cpp
    make: arm-linux-g++: Command not found
    make: *** [libjpeg.o] Error 127
    libjpeg disabled.
    libtiff auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o libtiff.o libtiff.cpp
    make: arm-linux-g++: Command not found
    make: *** [libtiff.o] Error 127
    libtiff disabled.
    libmng auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o libmng.o libmng.cpp
    make: arm-linux-g++: Command not found
    make: *** [libmng.o] Error 127
    libmng disabled.
    libpng auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o libpng.o libpng.cpp
    make: arm-linux-g++: Command not found
    make: *** [libpng.o] Error 127
    libpng disabled.
    DB2 auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o db2.o db2.cpp
    make: arm-linux-g++: Command not found
    make: *** [db2.o] Error 127
    DB2 disabled.
    InterBase auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o ibase.o ibase.cpp
    make: arm-linux-g++: Command not found
    make: *** [ibase.o] Error 127
    InterBase disabled.
    MySQL (thread-safe) auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o mysql.o ../mysql/mysql.cpp
    make: arm-linux-g++: Command not found
    make: *** [mysql.o] Error 127
    MySQL (thread-safe) disabled.
    MySQL (thread-unsafe) auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o mysql.o mysql.cpp
    make: arm-linux-g++: Command not found
    make: *** [mysql.o] Error 127
    MySQL (thread-unsafe) disabled.
    OCI auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o oci.o oci.cpp
    make: arm-linux-g++: Command not found
    make: *** [oci.o] Error 127
    OCI disabled.
    ODBC auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o odbc.o odbc.cpp
    make: arm-linux-g++: Command not found
    make: *** [odbc.o] Error 127
    ODBC disabled.
    iODBC auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o iodbc.o iodbc.cpp
    make: arm-linux-g++: Command not found
    make: *** [iodbc.o] Error 127
    iODBC disabled.
    PostgreSQL auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o psql.o psql.cpp
    make: arm-linux-g++: Command not found
    make: *** [psql.o] Error 127
    PostgreSQL disabled.
    SQLite2 auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o sqlite2.o sqlite2.cpp
    make: arm-linux-g++: Command not found
    make: *** [sqlite2.o] Error 127
    SQLite2 disabled.
    unknown SQL driver: sqlite_symbian
    TDS auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o tds.o tds.cpp
    make: arm-linux-g++: Command not found
    make: *** [tds.o] Error 127
    TDS disabled.
    NIS auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o nis.o nis.cpp
    make: arm-linux-g++: Command not found
    make: *** [nis.o] Error 127
    NIS disabled.
    Cups auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o cups.o cups.cpp
    make: arm-linux-g++: Command not found
    make: *** [cups.o] Error 127
    Cups disabled.
    D-Bus auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o dbus.o dbus.cpp
    make: arm-linux-g++: Command not found
    make: *** [dbus.o] Error 127
    D-Bus disabled.
    EGL (EGL/egl.h) auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o egl.o egl.cpp
    make: arm-linux-g++: Command not found
    make: *** [egl.o] Error 127
    EGL (EGL/egl.h) disabled.
    EGL (GLES/egl.h) auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o egl4gles1.o egl4gles1.cpp
    make: arm-linux-g++: Command not found
    make: *** [egl4gles1.o] Error 127
    EGL (GLES/egl.h) disabled.
    Glib auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o glib.o glib.cpp
    make: arm-linux-g++: Command not found
    make: *** [glib.o] Error 127
    Glib disabled.
    sound auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o sound.o sound.cpp
    make: arm-linux-g++: Command not found
    make: *** [sound.o] Error 127
    sound disabled.
    FreeType auto-detection... ()
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o freetype.o freetype.cpp
    make: arm-linux-g++: Command not found
    make: *** [freetype.o] Error 127
    FreeType disabled.
    Determining machine byte-order... (/home/coolwebb/Qt-Gumstix/qt-everywhere-opensource-src-4.6.3/mkspecs/qws/linux-arm-g++ yes /home/coolwebb/Qt-Gumstix/qt-everywhere-opensource-src-4.6.3 /home/coolwebb/Qt-Gumstix/qt-everywhere-opensource-src-4.6.3)
    arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o endiantest.o endiantest.cpp
    make: arm-linux-g++: Command not found
    make: *** [endiantest.o] Error 127
    Unknown byte order!

    The target system byte order could not be detected!
    Turn on verbose messaging (-v) to see the final report.
    You can use the -little-endian or -big-endian switch to
    ./configure to continue.

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Byte Order Error Cross-Compiling

    Well, the endianess test is failing, but it appears it fails because the program that executes it isn't being compiled, and it isn't being compiled because the compiler requested can't be found:

    Qt Code:
    1. arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o endiantest.o endiantest.cpp
    2. make: arm-linux-g++: Command not found
    To copy to clipboard, switch view to plain text mode 

    In fact, this error occurs repeatedly in your dump.

  3. #3

    Default Re: Byte Order Error Cross-Compiling

    Thanks for the help.

    It turns out the naming convention in the CodeSourcery bin directory is different than that used in the Qt-Embedded ARM configure script. I ran this:

    Qt Code:
    1. cd CodeSourcery/Sourcery_G++/bin
    2. for f in arm-none-linux-gnueabi-*; do n=$(echo $f|cut -b 24-); ln -s $f arm-linux-$n; done
    To copy to clipboard, switch view to plain text mode 

    And that fixed the problem.

Similar Threads

  1. Replies: 3
    Last Post: 19th April 2010, 14:16
  2. Steps for cross compiling
    By Yayati.Ekbote in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 15th March 2010, 15:32
  3. Qt4.6.0 release cross compiling error
    By favor in forum Installation and Deployment
    Replies: 3
    Last Post: 10th March 2010, 12:55
  4. cross compiling
    By tommy in forum Installation and Deployment
    Replies: 1
    Last Post: 8th March 2009, 18:02
  5. link error when cross-compiling qtopia 4.2.0
    By ghellman in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 9th February 2007, 04:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.