[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-swt-dev] Re: platform-swt-dev Digest, Vol 41, Issue 22
|
Yolian Ignatov wrote:
Silenio,
Thanks for your prompt answer. I needed a bit of time to bring our macosx
SWT build procedure in sync with the one outlined at
http://www.eclipse.org/swt/jnigen.php
this route is actually really straightforward.. better than to try to
replicate the SWT JNI coding pattern manually (I know... I tried to do
it a few years ago.... :( )
Before we used the make_macosx.mak file that comes with macosx SWT. The
produced binaries are identical however, so the problem lies somewhere else.
I should emphasize that the problem is PPC specific, i.e. the libswt-pi-
carbon-xxx.jnilib fails to start on PPC machines running the latest version
of Tiger. We are not using any Leopard specific API; we use
GetDataBrowserItems, GetHandleSize, HLock, HUnlock, and DisposeHandle - all
methods you guys already use. That's why we suspected that there's something
in the way we [re]build the library that cases it to fail on PPC macs. Now
that we follow the http://www.eclipse.org/swt/jnigen.php procedure that the
SWT team uses as well, it gets even less obvious what the problem might be.
If you think it might be of use, I could send you the exact changes we've
made.
It was quite an effort to get things to compile all the way through on mac
os x. We used the latest versions of the various libraries and tools
involved. I imagine you have the specifics e.g. recommended versions of
those tools and libraries, would you be kind enough to share them e.g.
should we build on Tiger vs. Leopard, do we need a specific version of
Xcode, specific version of Mac OS X SDKs, etc.
been working on SWT source on Mac OS since tiger without ever thinking
about which version of what I was using (ie. works out of the box using
whatever latest flavor of XCode is). I am currently running Leopard and
have even built Cairo 1.6 and built a GC version that uses it. all along
never wandering about versions for anything (well except for Cairo
dependancies, but that is Cairo). in other words, the SWT build process
is really working. .. that said, I never test my code on PPC.
cheers
I'd think that's something that'd be of general usefulness and merits a
place on http://www.eclipse.org/swt/jnigen.php.
Unfortunately, and somewhat ironically, we just discovered that our Windows
[re]build of the win32 swt library (swt-win32-3448.dll) fails to load on XP.
Nothing changed in the way we build it using make_win32.mak, we upgraded the
swt source from 3.4 M4 to the official 3.4 release. We now get and SWTError
from the CoolBar saying ~'Item not found'. The same build runs fine on
Vista. I wonder if a specific version of the Windows Common Controls is
required, yet not enforced by the build procedure?
Would you be kind enough to send us the recommended versions of the
tools/SDKs/libraries required for building the Windows SWT with the windows
build as well?
Thanks,
Yolian
On Mon, 21 Jul 2008 12:00:12 -0400 (EDT), platform-swt-dev-request wrote
Send platform-swt-dev mailing list submissions to
platform-swt-dev@xxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
or, via email, send a message with subject or body 'help' to
platform-swt-dev-request@xxxxxxxxxxx
You can reach the person managing the list at
platform-swt-dev-owner@xxxxxxxxxxx
When replying, please edit your Subject line so it is more specific
than "Re: Contents of platform-swt-dev digest..."
Today's Topics:
1. Re: libswt-pi-carbon-xxx.jnilib rebult on Leopard Intel
doesn't work on Tiger PPC (Silenio Quarti)
----------------------------------------------------------------------
Message: 1
Date: Mon, 21 Jul 2008 10:22:27 -0400
From: Silenio Quarti <Silenio_Quarti@xxxxxxxxxx>
Subject: Re: [platform-swt-dev] libswt-pi-carbon-xxx.jnilib rebult on
Leopard Intel doesn't work on Tiger PPC
To: "Eclipse Platform SWT component developers list."
<platform-swt-dev@xxxxxxxxxxx>
Message-ID:
<OF0343520C.32971880-ON8525748D.004E1194-
8525748D.004ECC14@xxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
What function are you trying to use? If the function is only
available in Leopard, you have to load it dynamically and only call
it using a version check. Use the JNIGeneratorAppUI tool from
org.eclipse.swt.tools project to mark the function dynamic and
generate the source of "os.c". See this page for some instructions:
http://www.eclipse.org/swt/jnigen.php
Silenio
"Yolian Ignatov" <yolian@xxxxxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
07/18/2008 12:55 PM
Please respond to
"Eclipse Platform SWT component developers list."
<platform-swt-dev@xxxxxxxxxxx>
To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] libswt-pi-carbon-xxx.jnilib rebult on Leopard
Intel doesn't work on Tiger PPC
In the context of the Eclipse plug-in org.eclipse.swt.carbon.macosx,
I need to define a new native function in
org.eclipse.swt.internal.carbon.OS
which will work on DataBrowser and which I will use then in
org.eclipse.swt.widgets.Tree.
1. I import the mentioned plug-in as source in my Eclipse workspace.
2. I declare my native function in
org.eclipse.swt.internal.carbon.OS.
3. I provide the implementation and the other details in the
respective os*.{c,h} files just like the other functions
officially-defined functions.
4. Then I rebuild libswt-pi-carbon-xxx.jnilib on Leopard with Xcode
3.0 in the following way:
4.1. I change into the root of the org.eclipse.swt.carbon.macosx
plug-in source tree in Terminal.
4.2. I execute "export MACOSX_DEPLOYMENT_TARGET=10.3".
4.3. Then I run "make -f make_macosx.mak
libswt-pi-carbon-3448.jnilib" (the 3448 really depends on the SWT
version with which I'm working).
The resulting library and the added function work as expected on
Leopard Intel and Tiger Intel. It's part of an RCP product.
Unfortunately, another person trying to use the modified library on
Tiger PPC (i.e. run the RCP product I provide) reports that it
doesn't work. The added problem is that I cannot get more specifics.
Could you please advise as to what could the reason for the failure
of the rebuilt library on Tiger PPC could be and how I should try to
fix it?
Thanks in advance,
Yolian
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://dev.eclipse.org/mailman/private/platform-swt-
dev/attachments/20080721/a4fb2628/attachment.html
------------------------------
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
End of platform-swt-dev Digest, Vol 41, Issue 22
************************************************
--
Laurent Mihalkovic, co-author SWT/JFace in Action (www.manning.com/scarpino)