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

2017-12-20 Thread Lars Knoll
> On 20 Dec 2017, at 19:28, Thiago Macieira  wrote:
> 
> On quarta-feira, 20 de dezembro de 2017 09:42:39 PST Lars Knoll wrote:
>>> I still call a mistake to use Qt 4.8 for ANY new project in 2018. Whether
>>> KDAB  or ICS or TQtC actually makes money off other people's mistakes is
>>> totally orthogonal. Just don't be jack^*&*es and do advise your customers
>>> to PLEASE pretty please with a cherry on top consider upgrading to
>>> software that is still receiving security fixes.
>> 
>> 
>> Thiago, that's what we're always doing. Nobody I know of advises customers
>> to use old and unsupported versions of Qt. 
> 
> I know you do. I just had to write that because it sounded extremely callous 
> when I wrote "it's ok for you to make money off other people's mistakes". I 
> know that it's not the immediate consequence. You do advise them, but if they 
> insist (for good reason or ill), then I expect you to be suitably compensated 
> for the work.

Absolutely. If people really need the old version there's ways to get help, but 
support for those always comes at a premium.

Cheers,
Lars

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


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

2017-12-20 Thread Thiago Macieira
On quarta-feira, 20 de dezembro de 2017 09:42:39 PST Lars Knoll wrote:
> > I still call a mistake to use Qt 4.8 for ANY new project in 2018. Whether
> > KDAB  or ICS or TQtC actually makes money off other people's mistakes is
> > totally orthogonal. Just don't be jack^*&*es and do advise your customers
> > to PLEASE pretty please with a cherry on top consider upgrading to
> > software that is still receiving security fixes.
> 
> 
> Thiago, that's what we're always doing. Nobody I know of advises customers
> to use old and unsupported versions of Qt. 

I know you do. I just had to write that because it sounded extremely callous 
when I wrote "it's ok for you to make money off other people's mistakes". I 
know that it's not the immediate consequence. You do advise them, but if they 
insist (for good reason or ill), then I expect you to be suitably compensated 
for the work.
 
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


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

2017-12-20 Thread Lars Knoll
> On 20 Dec 2017, at 00:13, Thiago Macieira  wrote:
> 
> On terça-feira, 19 de dezembro de 2017 14:39:24 PST Jake Petroules wrote:
 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?

No, at least not a QNX without any service patches etc installed. But neither 
QNX 6.5 nor Qt 4.8 is supported here anymore, so don't expect any help here. 
>>> 
>>> You are doing something wrong: trying Qt 4.8 for any new project in 
>>> almost-2018. Please upgrade.

As Thiago said. I'd try to upgrade to QNX 6.6 and Qt 5.9.
>> 
>> Consulting services...
> 
> Who are not infallible.
> 
> I still call a mistake to use Qt 4.8 for ANY new project in 2018. Whether 
> KDAB 
> or ICS or TQtC actually makes money off other people's mistakes is totally 
> orthogonal. Just don't be jack^*&*es and do advise your customers to PLEASE 
> pretty please with a cherry on top consider upgrading to software that is 
> still receiving security fixes. 

Thiago, that's what we're always doing. Nobody I know of advises customers to 
use old and unsupported versions of Qt. 

But those companies you mention do try to help customers find a solution to 
their problem. The (highly) preferred option is of course to get the customer 
upgraded to something that's officially supported.

Cheers,
Lars

> 
> Note this is different from supporting an existing project that happens to 
> still be using Qt 4.8, but the fact that Oleg is wondering if he's the first 
> to try the combination indicates this is indeed a new project.
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> 
> ___
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


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

2017-12-19 Thread Thiago Macieira
On terça-feira, 19 de dezembro de 2017 14:39:24 PST Jake Petroules wrote:
> >> 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.
> 
> Consulting services...

Who are not infallible.

I still call a mistake to use Qt 4.8 for ANY new project in 2018. Whether KDAB 
or ICS or TQtC actually makes money off other people's mistakes is totally 
orthogonal. Just don't be jack^*&*es and do advise your customers to PLEASE 
pretty please with a cherry on top consider upgrading to software that is 
still receiving security fixes. 

Note this is different from supporting an existing project that happens to 
still be using Qt 4.8, but the fact that Oleg is wondering if he's the first 
to try the combination indicates this is indeed a new project.

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

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


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

2017-12-19 Thread Jake Petroules


> On Dec 19, 2017, at 2:28 PM, Thiago Macieira  
> wrote:
> 
> 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.

Consulting services...

> 
>> 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
> 
> ___
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-- 
Jake Petroules - jake.petrou...@qt.io
The Qt Company - Silicon Valley
Qbs build tool evangelist - qbs.io

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


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

2017-12-19 Thread Thiago Macieira
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

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


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

2017-12-19 Thread Oleg Yadrov
Hi,

I'm having issues while trying to build Qt 4.8.7 for QNX 6.5.0 (vanilla QNX 
6.5.0 without SP1 and libscreen patches installed).
Seems like nobody tested if Qt 4.8.5 (I've tried both 4.8.7 and 4.8.5 and 
observed exactly the same errors) builds for QNX 6.5.0 before release, because 
it simply does not compile.

I have QNX SDP 6.5.0 installed to /opt/qnx650, so before configure Qt I set
QNX_HOST=/opt/qnx650/host/linux/x86
QNX_TARGET=opt/qnx650/target/qnx6

I'm using the following line to configure Qt:
/home/user/qtforqnx/src/configure -xplatform qnx-x86-qcc -embedded i386 
-no-gfx-linuxfb -no-mouse-linuxtp -no-kbd-tty -no-qt3support -qt-gfx-qnx 
-qt-mouse-qnx -qt-kbd-qnx -exceptions -nomake webkit -opengl es1 -v -prefix 
/home/user/qtforqnx/install

Then, during configuration, I get a message that OpenGL ES 1.x auto-detection 
test failed due to undefined reference to "gf_surface_create" and 
"gf_surface_free".
I found a way to fix it: I need to add "LIBS += -lgf" to 
qtsrc/src/mkspecs/qnx-x86-qcc/qmake.conf.
Then I get a similar message about EGL. I add "-lEGL" to the same "LIBS" 
statement.
Configuration finishes successfully, I run make a get a message 
"qlocale_unix.cpp:36: error: '_CS_LOCALE' was not declared in this scope.
I go to qlocale_unix.cpp and add "#include ". Next time make stops on 
qfilesystemiterator_unix.cpp. I do more changes in qfilesystemiterator_unix.cpp.
Later on make stops due to multiple errors in QWSServer.

I don't think I'm supposed to do all these changes.
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?

Thanks,
Oleg Yadrov - oleg.yad...@qt.io

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.
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development