COMPILE Library for ARM
-
What is the host platform? Are you trying to build on the target platform or cross-compile?
What is the output/problem? -
Host is linux .i want cross compile for arm my app on my pc. How can do? Thanks
-
As fcrochik already asked for you should post at least the output of the errors.
Without this we need a crystal ball. -
[code]
-config: invalid command-line switch
Determining system architecture... (Linux:2.6.32-41-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
dependenciesPrecompiled-headers support enabled.
/home/user/qt-everywhere-opensource-src-4.7.1/config.tests/unix/fvisibility.test: line 28: sb2 -t imx53 g++: command not found
Symbol visibility control disabled.
Symbolic function binding enabled.Usage: configure [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>] [-libdir <dir>]
[-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ] [-importdir <dir>] [-datadir <dir>]
[-translationdir <dir>] [-sysconfdir <dir>] [-examplesdir <dir>]
[-demosdir <dir>] [-buildkey <key>] [-release] [-debug]
[-debug-and-release] [-developer-build] [-shared] [-static] [-no-fast] [-fast] [-no-largefile]
[-largefile] [-no-exceptions] [-exceptions] [-no-accessibility]
[-accessibility] [-no-stl] [-stl] [-no-sql-<driver>] [-sql-<driver>]
[-plugin-sql-<driver>] [-system-sqlite] [-no-qt3support] [-qt3support]
[-platform] [-D <string>] [-I <string>] [-L <string>] [-help]
[-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libtiff] [-qt-libtiff] [-system-libtiff]
[-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng]
[-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make <part>]
[-nomake <part>] [-R <string>] [-l <string>] [-no-rpath] [-rpath] [-continue]
[-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv]
[-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] [-no-gui]
[-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
[-no-sse3] [-no-ssse3] [-no-sse4.1] [-no-sse4.2] [-no-avx]
[-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa]
[-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns]
[-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend]
[-no-media-backend] [-media-backend] [-no-audio-backend] [-audio-backend]
[-no-openssl] [-openssl] [-openssl-linked]
[-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-no-javascript-jit] [-javascript-jit]
[-no-script] [-script] [-no-scripttools] [-scripttools]
[-no-declarative] [-declarative][-no-declarative-debug] [-declarative-debug][additional platform specific options (see below)]
Installation options:
These are optional, but you may specify install directories.
-prefix <dir> ...... This will install everything relative to <dir> (default /opt/qt_eng) -hostprefix [dir] .. Tools and libraries needed when developing applications are installed in [dir]. If [dir] is not given, the current build directory will be used.
- -prefix-install .... Force a sandboxed "local" installation of
Qt. This will install into
/opt/qt_eng, if this option is
disabled then some platforms will attempt a
"system" install by placing default values to
be placed in a system location other than
PREFIX.
.
.
.
.
.
.
eccc... (help .\configure....)
user@ubuntu1004desktop:~/qt-everywhere-opensource-src-4.7.1$
[/code] - -prefix-install .... Force a sandboxed "local" installation of
-
I have QT creator and QT design.. I must have QT SDK?
-
Please use "code wrappings":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 when posting. This makes code and lists as in your case readable.
[quote author="enaud84" date="1335365671"]I must have QT SDK?[/quote]
SDK is not required.You have specified a switch "-config" in your call to ./configure and configure is complaining. You need to tackle each of the complaints.
Here is the complaint directly in the first line you have posted:
[quote author="enaud84" date="1335365618"][code]
-config: invalid command-line switch
Determining system architecture... (Linux:2.6.32-41-generic:i686)
32-bit Intel 80x86 (i386)
'arm' is supported
'i386' is supported
[/code]
[/quote]and points towards here in the command as you posted initially:
./configure -embedded arm -xplatform qws/linux-arm-g++ -qt-mouse-tslib -config -prefix /opt/qt_engRemove this switch.
My suggestion would be to start out with a minimal number of switches. You need to specify only those which are not default.
-
Hi and thanks
You say of remove "-config"? -
Yes!
The best is that you need to get through the configuration process by eliminating all errors. You need read the information displayed by the tools very careful. Good luck! -
@./configure -embedded arm -xplatform qws/linux-arm-g++ -qt-mouse-tslib -prefix /opt/qt_eng -little-endian -phonon -phonon-backend -no-stl -no-accessibility -no-qt3support -no-qt3support -qt-zlib -no-xmlpatterns -no-webkit -no-scripttools -no-gif -no-libtiff -no-libmng -no-openssl -no-opengl -no-mmx -no-3dnow -no-sse -no-sse2 -no-largefile -no-sm -svg -v -no-feature-cursor -fast -no-openvg -no-nas-sound -no-mmx -no-3dnow -no-sse -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon -no-javascript-jit -no-script -no-xrender -no-sm -no-xvideo -no-xsync -no-xinerama -fontconfig -no-xkb -no-xinput -no-mitshm -no-xrender -no-xfixes -no-xinerama -no-xsync -no-xvideo -no-xshape -reduce-relocations -no-largefile -opensource -release -no-declarative -no-multimedia -no-cups -no-nis -no-dbus -no-declarative-debug -no-exceptions -nomake examples -nomake demos -no-sql-sqlite -no-g++-exceptions@
I have error:
@
etermining system architecture... (Linux:2.6.32-41-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
dependenciesPrecompiled-headers support enabled.
/home/user/qt-everywhere-opensource-src-4.7.1/config.tests/unix/fvisibility.test: line 28: sb2 -t imx53 g++: command not found
Symbol visibility control disabled.
Symbolic function binding enabled.This is the Qt for Embedded Linux Open Source Edition.
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... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o floatmath.o floatmath.cpp
floatmath.cpp:44: warning: unused parameter 'argc'
floatmath.cpp:44: warning: unused parameter 'argv'
sb2 -t imx53 g++ -Wl,-O1 -o floatmath floatmath.o
floatmath enabled.
libjpeg auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o libjpeg.o libjpeg.cpp
libjpeg.cpp: In function 'int main(int, char**)':
libjpeg.cpp:51: warning: 'cinfo' is used uninitialized in this function
sb2 -t imx53 g++ -Wl,-O1 -o libjpeg libjpeg.o -ljpeg
libjpeg enabled.
libpng auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o libpng.o libpng.cpp
sb2 -t imx53 g++ -Wl,-O1 -o libpng libpng.o -lpng
libpng enabled.
DB2 auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o db2.o db2.cpp
db2.cpp:42:20: error: sqlcli.h: No such file or directory
db2.cpp:43:21: error: sqlcli1.h: No such file or directory
make: *** [db2.o] Error 1
DB2 disabled.
InterBase auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o ibase.o ibase.cpp
ibase.cpp:42:19: error: ibase.h: No such file or directory
make: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:42:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o mysql.o mysql.cpp
mysql.cpp:42:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-unsafe) disabled.
OCI auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o oci.o oci.cpp
oci.cpp:42:17: error: oci.h: No such file or directory
make: *** [oci.o] Error 1
OCI disabled.
ODBC auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o odbc.o odbc.cpp
sb2 -t imx53 g++ -Wl,-O1 -o odbc odbc.o -lodbc
ODBC enabled.
PostgreSQL auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o psql.o psql.cpp
psql.cpp:42:22: error: libpq-fe.h: No such file or directory
psql.cpp: In function 'int main(int, char**)':
psql.cpp:46: error: 'PQescapeBytea' was not declared in this scope
psql.cpp:47: error: 'PQunescapeBytea' was not declared in this scope
make: *** [psql.o] Error 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o sqlite2.o sqlite2.cpp
sb2 -t imx53 g++ -Wl,-O1 -o sqlite2 sqlite2.o -lsqlite
SQLite2 enabled.
unknown SQL driver: sqlite_symbian
TDS auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o tds.o tds.cpp
tds.cpp:42:22: error: sybfront.h: No such file or directory
tds.cpp:43:19: error: sybdb.h: No such file or directory
make: *** [tds.o] Error 1
TDS disabled.
Glib auto-detection... ()
sb2 -t imx53 g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -o glib.o glib.cpp
glib.cpp:44:18: error: glib.h: No such file or directory
glib.cpp: In function 'int main(int, char**)':
glib.cpp:49: error: 'GSource' was not declared in this scope
glib.cpp:49: error: 'source' was not declared in this scope
glib.cpp:50: error: 'GPollFD' was not declared in this scope
glib.cpp:50: error: 'pollfd' was not declared in this scope
glib.cpp:51: error: 'g_thread_supported' was not declared in this scope
glib.cpp:52: error: 'NULL' was not declared in this scope
glib.cpp:52: error: 'g_thread_init' was not declared in this scope
glib.cpp:53: error: 'g_main_context_default' was not declared in this scope@
-
someone?
-
Its clearly an issue with finding proper headers. Please see if you have installed your toolchain correctly and have the development environment properly setup.
On Ubuntu you'll need to do the following :
@sudo apt-get install build-essential automake autoconf libtool@
On Fedora :
@sudo yum groupinstall "Development Tools"@Revert back if problem persits