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!
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.
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?
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.
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
Re: error: #error "Not supported ARM architecture"
INFO:
compiling qt-embedded 4.4.3 can be compiled without problems...
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.