qtopia-interest@trolltech.com
[Top] [All Lists]

Antwort: Re: Antwort: Re: Error: opcode not supported on this processor

Subject: Antwort: Re: Antwort: Re: Error: opcode not supported on this processor
From:
Date: Mon, 27 Feb 2006 12:18:06 +0100

Dario Massarin <nekkar@xxxxxxxxx> wrote on 27.02.2006 12:41:12:

> On Monday 27 February 2006 10:29, you wrote:
> > That sounds good. What do I have to do to use the correct binutils?
> > I just had a look at trolltech´s webpage, but I could not find any
> > explanations or howtos. Do you know of any of them?
>
> I don't know which compiler toolchain you are using. If you stick with
> something like crosstool (see http://kegel.com/crosstool/) or crossdev (if
> you use gentoo) you should come out with a complete toolchain that will work
> well.
>
I use emlix as target-os, which comes with many files to cross compile.

The thing is, that whenever I try to include the libraries and and includes, I get errors like

g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.1.0-mips/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.1.0-mips/lib -o ../../../bin/moc release-shared/moc.o release-shared/preprocessor.o release-shared/main.o release-shared/generator.o release-shared/scanner.o release-shared/qglobal.o release-shared/qbuffer.o release-shared/qdir.o release-shared/qfile.o release-shared/qfileinfo.o release-shared/qfsfileengine.o release-shared/qiodevice.o release-shared/qtemporaryfile.o release-shared/qtextstream.o release-shared/qinternal.o release-shared/qbytearraymatcher.o release-shared/qchar.o release-shared/qdatetime.o release-shared/qhash.o release-shared/qlistdata.o release-shared/qlocale.o release-shared/qmap.o release-shared/qstring.o release-shared/qstringlist.o release-shared/qstringmatcher.o release-shared/qvector.o release-shared/qabstractfileengine.o release-shared/qbytearray.o release-shared/qunicodetables.o release-shared/qvsnprintf.o release-shared/qfsfileengine_unix.o   -L/opt/emlix/netdcu6/lib -ldl
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: skipping incompatible /opt/emlix/netdcu6/lib/libdl.so when searching for -ldl
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: skipping incompatible /opt/emlix/netdcu6/lib/libdl.a when searching for -ldl
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: skipping incompatible /opt/emlix/netdcu6/lib/libstdc++.so when searching for -lstdc++
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: skipping incompatible /opt/emlix/netdcu6/lib/libstdc++.a when searching for -lstdc++
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: skipping incompatible /opt/emlix/netdcu6/lib/libm.so when searching for -lm
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: skipping incompatible /opt/emlix/netdcu6/lib/libm.a when searching for -lm
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: skipping incompatible /opt/emlix/netdcu6/lib/libgcc_s.so when searching for -lgcc_s
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: skipping incompatible /opt/emlix/netdcu6/lib/libc.so.6 when searching for /opt/emlix/netdcu6/lib/libc.so.6
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot find /opt/emlix/netdcu6/lib/libc.so.6
collect2: ld returned 1 exit status
make[2]: *** [../../../bin/moc] Fehler 1
make[2]: Leaving directory `/home/sumpi/Software/qtopia-core-opensource-src-4.1.0/src/tools/moc'
make[1]: *** [sub-tools-moc-make_default-ordered] Fehler 2
make[1]: Leaving directory `/home/sumpi/Software/qtopia-core-opensource-src-4.1.0/src'
make: *** [sub-src-make_default-ordered] Fehler 2

When I compile with just the two flags:
-embedded mips -platform qws/linux-x86-g++

I get the described error with the unsupported opcodes.

I just don´t know how to compile for my embedded system *sigh*

Does anyone know, how to compile correctly?

Thanks in advance!
Andy
<Prev in Thread] Current Thread [Next in Thread>