Java/SWT Web Browser Widget for photon

Hi,

I want to run a java application using SWT Web Browser widget on the
Motorola MPC5200 platform.(QNX 6.3 on PowerPC BE)
To do this, I have downloaded swt.jar and libswt-photon-3064.so file from
eclipse site, but this is only for x86 platform.
My SWT web browser widget application runs OK with this configuration,
i.e. with libswt-photon-3064.so, QNX 6.3 and x86.
While running this application I found that libswt-photon-3064.so refers
to libPtWeb.so.2 and libph.so.2 libraries even if there exist
libPtWeb.so.3 and libph.so.3 libraries on QNX 6.3. (Fortunately there are
libPtWeb.so.2 and libph.so.2 files on QNX 6.3).

But for the PPC platform, my application doesn’t run at all.
This is because, I think, there aren’t libswt-photon-3064.so,
libPtWeb.so.2 and libph.so.2 for Qnn 6.3 on PowerPC.
I tried to build libswt-photon-3064.so for PPC and tried to run my
applicaiton with this library and libPtWeb.so.2 and libph.so.2(for PPC)
from Qnx 6.2.1 machine, but still failed.
Anybody knows how to get these libraries for PPC?
Actually I need any version of libswt-photon-30xx.so file as far as it
works.
Thanks in advance.

kangjh@kr.ibm.com wrote:

Hi,

I want to run a java application using SWT Web Browser widget on the
Motorola MPC5200 platform.(QNX 6.3 on PowerPC BE)
To do this, I have downloaded swt.jar and libswt-photon-3064.so file
from eclipse site, but this is only for x86 platform.
My SWT web browser widget application runs OK with this configuration,
i.e. with libswt-photon-3064.so, QNX 6.3 and x86.
While running this application I found that libswt-photon-3064.so refers
to libPtWeb.so.2 and libph.so.2 libraries even if there exist
libPtWeb.so.3 and libph.so.3 libraries on QNX 6.3. (Fortunately there
are libPtWeb.so.2 and libph.so.2 files on QNX 6.3).

The SWT that is can be found at dev.eclipse.org is built for x86 against
QNX 6.2.1. If you wish to use the SWT on a 6.3.0 PPC board, you will
have to check out the source and build it yourself.

Thanks,
Rodney


But for the PPC platform, my application doesn’t run at all.
This is because, I think, there aren’t libswt-photon-3064.so,
libPtWeb.so.2 and libph.so.2 for Qnn 6.3 on PowerPC.
I tried to build libswt-photon-3064.so for PPC and tried to run my
applicaiton with this library and libPtWeb.so.2 and libph.so.2(for PPC)
from Qnx 6.2.1 machine, but still failed.
Anybody knows how to get these libraries for PPC?
Actually I need any version of libswt-photon-30xx.so file as far as it
works.
Thanks in advance.

Rodney Dowdall wrote:

kangjh@kr.ibm.com > wrote:


Hi,

I want to run a java application using SWT Web Browser widget on the
Motorola MPC5200 platform.(QNX 6.3 on PowerPC BE)
To do this, I have downloaded swt.jar and libswt-photon-3064.so file
from eclipse site, but this is only for x86 platform.
My SWT web browser widget application runs OK with this configuration,
i.e. with libswt-photon-3064.so, QNX 6.3 and x86.
While running this application I found that libswt-photon-3064.so
refers to libPtWeb.so.2 and libph.so.2 libraries even if there exist
libPtWeb.so.3 and libph.so.3 libraries on QNX 6.3. (Fortunately there
are libPtWeb.so.2 and libph.so.2 files on QNX 6.3).


The SWT that is can be found at dev.eclipse.org is built for x86 against
QNX 6.2.1. If you wish to use the SWT on a 6.3.0 PPC board, you will
have to check out the source and build it yourself.

Thanks,
Rodney

The SWT native library doesn’t compile on 6.3.0 due to changes in
PtWebClient.
But if you make all changes and it will compile on 6.3.0 than it will
not be the end. Some widgets after that will not redraw properly.

I tried to search the SWT source in eclipse’s plugings and found that
source is 2.1 version but binary is 3.0 version and compiled on 6.3.0.

Maybe QSS doesn’t want to give the SWT source for 6.3.0?


Sergiy Uvarov

Hello Sergiy

It’s not that we don’t want to give out the source, it’s just that we
are trying to follow a process in order to get it checked in to the head
branch of the eclipse CVS tree so that the same changes do not need to
be made for every release or our eclipse tool chain. If you are
interested in unofficial patches I can post the bugs here that I have
submitted patches for. These patches may change in the future so they
are not officially supported, but it should get you up and running with
widgets that draw correctly and behave the same way as they do in our IDE.

Thanks,
Rodney


Sergiy Uvarov wrote:

Rodney Dowdall wrote:

kangjh@kr.ibm.com > wrote:


Hi,

I want to run a java application using SWT Web Browser widget on the
Motorola MPC5200 platform.(QNX 6.3 on PowerPC BE)
To do this, I have downloaded swt.jar and libswt-photon-3064.so file
from eclipse site, but this is only for x86 platform.
My SWT web browser widget application runs OK with this
configuration, i.e. with libswt-photon-3064.so, QNX 6.3 and x86.
While running this application I found that libswt-photon-3064.so
refers to libPtWeb.so.2 and libph.so.2 libraries even if there exist
libPtWeb.so.3 and libph.so.3 libraries on QNX 6.3. (Fortunately there
are libPtWeb.so.2 and libph.so.2 files on QNX 6.3).



The SWT that is can be found at dev.eclipse.org is built for x86
against QNX 6.2.1. If you wish to use the SWT on a 6.3.0 PPC board,
you will have to check out the source and build it yourself.

