[Development] Cross-compile Qt 4.8.x for QNX 6.5.0

Thiago Macieira thiago.macieira at intel.com
Tue Dec 19 23:28:17 CET 2017


On terça-feira, 19 de dezembro de 2017 12:44:36 PST Oleg Yadrov wrote:
> Configuration finishes successfully, I run make a get a message
> "qlocale_unix.cpp:36: error: '_CS_LOCALE' was not declared in this scope.

qlocale_unix.cpp line 36 in Qt 4.8 is a comment:

http://code.qt.io/cgit/qt/qt.git/tree/src/corelib/tools/qlocale_unix.cpp#n36

Did you mean line 58?
http://code.qt.io/cgit/qt/qt.git/tree/src/corelib/tools/qlocale_unix.cpp#n58

If this is just an #include issue, try compiling with precompiled headers 
(pass -pch to configure).

> Later on make stops due to multiple errors in QWSServer.

QWS was *only* designed for Linux. Do not try to run it on any other platform. 
You should use X11 on QNX instead. The early QPA might work, but we really 
can't recommend it until Qt 5.

> Am I doing something wrong, or is it really so that nobody tested if Qt >=
> 4.8.5 builds for QNX 6.5 before me?

You are doing something wrong: trying Qt 4.8 for any new project in 
almost-2018. Please upgrade.

> PS: I'm not sure what "-embedded i386" parameter is needed for, but if I
> don't specify it, make fails due to something related to X11 header files.

Don't pass options you don't understand. That option is the one that turned 
the Linux-only QWS subsystem on. Remove it and make sure your buildsystem has 
X11 headers.

Or upgrade to Qt 5.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list