Results 1 to 7 of 7

Thread: error: #error "Not supported ARM architecture"

  1. #1
    Join Date
    Dec 2009
    Posts
    22
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default error: #error "Not supported ARM architecture"

    Hi all,
    I'm trying to cross compile embedded qt for an ARM board on my debian system. It configured OK but gave the above error on make. Is there some switch I can add to configure to get rid of this? My configure is

    ./configure -embedded arm -xplatform qws/linux-arm-g++ -depths 16 -qt-zlib -qt-freetype -qt-libjpeg -qt-libpng -no-gif -no-libtiff -no-qt3support -qt-gfx-linuxfb -no-glib -no-xinput -no-webkit -no-gtkstyle -silent -no-openssl


    and the error is

    In file included from ../3rdparty/javascriptcore/JavaScriptCore/config.h:26,
    from ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:44:
    ../3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:298:6: error: #error "Not supported ARM architecture"
    make[1]: *** [obj/release/pcre_compile.o] Error 1
    make[1]: Leaving directory `/root/DirectFBArm/Host/qt-everywhere-opensource-src-4.6.0/src/script'
    make: *** [sub-script-make_default-ordered] Error 2


    Thanks all!

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: error: #error "Not supported ARM architecture"

    Did you try to define the arm architecture? Considering the code supports THUMB2 and previous instruction sets (you could call it "Traditional"), you need to tell it which to use.

  3. #3
    Join Date
    Dec 2009
    Posts
    22
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: error: #error "Not supported ARM architecture"

    Thanks for that but I've no idea how to define the arm, would I go into the make and define it there?

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: error: #error "Not supported ARM architecture"

    What you define depends on your target system. Which instruction set does it use?

    If it's thumb2, then thumb2 or __thumb2__ should be defined already, see platform.h, else the instruction set should be defined (ARMv4, v5, v6, v7). Note however that v7 maybe thumb2, depending on the core.

  5. #5
    Join Date
    Jan 2010
    Posts
    3
    Qt products
    Qt/Embedded

    Default Re: error: #error "Not supported ARM architecture"

    Hello,
    can someone give me a hint how to patch.

    I have the same Problem, using a S3c2440 ...an armv4, isn't it? ...patch /3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h ?

    I tried to config it OUT: ./configure -confirm-license -embedded arm -verbose -no-cups -no-webkit -no-javascript-jit but that does not help?
    ...but make has still the "./3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:298:6: error: #error "Not supported ARM architecture"" ERROR?

    regards
    schasch

  6. #6
    Join Date
    Jan 2010
    Posts
    3
    Qt products
    Qt/Embedded

    Default Re: error: #error "Not supported ARM architecture"

    INFO:
    compiling qt-embedded 4.4.3 can be compiled without problems...

  7. #7
    Join Date
    Feb 2010
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: error: #error "Not supported ARM architecture"

    Maybe it's late for a reply but I have a detailed solution to the problem.
    Like what people have mentioned in the replies,
    you have to specify the target architecture.

    Check /3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
    You will find the defintions for the architectures there.

    such as , "__ARM_ARCH_5TEJ__" (this is for ARMv5)

    add a line in your ./configure parameters, such as "-D__ARM_ARCH_5TEJ__" , or whichever architecture definition that suits the platform.

    The compile problems to do with javascriptcore should go away.
    It happened to work for me, at least for qt 4.5.1 and 4.6.2, for ARMv5 architecture.

    Hope this helps.

Similar Threads

  1. QT4 - QT SOAP supported?
    By talk2amulya in forum Qt Programming
    Replies: 2
    Last Post: 11th February 2009, 09:15

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.