Thanks,
Rodney


The SWT native library doesn’t compile on 6.3.0 due to changes in
PtWebClient.
But if you make all changes and it will compile on 6.3.0 than it will
not be the end. Some widgets after that will not redraw properly.

I tried to search the SWT source in eclipse’s plugings and found that
source is 2.1 version but binary is 3.0 version and compiled on 6.3.0.

Maybe QSS doesn’t want to give the SWT source for 6.3.0?


Sergiy Uvarov

Thanks for answer.

We are considering to migrate from QNX6.2.1 to QNX6.3. Our runtime
applications work well but GUI doesn’t work due to SWT native library.
We have made some bug fixes in SWT and added printing support that’s why
we need source of SWT native library.


Rodney Dowdall wrote:

Hello Sergiy

It’s not that we don’t want to give out the source, it’s just that we
are trying to follow a process in order to get it checked in to the head
branch of the eclipse CVS tree so that the same changes do not need to
be made for every release or our eclipse tool chain. If you are
interested in unofficial patches I can post the bugs here that I have
submitted patches for.
Of course we are interested in these patches. It helps us to migrate.



These patches may change in the future so they
are not officially supported, but it should get you up and running with
widgets that draw correctly and behave the same way as they do in our IDE.



Sergiy Uvarov wrote:

Rodney Dowdall wrote:

kangjh@kr.ibm.com > wrote:


Hi,

I want to run a java application using SWT Web Browser widget on the
Motorola MPC5200 platform.(QNX 6.3 on PowerPC BE)
To do this, I have downloaded swt.jar and libswt-photon-3064.so file
from eclipse site, but this is only for x86 platform.
My SWT web browser widget application runs OK with this
configuration, i.e. with libswt-photon-3064.so, QNX 6.3 and x86.
While running this application I found that libswt-photon-3064.so
refers to libPtWeb.so.2 and libph.so.2 libraries even if there exist
libPtWeb.so.3 and libph.so.3 libraries on QNX 6.3. (Fortunately
there are libPtWeb.so.2 and libph.so.2 files on QNX 6.3).




The SWT that is can be found at dev.eclipse.org is built for x86
against QNX 6.2.1. If you wish to use the SWT on a 6.3.0 PPC board,
you will have to check out the source and build it yourself.

Thanks,
Rodney



The SWT native library doesn’t compile on 6.3.0 due to changes in
PtWebClient.
But if you make all changes and it will compile on 6.3.0 than it will
not be the end. Some widgets after that will not redraw properly.

I tried to search the SWT source in eclipse’s plugings and found that
source is 2.1 version but binary is 3.0 version and compiled on 6.3.0.

Maybe QSS doesn’t want to give the SWT source for 6.3.0?


Sergiy Uvarov

Hello Sergiy

Please try getting the patches from the following PR’s at bugs.eclipse.org:

82500
82578
82607
82609
82696
90639
91311
98572
98839
100044
100046
100289
100473
100969
101147
102057
102065
102093
102661
102729

You may not need all of these, and these patches weren’t necessarily
created from the head branch, but it’s a good starting point. It should
help get the drawing up to snuff.

After you apply some of these patches, you may want to check out the
org.eclipse.swt.tools project and run the JNIGenerator for SWT, as there
are new functions added in to the OS class.

Thanks,
Rodney


Sergiy Uvarov wrote:

Thanks for answer.

We are considering to migrate from QNX6.2.1 to QNX6.3. Our runtime
applications work well but GUI doesn’t work due to SWT native library.
We have made some bug fixes in SWT and added printing support that’s why
we need source of SWT native library.


Rodney Dowdall wrote:

Hello Sergiy

It’s not that we don’t want to give out the source, it’s just that we
are trying to follow a process in order to get it checked in to the
head branch of the eclipse CVS tree so that the same changes do not
need to be made for every release or our eclipse tool chain. If you
are interested in unofficial patches I can post the bugs here that I
have submitted patches for.

Of course we are interested in these patches. It helps us to migrate.

These patches may change in the future so they are not officially
supported, but it should get you up and running with widgets that draw
correctly and behave the same way as they do in our IDE.



Sergiy Uvarov wrote:

Rodney Dowdall wrote:

kangjh@kr.ibm.com > wrote:


Hi,

I want to run a java application using SWT Web Browser widget on
the Motorola MPC5200 platform.(QNX 6.3 on PowerPC BE)
To do this, I have downloaded swt.jar and libswt-photon-3064.so
file from eclipse site, but this is only for x86 platform.
My SWT web browser widget application runs OK with this
configuration, i.e. with libswt-photon-3064.so, QNX 6.3 and x86.
While running this application I found that libswt-photon-3064.so
refers to libPtWeb.so.2 and libph.so.2 libraries even if there
exist libPtWeb.so.3 and libph.so.3 libraries on QNX 6.3.
(Fortunately there are libPtWeb.so.2 and libph.so.2 files on QNX 6.3).





The SWT that is can be found at dev.eclipse.org is built for x86
against QNX 6.2.1. If you wish to use the SWT on a 6.3.0 PPC board,
you will have to check out the source and build it yourself.

Thanks,
Rodney




The SWT native library doesn’t compile on 6.3.0 due to changes in
PtWebClient.
But if you make all changes and it will compile on 6.3.0 than it will
not be the end. Some widgets after that will not redraw properly.

I tried to search the SWT source in eclipse’s plugings and found that
source is 2.1 version but binary is 3.0 version and compiled on 6.3.0.

Maybe QSS doesn’t want to give the SWT source for 6.3.0?


Sergiy Uvarov