Home » Archived » Buckminster » org.eclipse.swt not found when building on Mac OS X
|
Re: org.eclipse.swt not found when building on Mac OS X [message #517322 is a reply to message #517279] |
Fri, 26 February 2010 22:22 |
|
Hi Ralf,
Try using '-Dosgi.ws=cocoa' instead of just '-ws=cocoa'. That will force the OSGi runtime to use cocoa.
Regards,
Thomas Hallgren
On 02/26/2010 07:53 PM, Ralf Ebert wrote:
> Hi,
>
> I'm getting compile errors like these when building my project:
>
> INFO: build
> Error: file
> /Users/ralf/.hudson/jobs/addressbook/workspace/plugins/com.e xample.addressbook:
> The project was not built since its build path is incomplete. Cannot
> find the class file for org.eclipse.swt.widgets.Composite. Fix the build
> path then try building this project
>
> I'm pretty sure the build setup is correct, because the same build works
> just fine when executed on my Linux machine, this happens when building
> on OS X. The project also builds fine in the IDE with the exact same
> .target file.
>
> I already checked that the provisioned target platform contains all the
> SWT bundles (the target is setup to include all environments).
>
> As I had problems with that already, I suppose that it looks for
> SWT/carbon again. Could that be? (the debug output says nothing about
> cocoa or carbon). How can I set the target.ws explicitly when running
> Buckminster from Hudson? I already tried specifying '-ws=cocoa
> -os=macosx -arch=x86_64' as JVM argument, which had no effect. Is there
> anything I could do to debug/fix this?
>
> Greetings,
>
> Ralf
>
>
|
|
|
Re: org.eclipse.swt not found when building on Mac OS X [message #517331 is a reply to message #517322] |
Fri, 26 February 2010 23:33 |
Ralf Ebert Messages: 168 Registered: July 2009 |
Senior Member |
|
|
Hi Thomas,
> Try using '-Dosgi.ws=cocoa' instead of just '-ws=cocoa'. That will force
> the OSGi runtime to use cocoa.
thanks for the hint, unfortunately it doesn't solve the issue. I see only org.eclipse.swt
getting searched for and being resolved, although
org.eclipse.swt.cocoa.macosx.x86_64_3.5.1.v3555a.jar is clearly present in the target
platform...
org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Trying provider local(target)
org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Found match 3.5.1.v3555a
org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Found match
org.eclipse.swt:osgi.bundle$3.5.1.v3555a
My feature refers to the official org.eclipse.rcp feature which includes
org.eclipse.swt.cocoa.macosx.x86_64 with platform feature. Not sure, should the swt
fragment get resolved and appear in the debug output?
What also surprises me, is that the build doesn't complain about the Import-Package:
org.eclipse.swt.widgets in the MAINFEST.MF missing, shouldn't it complain about this
first? What could cause such a strange platform-dependent error?
btw, the project I'm trying to build is again http://github.com/ralfebert/addressbook/,
commands are:
importtargetdefinition -A '${WORKSPACE}/features/com.example.addressbook.site/rcp.targ et'
import '${WORKSPACE}/features/com.example.addressbook.site/site.cqu ery'
build
I'm using Buckminster Buckminster 1.1.350.r11146 on Mac OS X 10.5 / Cocoa / x86_64.
Greetings,
Ralf
--
http://www.ralfebert.de/blog/eclipsercp/
|
|
|
Re: org.eclipse.swt not found when building on Mac OS X [message #517376 is a reply to message #517331] |
Sat, 27 February 2010 10:44 |
|
Hi Ralf,
Do you know if this runs OK on other platforms?
- thomas
On 02/27/2010 12:33 AM, Ralf Ebert wrote:
> Hi Thomas,
>
>> Try using '-Dosgi.ws=cocoa' instead of just '-ws=cocoa'. That will
>> force the OSGi runtime to use cocoa.
>
> thanks for the hint, unfortunately it doesn't solve the issue. I see
> only org.eclipse.swt getting searched for and being resolved, although
> org.eclipse.swt.cocoa.macosx.x86_64_3.5.1.v3555a.jar is clearly present
> in the target platform...
>
> org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Trying provider
> local(target)
> org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Found match
> 3.5.1.v3555a
> org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Found match
> org.eclipse.swt:osgi.bundle$3.5.1.v3555a
>
> My feature refers to the official org.eclipse.rcp feature which includes
> org.eclipse.swt.cocoa.macosx.x86_64 with platform feature. Not sure,
> should the swt fragment get resolved and appear in the debug output?
>
> What also surprises me, is that the build doesn't complain about the
> Import-Package: org.eclipse.swt.widgets in the MAINFEST.MF missing,
> shouldn't it complain about this first? What could cause such a strange
> platform-dependent error?
>
> btw, the project I'm trying to build is again
> http://github.com/ralfebert/addressbook/, commands are:
>
> importtargetdefinition -A
> '${WORKSPACE}/features/com.example.addressbook.site/rcp.targ et'
> import '${WORKSPACE}/features/com.example.addressbook.site/site.cqu ery'
> build
>
> I'm using Buckminster Buckminster 1.1.350.r11146 on Mac OS X 10.5 /
> Cocoa / x86_64.
>
> Greetings,
>
> Ralf
>
>
>
|
|
| | | |
Goto Forum:
Current Time: Mon Sep 23 07:40:21 GMT 2024
Powered by FUDForum. Page generated in 0.04048 seconds
|